Conditions | 3 |
Paths | 4 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
26 | 12 | public function addDirectory(string $directory, bool $recursive = true): void |
|
27 | { |
||
28 | 12 | if (!$recursive) { |
|
29 | 6 | $this->finder->depth(0); |
|
30 | } |
||
31 | 12 | $this->finder->in($directory)->files()->name('*.php'); |
|
32 | 12 | foreach ($this->finder as $file) { |
|
33 | 12 | $this->files[] = $file->getContents(); |
|
34 | } |
||
43 |