|
| 1 | +<?php |
| 2 | + |
| 3 | +declare(strict_types=1); |
| 4 | + |
| 5 | +namespace PHPSTORM_META; |
| 6 | + |
| 7 | +expectedArguments(\Nette\Application\Routers\Route::__construct(), 2, \Nette\Routing\Router::ONE_WAY); |
| 8 | +expectedArguments(\Nette\Application\Routers\SimpleRouter::__construct(), 1, \Nette\Routing\Router::ONE_WAY); |
| 9 | + |
| 10 | +registerArgumentsSet('nette_http_codes_3xx', |
| 11 | + \Nette\Http\IResponse::S300_MULTIPLE_CHOICES, |
| 12 | + \Nette\Http\IResponse::S301_MOVED_PERMANENTLY, |
| 13 | + \Nette\Http\IResponse::S302_FOUND, |
| 14 | + \Nette\Http\IResponse::S303_SEE_OTHER, |
| 15 | + \Nette\Http\IResponse::S303_POST_GET, |
| 16 | + \Nette\Http\IResponse::S304_NOT_MODIFIED, |
| 17 | + \Nette\Http\IResponse::S305_USE_PROXY, |
| 18 | + \Nette\Http\IResponse::S307_TEMPORARY_REDIRECT, |
| 19 | + \Nette\Http\IResponse::S308_PERMANENT_REDIRECT |
| 20 | +); |
| 21 | +registerArgumentsSet('nette_http_codes_4xx', |
| 22 | + \Nette\Http\IResponse::S400_BAD_REQUEST, |
| 23 | + \Nette\Http\IResponse::S401_UNAUTHORIZED, |
| 24 | + \Nette\Http\IResponse::S402_PAYMENT_REQUIRED, |
| 25 | + \Nette\Http\IResponse::S403_FORBIDDEN, |
| 26 | + \Nette\Http\IResponse::S404_NOT_FOUND, |
| 27 | + \Nette\Http\IResponse::S405_METHOD_NOT_ALLOWED, |
| 28 | + \Nette\Http\IResponse::S406_NOT_ACCEPTABLE, |
| 29 | + \Nette\Http\IResponse::S407_PROXY_AUTHENTICATION_REQUIRED, |
| 30 | + \Nette\Http\IResponse::S408_REQUEST_TIMEOUT, |
| 31 | + \Nette\Http\IResponse::S409_CONFLICT, |
| 32 | + \Nette\Http\IResponse::S410_GONE, |
| 33 | + \Nette\Http\IResponse::S411_LENGTH_REQUIRED, |
| 34 | + \Nette\Http\IResponse::S412_PRECONDITION_FAILED, |
| 35 | + \Nette\Http\IResponse::S413_REQUEST_ENTITY_TOO_LARGE, |
| 36 | + \Nette\Http\IResponse::S414_REQUEST_URI_TOO_LONG, |
| 37 | + \Nette\Http\IResponse::S415_UNSUPPORTED_MEDIA_TYPE, |
| 38 | + \Nette\Http\IResponse::S416_REQUESTED_RANGE_NOT_SATISFIABLE, |
| 39 | + \Nette\Http\IResponse::S417_EXPECTATION_FAILED, |
| 40 | + \Nette\Http\IResponse::S421_MISDIRECTED_REQUEST, |
| 41 | + \Nette\Http\IResponse::S422_UNPROCESSABLE_ENTITY, |
| 42 | + \Nette\Http\IResponse::S423_LOCKED, |
| 43 | + \Nette\Http\IResponse::S424_FAILED_DEPENDENCY, |
| 44 | + \Nette\Http\IResponse::S426_UPGRADE_REQUIRED, |
| 45 | + \Nette\Http\IResponse::S428_PRECONDITION_REQUIRED, |
| 46 | + \Nette\Http\IResponse::S429_TOO_MANY_REQUESTS, |
| 47 | + \Nette\Http\IResponse::S431_REQUEST_HEADER_FIELDS_TOO_LARGE, |
| 48 | + \Nette\Http\IResponse::S451_UNAVAILABLE_FOR_LEGAL_REASONS |
| 49 | +); |
| 50 | + |
| 51 | +expectedArguments(\Nette\Application\UI\Presenter::redirectUrl(), 1, argumentsSet('nette_http_codes_3xx')); |
| 52 | +expectedArguments(\Nette\Application\Responses\RedirectResponse::__construct(), 1, argumentsSet('nette_http_codes_3xx')); |
| 53 | +expectedArguments(\Nette\Application\UI\Component::error(), 1, argumentsSet('nette_http_codes_4xx')); |
| 54 | + |
| 55 | +expectedArguments(\Nette\Application\BadRequestException::__construct(), 1, argumentsSet('nette_http_codes_4xx')); |
| 56 | +expectedReturnValues(\Nette\Application\BadRequestException::getHttpCode(), argumentsSet('nette_http_codes_4xx')); |
0 commit comments