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

ResponsiveQuoteController::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 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