Code Duplication    Length = 5-5 lines in 2 locations

src/SwaggerSchema.php 2 locations

@@ 155-159 (lines=5) @@
152
                    }
153
                    $parameter = $this->jsonFile[self::SWAGGER_COMPONENTS][self::SWAGGER_PARAMETERS][$paramParts[3]];
154
                }
155
                if ($parameter['in'] === $parameterIn &&
156
                    $parameter['schema']['type'] === "integer"
157
                    && filter_var($arguments[$parameter['name']], FILTER_VALIDATE_INT) === false) {
158
                    throw new NotMatchedException('Path expected an integer value');
159
                }
160
            }
161
            return;
162
        }
@@ 165-169 (lines=5) @@
162
        }
163
164
        foreach ($parameters as $parameter) {
165
            if ($parameter['in'] === $parameterIn
166
                && $parameter['type'] === "integer"
167
                && filter_var($arguments[$parameter['name']], FILTER_VALIDATE_INT) === false) {
168
                throw new NotMatchedException('Path expected an integer value');
169
            }
170
        }
171
    }
172