| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 5 |
| Ratio | 35.71 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | 1 | public function run(array $args) |
|
| 16 | { |
||
| 17 | $list = [ |
||
| 18 | 1 | 'define', 'let', 'do', 'if', |
|
| 19 | 'lambda', 'load-file', 'eval', |
||
| 20 | 'try' |
||
| 21 | ]; |
||
| 22 | 1 | View Code Duplication | foreach (FileOperations::getFunctionFiles() as $file) { |
| 23 | 1 | $class = sprintf('Desmond\\functions\\core\\%s', substr($file, 0, -4)); |
|
| 24 | 1 | $function = new $class; |
|
| 25 | 1 | $list[] = $function->id(); |
|
| 26 | } |
||
| 27 | 1 | return self::fromPhpType($list); |
|
| 28 | } |
||
| 29 | } |
||
| 30 |