| Conditions | 3 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 29 | public function __invoke() |
||
| 30 | { |
||
| 31 | 1 | $result = null; |
|
| 32 | 1 | $this->arguments_pool[] = func_get_args(); |
|
| 33 | |||
| 34 | 1 | if($this->recursing === false) { |
|
| 35 | 1 | $this->recursing = true; |
|
| 36 | |||
| 37 | 1 | while(! empty($this->arguments_pool)) { |
|
| 38 | 1 | $result = call_user_func_array($this->f, array_shift($this->arguments_pool)); |
|
| 39 | } |
||
| 40 | |||
| 41 | 1 | $this->recursing = false; |
|
| 42 | } |
||
| 43 | |||
| 44 | 1 | return $result; |
|
| 45 | } |
||
| 46 | |||
| 56 |