BaseDeployMigrationCommand   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A prepareConsoleStyles() 0 7 1
1
<?php
2
3
4
namespace Quantick\DeployMigration\Commands;
5
6
7
use Illuminate\Console\Command;
8
use Symfony\Component\Console\Formatter\OutputFormatterStyle;
9
10
class BaseDeployMigrationCommand extends Command
11
{
12
    /**
13
     * BaseDeployMigrationCommand constructor.
14
     */
15
    public function __construct()
16
    {
17
        parent::__construct();
18
    }
19
20
    protected function prepareConsoleStyles(): void
21
    {
22
        $errorStyle = new OutputFormatterStyle('white', 'red', ['bold']);
23
        $this->output->getFormatter()->setStyle('error', $errorStyle);
24
25
        $infoStyle = new OutputFormatterStyle('white', 'blue', ['bold']);
26
        $this->output->getFormatter()->setStyle('info', $infoStyle);
27
    }
28
}