Build::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace App\Commands\Images;
4
5
use App\Commands\BaseCommand;
6
use App\Support\Images\Organiser\Organiser;
7
8
class Build extends BaseCommand
9
{
10
    /**
11
     * The signature of the command.
12
     *
13
     * @var string
14
     */
15
    protected $signature = 'images:build {service?} {--fresh}';
16
17
    /**
18
     * The description of the command.
19
     *
20
     * @var string
21
     */
22
    protected $description = 'Build the selected set of container images';
23
24
    /**
25
     * Execute the console command.
26
     *
27
     * @throws \Exception
28
     *
29
     * @return void
30
     */
31
    public function handle(): void
32
    {
33
        app(Organiser::class)->buildImages((string) $this->argument('service'), (bool) $this->option('fresh'));
34
    }
35
}
36