Code Duplication    Length = 4-4 lines in 2 locations

src/mgdschema/manager.php 2 locations

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