Completed
Push — master ( 68f30c...a95a96 )
by Christian
02:25
created

FullChangeSet   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 30
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
B get() 0 24 1
1
<?php
2
3
namespace uuf6429\ElderBrother\Change;
4
5
class FullChangeSet
6
{
7
    /**
8
     * @return FileList
9
     */
10
    public static function get()
11
    {
12
        return new FileList(
13
            __METHOD__ . '()',
14
            function () {
15
                $files = iterator_to_array(
16
                    new \RecursiveIteratorIterator(
17
                        new \RecursiveDirectoryIterator(
18
                            getcwd(),
19
                            \RecursiveDirectoryIterator::SKIP_DOTS
20
                        ),
21
                        \RecursiveIteratorIterator::CHILD_FIRST
22
                    )
23
                );
24
25
                return array_map(
26
                    function (\SplFileInfo $file) {
27
                        return $file->getRealPath();
28
                    },
29
                    $files
30
                );
31
            }
32
        );
33
    }
34
}
35