Showing 662 of 662 total issues
The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line Open
Open
{
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
Open
$sortedByRelationship = NULL;
- Exclude checks
The extends keyword must be on the same line as the interface name Open
Open
extends DocumentResource, Countable, Traversable, ArrayAccess
- Exclude checks
There must be one USE keyword per declaration Open
Open
use GoIntegro\Hateoas\JsonApi\Request\Params,
- Exclude checks
The implements keyword must be on the same line as the class name Open
Open
implements PersistenceExceptionInterface
- Exclude checks
The extends keyword must be on the same line as the class name Open
Open
extends ConflictException
- Exclude checks
The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line Open
Open
{
- Exclude checks
The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line Open
Open
{
- Exclude checks
The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line Open
Open
{
- Exclude checks
Multi-line function declarations must define one parameter per line Open
Open
Request $request, Params $params, RequestAction $action
- Exclude checks
Function create
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
public function create()
{
$include = NULL;
$fields = NULL;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line Open
Open
{
- Exclude checks
Multi-line function declarations must define one parameter per line Open
Open
MetadataCache $metadataCache, $resourceClassPath
- Exclude checks
Multi-line function declarations must define one parameter per line Open
Open
$class, $type, $subtype, $kind, $name, $mappingField
- Exclude checks
Multi-line function declarations must define one parameter per line Open
Open
$class, $type, $subtype, $kind, $name, $mappingField
- Exclude checks
There must be one USE keyword per declaration Open
Open
use IteratorAggregate, ArrayIterator, Countable;
- Exclude checks
There must be one USE keyword per declaration Open
Open
use Doctrine\ORM\EntityManagerInterface,
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
Open
$fields = NULL;
- Exclude checks
The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line Open
Open
{
- Exclude checks
Multi-line function declarations must define one parameter per line Open
Open
Request $request, Params $params
- Exclude checks