Projects   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A analyse() 0 13 2
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
}