@@ -68,7 +68,7 @@ discard block |
||
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 |
||
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) { |
@@ -73,8 +73,7 @@ discard block |
||
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 |
||
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 | } |