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

ChuckNorrisJoke   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 3 1
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