MigrateInstallCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 25
ccs 0
cts 4
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LaravelFreelancerNL\Aranguent\Console\Migrations;
6
7
use Illuminate\Database\Console\Migrations\InstallCommand as IlluminateInstallCommand;
8
use LaravelFreelancerNL\Aranguent\Console\Concerns\ArangoCommands;
9
use LaravelFreelancerNL\Aranguent\Migrations\DatabaseMigrationRepository;
10
11
class MigrateInstallCommand extends IlluminateInstallCommand
12
{
13
    use ArangoCommands;
14
15
    /**
16
     * The repository instance.
17
     *
18
     * @var DatabaseMigrationRepository
19
     */
20
    protected $repository;
21
22
23
    /**
24
     * Execute the console command.
25
     *
26
     * @return void
27
     */
28
    public function handle()
29
    {
30
        $database = $this->input->getOption('database');
31
32
        /** @phpstan-ignore-next-line */
33
        $this->repository->useArangodb = $this->connectionHasArangodbDriver($database);
0 ignored issues
show
Bug introduced by
The property useArangodb does not exist on LaravelFreelancerNL\Aran...baseMigrationRepository. Did you mean useArangoDB?
Loading history...
34
35
        parent::handle();
36
    }
37
}
38