PropertyProxy
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
class PropertyProxy extends AbstractProperty
{
/**
* PropertyProxy constructor.
*
The method getTypeHint has a boolean flag argument $outputType, which is a certain sign of a Single Responsibility Principle violation. 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 setDefaultValue has a boolean flag argument $raw, which is a certain sign of a Single Responsibility Principle violation. Open
public function setDefaultValue($defaultValue, bool $raw = false): PropertyInterface
- 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 setType has a boolean flag argument $reset, which is a certain sign of a Single Responsibility Principle violation. Open
bool $reset = false,
- 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
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
syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE)
Open
protected ResolvedDefinitionsCollection $definitionsCollection,
- Exclude checks
Arguments with default values must be at the end of the argument list Open
bool $reset = false,
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
protected ResolvedDefinitionsCollection $definitionsCollection,
- Exclude checks
Multi-line function call not indented correctly; expected 12 spaces but found 16 Open
$propertyValidator->withProperty($this),
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
protected string $key,
- Exclude checks