@@ -52,15 +52,15 @@ |
||
52 | 52 | */ |
53 | 53 | public static function run($f, ...$args) |
54 | 54 | { |
55 | - if($f instanceof self) { |
|
55 | + if ($f instanceof self) { |
|
56 | 56 | $return = $f; |
57 | - } else if(is_callable($f)) { |
|
57 | + } else if (is_callable($f)) { |
|
58 | 58 | $return = call_user_func_array($f, $args); |
59 | - } else { |
|
59 | + } else { |
|
60 | 60 | throw new \RuntimeException("Expected a callable or an instance of Trampoline."); |
61 | 61 | } |
62 | 62 | |
63 | - while($return instanceof self) { |
|
63 | + while ($return instanceof self) { |
|
64 | 64 | $return = $return(); |
65 | 65 | } |
66 | 66 |