Test Failed
Pull Request — stable (#73)
by Nuno
04:10
created

Installer::install()   B

Complexity

Conditions 5
Paths 6

Size

Total Lines 26
Code Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 5
eloc 16
nc 6
nop 1
dl 0
loc 26
rs 8.439
c 0
b 0
f 0
1
<?php
2
3
namespace LaravelZero\Framework\Commands\Component;
4
5
use LaravelZero\Framework\Commands\Command;
6
use LaravelZero\Framework\Contracts\Commands\Component\Installer as InstallerContract;
7
8
/**
9
 * This is the Laravel Zero Framework component installer command class.
10
 *
11
 * @author Nuno Maduro <[email protected]>
12
 */
13
abstract class Installer extends Command implements InstallerContract
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18
    public function handle(): void
19
    {
20
        $component = $this->getComponentName();
21
22
        $this->alert("Installing $component component...");
23
24
        $this->install();
25
26
        $this->output->writeln("The component $component installed: <info>✔</info>");
27
    }
28
}
29