Conditions | 2 |
Paths | 2 |
Total Lines | 34 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function analyse() |
||
20 | { |
||
21 | |||
22 | $finder = new Finder(); |
||
23 | |||
24 | // Selecionando Diretorio |
||
25 | $finder->in($this->getTargetPath()); |
||
26 | |||
27 | |||
28 | $finder->files()->name( |
||
29 | ['*.jpg', '*.png'] |
||
30 | ); |
||
31 | |||
32 | // $finder->files()->contains('sierra'); |
||
33 | |||
34 | DebugHelper::info('Fotos encontradas: '.$finder->count()); |
||
35 | |||
36 | |||
37 | foreach ($finder as $file) |
||
38 | { |
||
39 | |||
40 | |||
41 | |||
42 | DebugHelper::info("Endereço Completo: ".$file->getRealPath()); |
||
43 | DebugHelper::info("Nome: ".$file->getRelativePathname()); |
||
44 | |||
45 | dd('PhotosFinderoi'); |
||
46 | |||
47 | |||
48 | |||
49 | |||
50 | } |
||
51 | // dd($finder); |
||
52 | } |
||
53 | |||
55 | } |