Skip to content

Commit

Permalink
Invoker: Fix codestyle.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek authored Apr 30, 2021
1 parent 5d2245c commit da6acc5
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/ServiceMethodInvoker.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,12 @@ public function __construct(
*
* @param mixed[] $params
*/
public function invoke(object $service, string $methodName, array $params, bool $dataMustBeArray = false): mixed
{
public function invoke(
object $service,
string $methodName,
array $params,
bool $dataMustBeArray = false
): mixed {
try {
$ref = new \ReflectionMethod($service, $methodName);
} catch (\ReflectionException $e) {
Expand All @@ -61,8 +65,12 @@ public function invoke(object $service, string $methodName, array $params, bool
* @param mixed[] $params
* @return array<string, mixed>
*/
public function getInvokeArgs(object $service, string $methodName, array $params, bool $dataMustBeArray = false): array
{
public function getInvokeArgs(
object $service,
string $methodName,
array $params,
bool $dataMustBeArray = false
): array {
$args = [];
try {
$parameters = (new \ReflectionMethod($service, $methodName))->getParameters();
Expand Down

0 comments on commit da6acc5

Please # to comment.