Completed
Push — master ( 8fdd14...7db4d1 )
by Ed
02:37
created

ChuckNorrisController::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Ejdelmonico\ChuckNorrisJokes\Http\Controllers;
4
5
use Ejdelmonico\ChuckNorrisJokes\Facades\ChuckNorris;
6
7
class ChuckNorrisController
8
{
9
    public function __invoke()
10
    {
11
        return view('chuck-norris::joke', [
12
            'joke' => 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

12
            'joke' => ChuckNorris::/** @scrutinizer ignore-call */ getRandomJoke(),
Loading history...
13
        ]);
14
    }
15
}
16