Conditions | 2 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
38 | 3 | public function getFilesystemPaths() |
|
39 | { |
||
40 | 3 | return array_map( |
|
41 | function (FilesystemResource $resource) { |
||
42 | 3 | return $resource->getFilesystemPath(); |
|
43 | 3 | }, |
|
44 | array_filter( |
||
45 | 3 | $this->toArray(), |
|
46 | 3 | function (PuliResource $r) { |
|
47 | 3 | return $r instanceof FilesystemResource && null !== $r->getFilesystemPath(); |
|
48 | 3 | } |
|
49 | ) |
||
50 | ); |
||
51 | } |
||
52 | } |
||
53 |