BaseDeployMigrationCommand::prepareConsoleStyles()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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