Completed
Push — master ( f6b67a...b50d1b )
by Davide
06:30 queued 01:33
created

ResponsiveQuoteController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 8
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 6 1
1
<?php 
2
3
namespace DavideCasiraghi\PhpResponsiveRandomQuote\Http\Controllers;
4
use DavideCasiraghi\PhpResponsiveRandomQuote\Facades\PhpResponsiveQuote;
5
6
class ResponsiveQuoteController
7
{
8 1
    public function __invoke()
9
    {
10
        //return PhpResponsiveQuote::getRandomQuote();
11
        
12 1
        return view('php-responsive-quote::joke',[
13 1
            'joke' => 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

13
            'joke' => PhpResponsiveQuote::/** @scrutinizer ignore-call */ getRandomQuote()
Loading history...
14
        ]);
15
    }
16
}
17