| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 2 | protected function preload(): array |
|
| 29 | { |
||
| 30 | 2 | $root = realpath('.'); |
|
| 31 | 2 | $skeleton = sprintf('%s/skeleton', $root); |
|
| 32 | 2 | $name = basename($root); |
|
| 33 | |||
| 34 | 2 | if ('composer' === $name) { |
|
| 35 | 1 | $name = basename(realpath('..')); |
|
| 36 | } |
||
| 37 | |||
| 38 | return [ |
||
| 39 | 2 | 'root' => $root, |
|
| 40 | 2 | 'skeleton' => $skeleton, |
|
| 41 | 2 | 'name' => $name, |
|
| 42 | ]; |
||
| 43 | } |
||
| 44 | } |
||
| 45 |