Completed
Push — master ( 2e59ca...183b05 )
by Jean
07:08
created
src/DeferredCallChain.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         foreach ($this->stack as $i => $call) {
69 69
             if (isset($call['method'])) {
70 70
                 $string .= '->';
71
-                $string .= $call['method'].'(';
71
+                $string .= $call['method'] . '(';
72 72
                 $string .= implode(', ', array_map(function($argument) {
73 73
                     return var_export($argument, true);
74 74
                 }, $call['arguments']));
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
                     $out = call_user_func_array([$out, $call['method']], $call['arguments']);
95 95
                 }
96 96
                 else {
97
-                    $out = $out[ $call['entry'] ];
97
+                    $out = $out[$call['entry']];
98 98
                 }
99 99
             }
100 100
             catch (\Exception $e) {
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -73,8 +73,7 @@  discard block
 block discarded – undo
73 73
                     return var_export($argument, true);
74 74
                 }, $call['arguments']));
75 75
                 $string .= ')';
76
-            }
77
-            else {
76
+            } else {
78 77
                 $string .= '[' . var_export($call['entry'], true) . ']';
79 78
             }
80 79
         }
@@ -92,12 +91,10 @@  discard block
 block discarded – undo
92 91
             try {
93 92
                 if (isset($call['method'])) {
94 93
                     $out = call_user_func_array([$out, $call['method']], $call['arguments']);
95
-                }
96
-                else {
94
+                } else {
97 95
                     $out = $out[ $call['entry'] ];
98 96
                 }
99
-            }
100
-            catch (\Exception $e) {
97
+            } catch (\Exception $e) {
101 98
                 // Throw $e with the good stack (usage exception)
102 99
                 throw $e;
103 100
             }
Please login to merge, or discard this patch.