Conditions | 3 |
Paths | 4 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
32 | 36 | public function addDirectory(string $directory, bool $recursive = true): void |
|
33 | { |
||
34 | 36 | if (!$recursive) { |
|
35 | 18 | $this->finder->depth(0); |
|
36 | } |
||
37 | 36 | $this->finder->in($directory)->files()->name('*.php'); |
|
38 | 36 | foreach ($this->finder as $file) { |
|
39 | 33 | $this->files[] = $file->getContents(); |
|
40 | } |
||
49 |