Showing 397 of 397 total issues
Possible parse error: class missing opening or closing brace Open
Open
class ConstProcessor extends AbstractPropertyProcessor
- Exclude checks
Multi-line use declarations must define one parameter per line Open
Open
) use ($schemaProperties, $validator): array {
- Exclude checks
The implements keyword must be on the same line as the class name Open
Open
implements ComposedPropertiesInterface, MergedComposedPropertiesInterface
- Exclude checks
The extends keyword must be on the same line as the class name Open
Open
extends AbstractComposedValueProcessor
- Exclude checks
Possible parse error: class missing opening or closing brace Open
Open
class ConstProcessor extends AbstractPropertyProcessor
- Exclude checks
Space found after opening bracket of FOREACH loop Open
Open
foreach (
- Exclude checks
Method name "ArrayHash::array_multiksort" is not in camel caps format Open
Open
private static function array_multiksort(array &$array): void
- Exclude checks
Space found before closing bracket of FOREACH loop Open
Open
foreach (
- Exclude checks
Terminating statement must be on a line by itself Open
Open
case 'boolean': return 'bool';
- Exclude checks
There must be one USE keyword per declaration Open
Open
use PHPModelGenerator\SchemaProcessor\PostProcessor\Internal\ {
- Exclude checks
The CASE body must start on the line following the statement Open
Open
case 'boolean': return 'bool';
- Exclude checks
Terminating statement must be on a line by itself Open
Open
case 'number': return 'float';
- Exclude checks
The CASE body must start on the line following the statement Open
Open
case 'integer': return 'int';
- Exclude checks
Terminating statement must be on a line by itself Open
Open
default: return $jsonSchemaType;
- Exclude checks
The CASE body must start on the line following the statement Open
Open
case 'number': return 'float';
- Exclude checks
The DEFAULT body must start on the line following the statement Open
Open
default: return $jsonSchemaType;
- Exclude checks
Terminating statement must be on a line by itself Open
Open
case 'integer': return 'int';
- Exclude checks
The method getType has a boolean flag argument $outputType, which is a certain sign of a Single Responsibility Principle violation. Open
Open
public function getType(bool $outputType = false): ?PropertyType
- Read upRead up
- Exclude checks
BooleanArgumentFlag
Since: 1.4.0
A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.
Example
class Foo {
public function bar($flag = true) {
}
}
Source https://phpmd.org/rules/cleancode.html#booleanargumentflag
The method getTypeHint has a boolean flag argument $outputType, which is a certain sign of a Single Responsibility Principle violation. Open
Open
public function getTypeHint(bool $outputType = false, array $skipDecorators = []): string
- Read upRead up
- Exclude checks
BooleanArgumentFlag
Since: 1.4.0
A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.
Example
class Foo {
public function bar($flag = true) {
}
}
Source https://phpmd.org/rules/cleancode.html#booleanargumentflag
The method getType has a boolean flag argument $outputType, which is a certain sign of a Single Responsibility Principle violation. Open
Open
public function getType(bool $outputType = false): ?PropertyType
- Read upRead up
- Exclude checks
BooleanArgumentFlag
Since: 1.4.0
A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.
Example
class Foo {
public function bar($flag = true) {
}
}