| Conditions | 4 |
| Paths | 8 |
| Total Lines | 27 |
| Code Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function __construct( |
||
| 22 | $directory, |
||
| 23 | array $exclude, |
||
| 24 | array $excludePaths, |
||
| 25 | array $excludeFiles, |
||
| 26 | array $suffixes |
||
| 27 | ) { |
||
| 28 | parent::__construct(); |
||
| 29 | $this |
||
| 30 | ->files() |
||
| 31 | ->in($directory) |
||
| 32 | ->exclude(array_merge(['vendor'], $exclude)) |
||
| 33 | ->ignoreDotFiles(true) |
||
| 34 | ->ignoreVCS(true); |
||
| 35 | |||
| 36 | foreach ($suffixes as $suffix) { |
||
| 37 | $this->name('*.' . $suffix); |
||
| 38 | } |
||
| 39 | |||
| 40 | foreach ($excludePaths as $notPath) { |
||
| 41 | $this->notPath($notPath); |
||
| 42 | } |
||
| 43 | |||
| 44 | foreach ($excludeFiles as $notName) { |
||
| 45 | $this->notName($notName); |
||
| 46 | } |
||
| 47 | } |
||
| 48 | } |
||
| 49 |