| @@ 385-394 (lines=10) @@ | ||
| 382 | return null; |
|
| 383 | } |
|
| 384 | ||
| 385 | private function createIn($type) |
|
| 386 | { |
|
| 387 | if ($type == InputParam::TYPE_GET) { |
|
| 388 | return 'query'; |
|
| 389 | } |
|
| 390 | if ($type == InputParam::TYPE_COOKIE) { |
|
| 391 | return 'cookie'; |
|
| 392 | } |
|
| 393 | return 'body'; |
|
| 394 | } |
|
| 395 | ||
| 396 | private function transformSchema(array $schema) |
|
| 397 | { |
|
| @@ 309-318 (lines=10) @@ | ||
| 306 | }, $handler->params()); |
|
| 307 | } |
|
| 308 | ||
| 309 | private function createIn($type) |
|
| 310 | { |
|
| 311 | if ($type == InputParam::TYPE_GET) { |
|
| 312 | return 'query'; |
|
| 313 | } |
|
| 314 | if ($type == InputParam::TYPE_COOKIE) { |
|
| 315 | return 'cookie'; |
|
| 316 | } |
|
| 317 | return 'body'; |
|
| 318 | } |
|
| 319 | } |
|
| 320 | ||