Failed Conditions
Push — feature/streamline-console-com... ( e14f21...2f5789 )
by
unknown
15:13
created

MigrateFreshCommand::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 8
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LaravelFreelancerNL\Aranguent\Console\Migrations;
6
7
use Illuminate\Database\Console\Migrations\FreshCommand as IlluminateFreshCommand;
8
use LaravelFreelancerNL\Aranguent\Console\Concerns\ArangoCommands;
9
use LaravelFreelancerNL\Aranguent\Migrations\DatabaseMigrationRepository;
10
11
class MigrateFreshCommand extends IlluminateFreshCommand
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 int
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
        return parent::handle();
36
    }
37
}
38