Code Duplication    Length = 3-3 lines in 2 locations

src/SwaggerSchema.php 2 locations

@@ 183-185 (lines=3) @@
180
                throw new InvalidDefinitionException('Invalid Component');
181
            }
182
183
            if (!isset($this->jsonFile[$nameParts[1]][$nameParts[2]][$nameParts[3]])) {
184
                throw new DefinitionNotFoundException("Component'$name' not found");
185
            }
186
187
            return $this->jsonFile[$nameParts[1]][$nameParts[2]][$nameParts[3]];
188
        }
@@ 194-196 (lines=3) @@
191
            throw new InvalidDefinitionException('Invalid Definition');
192
        }
193
194
        if (!isset($this->jsonFile[$nameParts[1]][$nameParts[2]])) {
195
            throw new DefinitionNotFoundException("Definition '$name' not found");
196
        }
197
198
        return $this->jsonFile[$nameParts[1]][$nameParts[2]];
199
    }