Code Duplication    Length = 8-8 lines in 2 locations

src/Constraint/ItemsConstraint.php 1 location

@@ 125-132 (lines=8) @@
122
        }
123
    }
124
125
    private function parseAdditionalItemsProperty(stdClass $schema, Context $context, Walker $walker)
126
    {
127
        if (is_object($schema->additionalItems)) {
128
            $walker->parseSchema($schema->additionalItems, $context);
129
        } elseif (!is_bool($schema->additionalItems)) {
130
            throw new InvalidTypeException($context, [Types::TYPE_OBJECT, Types::TYPE_BOOLEAN]);
131
        }
132
    }
133
}
134

src/Constraint/PropertiesConstraint.php 1 location

@@ 132-139 (lines=8) @@
129
        }
130
    }
131
132
    private function parseAdditionalPropertiesProperty(stdClass $schema, Context $context, Walker $walker)
133
    {
134
        if (is_object($schema->additionalProperties)) {
135
            $walker->parseSchema($schema->additionalProperties, $context);
136
        } elseif (!is_bool($schema->additionalProperties)) {
137
            throw new InvalidTypeException($context, [Types::TYPE_OBJECT, Types::TYPE_BOOLEAN]);
138
        }
139
    }
140
141
    private function parsePatternPropertiesProperty(stdClass $schema, Context $context, Walker $walker)
142
    {