ResponsiveQuote   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 3 1
1
<?php
2
3
namespace DavideCasiraghi\PhpResponsiveRandomQuote\Console;
4
5
use Illuminate\Console\Command;
6
use DavideCasiraghi\PhpResponsiveRandomQuote\Facades\PhpResponsiveQuote;
7
8
class ResponsiveQuote extends Command
9
{
10
    protected $signature = 'php-responsive-quote';
11
12
    protected $description = 'Output a responsive quote';
13
14 1
    public function handle()
15
    {
16 1
        $this->info(PhpResponsiveQuote::getRandomQuote());
0 ignored issues
show
Bug introduced by
The method getRandomQuote() does not exist on DavideCasiraghi\PhpRespo...ades\PhpResponsiveQuote. 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(PhpResponsiveQuote::/** @scrutinizer ignore-call */ getRandomQuote());
Loading history...
17 1
    }
18
}
19