| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | 14 | public function __invoke(array $directories) |
|
| 15 | { |
||
| 16 | 14 | $appendIterator = new \AppendIterator(); |
|
| 17 | |||
| 18 | 14 | array_map( |
|
| 19 | 14 | [$appendIterator, 'append'], |
|
| 20 | 14 | array_map([$this, 'buildRegexDirectoryIterator'], $directories) |
|
| 21 | ); |
||
| 22 | |||
| 23 | 14 | return new MapIterator( |
|
| 24 | 14 | $appendIterator, |
|
| 25 | function (array $fileInfo) { |
||
| 26 | 12 | return $fileInfo[0]; |
|
| 27 | 14 | } |
|
| 28 | ); |
||
| 29 | } |
||
| 30 | |||
| 48 |