Code Duplication    Length = 3-3 lines in 2 locations

src/SwaggerSchema.php 2 locations

@@ 188-190 (lines=3) @@
185
                throw new InvalidDefinitionException('Invalid Component');
186
            }
187
188
            if (!isset($this->jsonFile[$nameParts[1]][$nameParts[2]][$nameParts[3]])) {
189
                throw new DefinitionNotFoundException("Component'$name' not found");
190
            }
191
192
            return $this->jsonFile[$nameParts[1]][$nameParts[2]][$nameParts[3]];
193
        }
@@ 199-201 (lines=3) @@
196
            throw new InvalidDefinitionException('Invalid Definition');
197
        }
198
199
        if (!isset($this->jsonFile[$nameParts[1]][$nameParts[2]])) {
200
            throw new DefinitionNotFoundException("Definition '$name' not found");
201
        }
202
203
        return $this->jsonFile[$nameParts[1]][$nameParts[2]];
204
    }