Passed
Pull Request — master (#77)
by Ron
41:51 queued 13:39
created

tbInstall   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Test Coverage

Coverage 20%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 15
c 1
b 0
f 0
dl 0
loc 45
ccs 3
cts 15
cp 0.2
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A handle() 0 14 1
1
<?php
2
3
namespace App\Console\Commands;
4
5
use Illuminate\Console\Command;
6
7
class tbInstall extends Command
8
{
9
    /**
10
     * The name and signature of the console command.
11
     *
12
     * @var string
13
     */
14
    protected $signature = 'tb-install';
15
16
    /**
17
     * The console command description.
18
     *
19
     * @var string
20
     */
21
    protected $description = 'Create a new installation of the Tech Bench';
22
23
    /**
24
     * Create a new command instance.
25
     *
26
     * @return void
27
     */
28 2
    public function __construct()
29
    {
30 2
        parent::__construct();
31 2
    }
32
33
    /**
34
     * Execute the console command.
35
     *
36
     * @return mixed
37
     */
38
    public function handle()
39
    {
40
        //
41
        $this->info('-----------------------------------------------------------------------------------');
42
        $this->info('|     ___________            .__      __________                     .__          |');
43
        $this->info('|     \__    ___/ ___   ____ |  |__   \______   \ ____   ____   ____ |  |__       |');
44
        $this->info('|        |    |_/ __ \_/ ___\|  |  \   |    |  _// __ \ /    \_/ ___\|  |  \      |');
45
        $this->info('|        |    |\  ___/\  \___|   Y  \  |    |   \  ___/|   |  \  \___|   Y  \     |');
46
        $this->info('|        |____| \___  >\___  >___|  /  |______  /\___  >___|  /\___  >___|  /     |');
47
        $this->info('|                   \/     \/     \/          \/     \/     \/     \/     \/      |');
48
        $this->info('-----------------------------------------------------------------------------------');
49
        $this->info('');
50
        $this->line('                     Welcom to the Tech Bench Installer');
51
        $this->line('');
52
    }
53
}
54