for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
echo __FILE__;
function admin_route(string $uri, string $method = HTTP_GET): ?\stdClass {
$uri
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
function admin_route(/** @scrutinizer ignore-unused */ string $uri, string $method = HTTP_GET): ?\stdClass {
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$method
function admin_route(string $uri, /** @scrutinizer ignore-unused */ string $method = HTTP_GET): ?\stdClass {
$content = new stdClass();
$content->template = '';
return $content;
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.