Completed
Pull Request — master (#7)
by Daniel
05:04
created
src/ArgumentResolver/Argument/ArgumentDescriptions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/ArgumentResolver/ArgumentResolver.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,10 +41,10 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/ArgumentResolver/Resolution/Resolutions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.