| @@ 169-173 (lines=5) @@ | ||
| 166 | } |
|
| 167 | $parameter = $this->jsonFile[self::SWAGGER_COMPONENTS][self::SWAGGER_PARAMETERS][$paramParts[3]]; |
|
| 168 | } |
|
| 169 | if ($parameter['in'] === $parameterIn && |
|
| 170 | $parameter['schema']['type'] === "integer" |
|
| 171 | && filter_var($arguments[$parameter['name']], FILTER_VALIDATE_INT) === false) { |
|
| 172 | throw new NotMatchedException('Path expected an integer value'); |
|
| 173 | } |
|
| 174 | } |
|
| 175 | return; |
|
| 176 | } |
|
| @@ 179-183 (lines=5) @@ | ||
| 176 | } |
|
| 177 | ||
| 178 | foreach ($parameters as $parameter) { |
|
| 179 | if ($parameter['in'] === $parameterIn |
|
| 180 | && $parameter['type'] === "integer" |
|
| 181 | && filter_var($arguments[$parameter['name']], FILTER_VALIDATE_INT) === false) { |
|
| 182 | throw new NotMatchedException('Path expected an integer value'); |
|
| 183 | } |
|
| 184 | } |
|
| 185 | } |
|
| 186 | ||