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