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

File::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 20

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 20
rs 9.6
c 0
b 0
f 0
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
}