| @@ 318-326 (lines=9) @@ | ||
| 315 | break; |
|
| 316 | } |
|
| 317 | ||
| 318 | if (!isset($hydraOperation['returns']) && |
|
| 319 | ( |
|
| 320 | ('GET' === $method && !$collection) || |
|
| 321 | 'POST' === $method || |
|
| 322 | 'PUT' === $method |
|
| 323 | ) |
|
| 324 | ) { |
|
| 325 | $hydraOperation['returns'] = $prefixedShortName; |
|
| 326 | } |
|
| 327 | ||
| 328 | if (!isset($hydraOperation['expects']) && |
|
| 329 | ('POST' === $method || 'PUT' === $method)) { |
|
| @@ 328-331 (lines=4) @@ | ||
| 325 | $hydraOperation['returns'] = $prefixedShortName; |
|
| 326 | } |
|
| 327 | ||
| 328 | if (!isset($hydraOperation['expects']) && |
|
| 329 | ('POST' === $method || 'PUT' === $method)) { |
|
| 330 | $hydraOperation['expects'] = $prefixedShortName; |
|
| 331 | } |
|
| 332 | ||
| 333 | if (!isset($hydraOperation['@type'])) { |
|
| 334 | $hydraOperation['@type'] = 'hydra:Operation'; |
|
| @@ 220-228 (lines=9) @@ | ||
| 217 | break; |
|
| 218 | } |
|
| 219 | ||
| 220 | if (!isset($swaggerOperation[$methodSwagger]['returns']) && |
|
| 221 | ( |
|
| 222 | ('GET' === $method && !$collection) || |
|
| 223 | 'POST' === $method || |
|
| 224 | 'PUT' === $method |
|
| 225 | ) |
|
| 226 | ) { |
|
| 227 | $swaggerOperation[$methodSwagger]['returns'] = $prefixedShortName; |
|
| 228 | } |
|
| 229 | ||
| 230 | if (!isset($swaggerOperation[$methodSwagger]['expects']) && |
|
| 231 | ('POST' === $method || 'PUT' === $method)) { |
|