Code Duplication    Length = 3-3 lines in 2 locations

src/SwaggerSchema.php 2 locations

@@ 202-204 (lines=3) @@
199
                throw new InvalidDefinitionException('Invalid Component');
200
            }
201
202
            if (!isset($this->jsonFile[$nameParts[1]][$nameParts[2]][$nameParts[3]])) {
203
                throw new DefinitionNotFoundException("Component'$name' not found");
204
            }
205
206
            return $this->jsonFile[$nameParts[1]][$nameParts[2]][$nameParts[3]];
207
        }
@@ 213-215 (lines=3) @@
210
            throw new InvalidDefinitionException('Invalid Definition');
211
        }
212
213
        if (!isset($this->jsonFile[$nameParts[1]][$nameParts[2]])) {
214
            throw new DefinitionNotFoundException("Definition '$name' not found");
215
        }
216
217
        return $this->jsonFile[$nameParts[1]][$nameParts[2]];
218
    }