for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Micheledamo\LaravelWebArtisan\Controllers;
use Illuminate\Routing\Controller;
use Illuminate\Http\Request;
use Micheledamo\LaravelWebArtisan\LaravelWebArtisan;
if (class_exists('Illuminate\Routing\Controller')) {
class WebArtisanBaseController extends Controller
{
protected $webartisan;
public function __construct(Request $request, LaravelWebArtisan $webartisan)
$request
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function __construct(/** @scrutinizer ignore-unused */ Request $request, LaravelWebArtisan $webartisan)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$this->webartisan = $webartisan;
}
} else {
class WebArtisanBaseController
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.