@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | public function sortByPosition() |
34 | 34 | { |
35 | - usort($this->descriptions, function (ArgumentDescription $left, ArgumentDescription $right) { |
|
35 | + usort($this->descriptions, function(ArgumentDescription $left, ArgumentDescription $right) { |
|
36 | 36 | return $left->getPosition() > $right->getPosition() ? 1 : -1; |
37 | 37 | }); |
38 | 38 |
@@ -41,10 +41,10 @@ |
||
41 | 41 | * |
42 | 42 | * It returns an array with the value of arguments in the right order. |
43 | 43 | * |
44 | - * @param mixed $callable |
|
44 | + * @param callable $callable |
|
45 | 45 | * @param array $availableArguments |
46 | 46 | * |
47 | - * @return array |
|
47 | + * @return callable|null |
|
48 | 48 | */ |
49 | 49 | public function resolveArguments($callable, array $availableArguments = []) |
50 | 50 | { |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public function argumentNames() |
32 | 32 | { |
33 | - return array_map(function (Resolution $resolution) { |
|
33 | + return array_map(function(Resolution $resolution) { |
|
34 | 34 | return $resolution->argumentName(); |
35 | 35 | }, $this->resolutions); |
36 | 36 | } |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | public function sortByPriority() |
56 | 56 | { |
57 | - usort($this->resolutions, function (Resolution $left, Resolution $right) { |
|
57 | + usort($this->resolutions, function(Resolution $left, Resolution $right) { |
|
58 | 58 | return $left->priority() < $right->priority() ? 1 : -1; |
59 | 59 | }); |
60 | 60 |