Completed
Push — master ( 5c52b8...379248 )
by ARCANEDEV
03:49
created

Command   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 33
ccs 0
cts 15
cp 0
rs 10
wmc 2
lcom 0
cbo 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A arcanesoftHeader() 0 13 1
A config() 0 4 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 Functions
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    /**
18
     * Display arcanesoft header.
19
     */
20
    protected function arcanesoftHeader()
21
    {
22
        $this->comment('    ___    ____  _________    _   _____________ ____  ____________');
23
        $this->comment('   /   |  / __ \/ ____/   |  / | / / ____/ ___// __ \/ ____/_  __/');
24
        $this->comment('  / /| | / /_/ / /   / /| | /  |/ / __/  \__ \/ / / / /_    / /   ');
25
        $this->comment(' / ___ |/ _, _/ /___/ ___ |/ /|  / /___ ___/ / /_/ / __/   / /    ');
26
        $this->comment('/_/  |_/_/ |_|\____/_/  |_/_/ |_/_____//____/\____/_/     /_/     ');
27
        $this->line('');
28
29
        // Copyright
30
        $this->comment('Version ' . foundation()->version() . ' | 2015-2016 | Created by ARCANEDEV(c)');
31
        $this->line('');
32
    }
33
34
    /**
35
     * Get the config repository.
36
     *
37
     * @return \Illuminate\Contracts\Config\Repository
38
     */
39
    protected function config()
40
    {
41
        return $this->laravel['config'];
42
    }
43
}
44