Command   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 10
dl 0
loc 32
ccs 0
cts 14
cp 0
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A arcanesoftHeader() 0 12 1
A config() 0 3 1
1
<?php namespace Arcanesoft\Foundation\Console;
2
3
use Arcanedev\Support\Bases\Command as BaseCommand;
4
5
/**
6
 * Class     Command
7
 *
8
 * @package  Arcanesoft\Foundation\Console
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
abstract class Command extends BaseCommand
12
{
13
    /* -----------------------------------------------------------------
14
     |  Shared Methods
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * Display arcanesoft header.
20
     */
21
    protected function arcanesoftHeader()
22
    {
23
        $this->comment('    ___    ____  _________    _   _____________ ____  ____________');
24
        $this->comment('   /   |  / __ \/ ____/   |  / | / / ____/ ___// __ \/ ____/_  __/');
25
        $this->comment('  / /| | / /_/ / /   / /| | /  |/ / __/  \__ \/ / / / /_    / /   ');
26
        $this->comment(' / ___ |/ _, _/ /___/ ___ |/ /|  / /___ ___/ / /_/ / __/   / /    ');
27
        $this->comment('/_/  |_/_/ |_|\____/_/  |_/_/ |_/_____//____/\____/_/     /_/     ');
28
        $this->line('');
29
30
        // Copyright
31
        $this->comment('Version '.foundation()->version().' | 2015-'.date('Y').' | Created by ARCANEDEV(c)');
32
        $this->line('');
33
    }
34
35
    /**
36
     * Get the config repository.
37
     *
38
     * @return \Illuminate\Contracts\Config\Repository
39
     */
40
    protected function config()
41
    {
42
        return $this->laravel['config'];
43
    }
44
}
45