for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
* @author Divine Niiquaye Ibok <[email protected]>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flight\Routing\Tests\Fixtures\Annotation\Route\Abstracts;
abstract class AbstractController
{
abstract public function abstractRouteAction();
public function routeAction($arg1, $arg2 = 'defaultValue2', $arg3 = 'defaultValue3'): void
$arg2
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function routeAction($arg1, /** @scrutinizer ignore-unused */ $arg2 = 'defaultValue2', $arg3 = 'defaultValue3'): void
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$arg3
public function routeAction($arg1, $arg2 = 'defaultValue2', /** @scrutinizer ignore-unused */ $arg3 = 'defaultValue3'): void
$arg1
public function routeAction(/** @scrutinizer ignore-unused */ $arg1, $arg2 = 'defaultValue2', $arg3 = 'defaultValue3'): void
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.