BaseCommand::run()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace EricMakesStuff\ServerMonitor\Commands;
4
5
use Illuminate\Console\Command;
6
use EricMakesStuff\ServerMonitor\Helpers\ConsoleOutput;
7
use Symfony\Component\Console\Input\InputInterface;
8
use Symfony\Component\Console\Output\OutputInterface;
9
10
abstract class BaseCommand extends Command
11
{
12
    /**
13
     * @param \Symfony\Component\Console\Input\InputInterface   $input
14
     * @param \Symfony\Component\Console\Output\OutputInterface $output
15
     *
16
     * @return int
17
     */
18
    public function run(InputInterface $input, OutputInterface $output)
19
    {
20
        app(ConsoleOutput::class)->setOutput($this);
21
22
        return parent::run($input, $output);
23
    }
24
}
25