Projects::analyse()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 0
dl 0
loc 13
rs 9.8333
c 0
b 0
f 0
1
<?php
2
namespace Finder\Spider\Finder;
3
4
use Finder\Logic\Output\AbstractOutput;
5
use Finder\Logic\Output\Filter\OutputFilterInterface;
6
use Finder\Logic\Output\TriggerableInterface;
7
8
use Symfony\Component\Finder\Finder;
9
use Finder\Contracts\Spider\Spider;
10
11
/**
12
 * Run all script analysers and outputs their result.
13
 */
14
class Projects extends Spider
15
{
16
17
    public function analyse()
18
    {
19
        $finder = new Finder();
20
        // find all files in the current directory
21
        $finder->in($this->getTargetPath());
22
23
        $finder->files()->name(['composer.json', 'package.json']);
24
25
        foreach ($finder as $file) {
26
            var_dump($file);
0 ignored issues
show
Security Debugging Code introduced by
var_dump($file); looks like debug code. Are you sure you do not want to remove it? This might expose sensitive data.
Loading history...
27
        }
28
        dd('ProjectsSpider', $finder);
29
    }
30
31
32
}