src/RouteCollector.php
Doc-block of $middleware
in __construct
contains phpdoc param type \Circuit\Interfaces\Middleware
which is incompatible with the param type array
declared in the signature Open
Open
* @param Middleware|string[] $middleware Array of middle ware to apply to all routes
- Exclude checks
Doc-block of $middleware
in get
contains phpdoc param type \Circuit\Interfaces\Middleware
which is incompatible with the param type array
declared in the signature Open
Open
* @param Middleware|string[] $middleware List of middleware (Middleware objects or named middleware) to add to
- Exclude checks
Doc-block of $middleware
in addRoute
contains phpdoc param type \Circuit\Interfaces\Middleware
which is incompatible with the param type array
declared in the signature Open
Open
* @param Middleware|string[] $middleware List of middleware (Middleware objects or named middleware) to add to
- Exclude checks
Doc-block of $middleware
in addGroup
contains phpdoc param type \Circuit\Interfaces\Middleware
which is incompatible with the param type array
declared in the signature Open
Open
* @param Middleware|string[] $middleware Middleware to be added to all routes in this group
- Exclude checks
Doc-block of $middleware
in head
contains phpdoc param type \Circuit\Interfaces\Middleware
which is incompatible with the param type array
declared in the signature Open
Open
* @param Middleware|string[] $middleware List of middleware (Middleware objects or named middleware) to add to
- Exclude checks
Doc-block of $middleware
in post
contains phpdoc param type \Circuit\Interfaces\Middleware
which is incompatible with the param type array
declared in the signature Open
Open
* @param Middleware|string[] $middleware List of middleware (Middleware objects or named middleware) to add to
- Exclude checks
Doc-block of $middleware
in delete
contains phpdoc param type \Circuit\Interfaces\Middleware
which is incompatible with the param type array
declared in the signature Open
Open
* @param Middleware|string[] $middleware List of middleware (Middleware objects or named middleware) to add to
- Exclude checks
Possibly zero references to use statement for classlike/namespace Request
(\Symfony\Component\HttpFoundation\Request)
Open
Open
use Symfony\Component\HttpFoundation\Request;
- Exclude checks
Possibly zero references to use statement for classlike/namespace Response
(\Symfony\Component\HttpFoundation\Response)
Open
Open
use Symfony\Component\HttpFoundation\Response;
- Exclude checks
Doc-block of $middleware
in put
contains phpdoc param type \Circuit\Interfaces\Middleware
which is incompatible with the param type array
declared in the signature Open
Open
* @param Middleware|string[] $middleware List of middleware (Middleware objects or named middleware) to add to
- Exclude checks
Doc-block of $middleware
in patch
contains phpdoc param type \Circuit\Interfaces\Middleware
which is incompatible with the param type array
declared in the signature Open
Open
* @param Middleware|string[] $middleware List of middleware (Middleware objects or named middleware) to add to
- Exclude checks
Avoid excessively long variable names like $previousMiddlewareStack. Keep variable name length under 20. Open
Open
$previousMiddlewareStack = $this->middlewareStack;
- Read upRead up
- Exclude checks
LongVariable
Since: 0.2
Detects when a field, formal or local variable is declared with a long name.
Example
class Something {
protected $reallyLongIntName = -3; // VIOLATION - Field
public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
$otherReallyLongName = -5; // VIOLATION - Local
for ($interestingIntIndex = 0; // VIOLATION - For
$interestingIntIndex < 10;
$interestingIntIndex++ ) {
}
}
}