| Conditions | 3 |
| Paths | 4 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | 280 | public function run(array $args) |
|
| 8 | { |
||
| 9 | 280 | foreach ($args as $formIndex => $atom) { |
|
| 10 | 233 | $args[$formIndex] = $this->eval->getReturn($atom); |
|
| 11 | } |
||
| 12 | 280 | $actualFunction = $this->currentEnv->get($this->function); |
|
| 13 | 280 | $object = new $actualFunction; |
|
| 14 | 280 | return method_exists($object, 'run') ? $object->run($args) : $object; |
|
| 15 | } |
||
| 16 | } |
||
| 17 |