Code Duplication    Length = 4-4 lines in 2 locations

src/mgdschema/manager.php 2 locations

@@ 168-171 (lines=4) @@
165
            foreach ($type->get_properties() as $property) {
166
                if ($root_type->has_property($property->name)) {
167
                    $root_property = $root_type->get_property($property->name);
168
                    if ($root_property->field !== $property->field) {
169
                        connection::log()->error('Naming collision in ' . $root_type->name . ': Field ' . $type->name . '.' . $property->name . ' cannot use column ' . $property->field);
170
                    }
171
                    if ($root_property->type !== $property->type) {
172
                        connection::log()->warn('Naming collision in ' . $root_type->name . ': Field ' . $type->name . '.' . $property->name . ' cannot use type ' . $property->type);
173
                    }
174
                    continue;
@@ 171-174 (lines=4) @@
168
                    if ($root_property->field !== $property->field) {
169
                        connection::log()->error('Naming collision in ' . $root_type->name . ': Field ' . $type->name . '.' . $property->name . ' cannot use column ' . $property->field);
170
                    }
171
                    if ($root_property->type !== $property->type) {
172
                        connection::log()->warn('Naming collision in ' . $root_type->name . ': Field ' . $type->name . '.' . $property->name . ' cannot use type ' . $property->type);
173
                    }
174
                    continue;
175
                }
176
                $root_type->add_property($property);
177
            }