Code Duplication    Length = 3-3 lines in 2 locations

src/SwaggerSchema.php 2 locations

@@ 154-156 (lines=3) @@
151
                throw new InvalidDefinitionException('Invalid Component');
152
            }
153
154
            if (!isset($this->jsonFile[$nameParts[1]][$nameParts[2]][$nameParts[3]])) {
155
                throw new DefinitionNotFoundException("Component'$name' not found");
156
            }
157
158
            return $this->jsonFile[$nameParts[1]][$nameParts[2]][$nameParts[3]];
159
        }
@@ 165-167 (lines=3) @@
162
            throw new InvalidDefinitionException('Invalid Definition');
163
        }
164
165
        if (!isset($this->jsonFile[$nameParts[1]][$nameParts[2]])) {
166
            throw new DefinitionNotFoundException("Definition '$name' not found");
167
        }
168
169
        return $this->jsonFile[$nameParts[1]][$nameParts[2]];
170
    }