for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Synext\Routers;
use Synext\Routers\Router;
//implements RouterInterface use synexTest\Routers\RouterInterface;
class WebRoute
{
private $router;
public function __construct(Router $router)
$this->router = $router;
}
public function get(string $route, string $target, ?string $name = null): self
$name
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function get(string $route, string $target, /** @scrutinizer ignore-unused */ ?string $name = null): self
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$this->router->maping('GET', $route, $target);
return $this;
public function post(string $route, string $target, ?string $name = null): Router
$target
public function post(string $route, /** @scrutinizer ignore-unused */ string $target, ?string $name = null): Router
$route
public function post(/** @scrutinizer ignore-unused */ string $route, string $target, ?string $name = null): Router
public function post(string $route, string $target, /** @scrutinizer ignore-unused */ ?string $name = null): Router
return $this->router;
public function run() : void
return ;
public function matching()
return $this->router->match();
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.