1 | <?php |
||||
2 | |||||
3 | namespace Micheledamo\LaravelWebArtisan\Controllers; |
||||
4 | |||||
5 | use Illuminate\Routing\Controller; |
||||
6 | use Illuminate\Http\Request; |
||||
7 | use Micheledamo\LaravelWebArtisan\LaravelWebArtisan; |
||||
8 | |||||
9 | |||||
10 | if (class_exists('Illuminate\Routing\Controller')) { |
||||
11 | |||||
12 | class WebArtisanBaseController extends Controller |
||||
13 | { |
||||
14 | protected $webartisan; |
||||
15 | |||||
16 | public function __construct(Request $request, LaravelWebArtisan $webartisan) |
||||
0 ignored issues
–
show
|
|||||
17 | { |
||||
18 | $this->webartisan = $webartisan; |
||||
19 | } |
||||
20 | } |
||||
21 | |||||
22 | } else { |
||||
23 | |||||
24 | class WebArtisanBaseController |
||||
25 | { |
||||
26 | protected $webartisan; |
||||
27 | |||||
28 | public function __construct(Request $request, LaravelWebArtisan $webartisan) |
||||
0 ignored issues
–
show
The parameter
$request is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. ![]() |
|||||
29 | { |
||||
30 | $this->webartisan = $webartisan; |
||||
31 | } |
||||
32 | } |
||||
33 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.