Djkhaled   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 3
Bugs 0 Features 2
Metric Value
wmc 1
c 3
b 0
f 2
lcom 0
cbo 1
dl 0
loc 30
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 8 1
1
<?php
2
3
/*
4
 * This file is part of the Laravel Quotes package.
5
 *
6
 * (c) Prosper Otemuyiwa <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Unicodeveloper\Quotes\Commands;
13
14
use Illuminate\Console\Command;
15
use Unicodeveloper\Quotes\Quotes;
16
17
class Djkhaled extends Command
18
{
19
    /**
20
     * The name and signature of the console command.
21
     *
22
     * @var string
23
     */
24
    protected $signature = 'djkhaled:inspire';
25
26
    /**
27
     * The console command description.
28
     *
29
     * @var string
30
     */
31
    protected $description = 'Display a key to success from DJ Khaled';
32
33
    /**
34
     * Execute the console command.
35
     *
36
     * @return mixed
37
     */
38
    public function handle()
39
    {
40
        $quotes = new Quotes();
41
        $keyToSuccess = $quotes->djkhaled()->anotherOne();
42
43
        $this->comment(PHP_EOL.$keyToSuccess.PHP_EOL);
44
        shell_exec("say {$keyToSuccess}");
45
    }
46
}
47