for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Http\Controllers\Systems;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class SystemsController extends Controller
{
public function __construct()
$this->middleware('auth');
}
// Allow the user to select a category to view
public function index()
echo 'select category';
// Select the system type for the given category
public function selectSys($cat)
$cat
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function selectSys(/** @scrutinizer ignore-unused */ $cat)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
echo 'select system';
// Show the details of the selected system
public function details($cat, $sys)
$sys
public function details($cat, /** @scrutinizer ignore-unused */ $sys)
public function details(/** @scrutinizer ignore-unused */ $cat, $sys)
echo 'details';
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.