Completed
Push — master ( eba03f...9bcd5c )
by Ricardo
04:04
created

File   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 20 1
1
<?php
2
3
namespace Finder\Pipelines\Finder;
4
5
use League\Pipeline\Pipeline;
6
use Operador\Contracts\StageInterface;
7
8
use Symfony\Component\Finder\Finder;
9
use Support\Helps\DebugHelper;
10
use Operador\Contracts\Stage as StageBase;
11
use Finder\Pipelines\Builders\DirectoryBuilder;
12
use Finder\Pipelines\Builders\ProjectBuilder;
13
14
class File extends StageBase
15
{
16
17
18
    public function __invoke($payload)
19
    {
20
        // find all files in the current directory
21
        $targetPath = $payload->getTargetPath();
22
        $this->info('Analisando Arquivo: '.$targetPath);
23
24
        // /**
25
        //  * Caso seja Projeto
26
        //  */
27
        // if($payload->isProject()) {
28
        //     $pipeline = ProjectBuilder::getPipelineWithOutput($this->getOutput());
29
        //     // Process Pipeline
30
        //     return $pipeline(
31
        //         \Fabrica\Entities\ProjectEntity::make($payload)
32
        //     );
33
        // }
34
35
36
37
    }
38
39
40
}