@@ -56,7 +56,7 @@ |
||
56 | 56 | $return = $f; |
57 | 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 |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | { |
21 | 21 | if($f instanceof \Closure) { |
22 | 22 | $this->f = $f->bindTo($this); |
23 | - } elseif(method_exists('\Closure','fromCallable')) { |
|
23 | + } elseif(method_exists('\Closure', 'fromCallable')) { |
|
24 | 24 | $this->f = \Closure::fromCallable($f)->bindTo($this); |
25 | 25 | } else { |
26 | 26 | throw new \RuntimeException('Using anything else than a callable is only possible for PHP >= 7.1.'); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | if($this->recursing === false) { |
41 | 41 | $this->recursing = true; |
42 | 42 | |
43 | - while(! empty($this->arguments_pool)) { |
|
43 | + while(!empty($this->arguments_pool)) { |
|
44 | 44 | $result = call_user_func_array($this->f, array_shift($this->arguments_pool)); |
45 | 45 | } |
46 | 46 |