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