Directory   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 18 2
1
<?php
2
3
namespace Finder\Console\Commands\Spider;
4
5
use Operador\Actions\Instagram\GetMidias;
6
use Operador\Actions\Instagram\GetStories;
7
use Operador\Actions\Instagram\GetFollowers;
8
use Telefonica\Models\Digital\Account;
9
use Illuminate\Console\Command;
10
use Illuminate\Foundation\Inspiring;
11
use App\Plugins\Integrations\PhotoAcompanhante\Import;
12
13
use Finder\Pipelines\Builders\DirectoryBuilder;
14
15
class Directory extends Command
16
{
17
    /**
18
     * The name and signature of the console command.
19
     *
20
     * @var string
21
     */
22
    protected $signature = 'sitec:spider:directorys';
23
24
    /**
25
     * The console command description.
26
     *
27
     * @var string
28
     */
29
    protected $description = 'Explorar Diretorios';
30
31
    /**
32
     * Execute the console command.
33
     *
34
     * @return mixed
35
     */
36
    public function handle()
37
    {
38
39
        $paths = [
40
            // '/sierra/Dev/Fodasse/bitcoin'
41
            '/sierra/Dev'
42
            // '/sierra/Driver'
43
        ];
44
        $pipeline = DirectoryBuilder::getPipelineWithOutput($this);
45
46
        foreach ($paths as $path) {
47
            // Process Pipeline
48
            $pipeline(
49
                \Fabrica\Entities\DirectoryEntity::make($path)
50
            );
51
        }
52
        
53
    }
54
}
55