src/Model/Validator/ComposedPropertyValidator.php
Method getCheck
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getCheck(): string
{
/**
* Add a method to the schema to gather values from a nested object which are modified.
* This is required to adopt filter changes to the values which are passed into a merged property
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
GeneratorConfiguration $generatorConfiguration,
PropertyInterface $property,
array $composedProperties,
string $compositionProcessor,
array $validatorVariables,
syntax error, unexpected ')', expecting variable (T_VARIABLE)
Open
Open
) {
- Exclude checks
Line exceeds 120 characters; contains 145 characters Open
Open
&& ($modifiedValue = $nestedCompositionObject->$accessor()) !== ($originalModelData[$key] ?? !$modifiedValue)
- Exclude checks
Opening parenthesis of a multi-line function call must be the last content on the line Open
Open
return sprintf('
- Exclude checks
Multi-line function call not indented correctly; expected 12 spaces but found 16 Open
Open
'\\',
- Exclude checks
Multi-line function call not indented correctly; expected 12 spaces but found 16 Open
Open
DIRECTORY_SEPARATOR,
- Exclude checks
Multi-line function call not indented correctly; expected 8 spaces but found 12 Open
Open
) . '\\' . str_replace(
- Exclude checks
Multi-line function call not indented correctly; expected 12 spaces but found 16 Open
Open
dirname(str_replace('\\', DIRECTORY_SEPARATOR, InvalidComposedValueException::class)),
- Exclude checks