Completed
Push — master ( 304047...03ad7b )
by Ed
02:52 queued 10s
created

ChuckNorrisJoke::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Ejdelmonico\ChuckNorrisJokes\Console;
4
5
use Illuminate\Console\Command;
6
use Ejdelmonico\ChuckNorrisJokes\Facades\ChuckNorris;
7
8
class ChuckNorrisJoke extends Command
9
{
10
    protected $signature = 'chuck-norris';
11
12
    protected $description = 'Output a funny Chuck Norris joke.';
13
14
    public function handle()
15
    {
16
        $this->info(ChuckNorris::getRandomJoke());
0 ignored issues
show
Bug introduced by
The method getRandomJoke() does not exist on Ejdelmonico\ChuckNorrisJokes\Facades\ChuckNorris. Since you implemented __callStatic, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

16
        $this->info(ChuckNorris::/** @scrutinizer ignore-call */ getRandomJoke());
Loading history...
17
    }
18
}
19