| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | protected function readRaw(string $path) |
||
| 16 | { |
||
| 17 | $config = []; |
||
| 18 | foreach ($this->builder->getVars() as $key => $parameters) { |
||
| 19 | $config[$key] = $parameters; |
||
| 20 | } |
||
| 21 | |||
| 22 | $result = static function (array $params, array $config) { |
||
| 23 | return require func_get_arg(2); |
||
| 24 | }; |
||
| 25 | |||
| 26 | return $result($this->params, $config, $path); |
||
| 27 | } |
||
| 34 |