/webtrees/tests/app/Http/RequestHandlers/ |
H A D | UpgradeWizardStepTest.php | 24 use Fig\Http\Message\StatusCodeInterface; alias 55 self::assertSame(StatusCodeInterface::STATUS_NO_CONTENT, $response->getStatusCode()); 71 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); 117 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); 131 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); 152 … self::assertSame(StatusCodeInterface::STATUS_INTERNAL_SERVER_ERROR, $response->getStatusCode()); 171 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); 176 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); 208 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); 224 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
|
H A D | PingTest.php | 22 use Fig\Http\Message\StatusCodeInterface; alias 41 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); 55 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); 68 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
|
H A D | ManageMediaDataTest.php | 23 use Fig\Http\Message\StatusCodeInterface; alias 57 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); 79 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); 101 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
|
H A D | PasswordRequestPageTest.php | 22 use Fig\Http\Message\StatusCodeInterface; alias 38 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); 48 self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
|
H A D | SelectLanguageTest.php | 22 use Fig\Http\Message\StatusCodeInterface; alias 42 self::assertSame(StatusCodeInterface::STATUS_NO_CONTENT, $response->getStatusCode()); 55 self::assertSame(StatusCodeInterface::STATUS_NO_CONTENT, $response->getStatusCode());
|
H A D | LoginPageTest.php | 22 use Fig\Http\Message\StatusCodeInterface; alias 42 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); 54 self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
|
H A D | SelectThemeTest.php | 22 use Fig\Http\Message\StatusCodeInterface; alias 43 self::assertSame(StatusCodeInterface::STATUS_NO_CONTENT, $response->getStatusCode()); 58 self::assertSame(StatusCodeInterface::STATUS_NO_CONTENT, $response->getStatusCode());
|
H A D | SiteLogsDataTest.php | 23 use Fig\Http\Message\StatusCodeInterface; alias 47 $response->method('getStatusCode')->willReturn(StatusCodeInterface::STATUS_OK); 55 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
|
H A D | PasswordResetPageTest.php | 22 use Fig\Http\Message\StatusCodeInterface; alias 50 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); 67 self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
|
/webtrees/app/Http/Middleware/ |
H A D | HandleExceptions.php | 23 use Fig\Http\Message\StatusCodeInterface; alias 55 class HandleExceptions implements MiddlewareInterface, StatusCodeInterface 142 … return response(nl2br((string) $exception), StatusCodeInterface::STATUS_INTERNAL_SERVER_ERROR); 167 $status_code = StatusCodeInterface::STATUS_OK; 198 ], StatusCodeInterface::STATUS_INTERNAL_SERVER_ERROR); 230 $status_code = StatusCodeInterface::STATUS_OK; 232 $status_code = StatusCodeInterface::STATUS_INTERNAL_SERVER_ERROR; 245 ], StatusCodeInterface::STATUS_INTERNAL_SERVER_ERROR); 253 ], StatusCodeInterface::STATUS_INTERNAL_SERVER_ERROR);
|
H A D | Router.php | 26 use Fig\Http\Message\StatusCodeInterface; alias 88 ->redirectUrl($uri, StatusCodeInterface::STATUS_PERMANENT_REDIRECT) 109 … return Registry::responseFactory()->response('', StatusCodeInterface::STATUS_METHOD_NOT_ALLOWED, [ 115 …return Registry::responseFactory()->response('Negotiation failed', StatusCodeInterface::STATUS_NOT…
|
H A D | CheckForMaintenanceMode.php | 22 use Fig\Http\Message\StatusCodeInterface; alias 32 class CheckForMaintenanceMode implements MiddlewareInterface, StatusCodeInterface 48 return response($html, StatusCodeInterface::STATUS_SERVICE_UNAVAILABLE);
|
/webtrees/app/Factories/ |
H A D | ResponseFactory.php | 22 use Fig\Http\Message\StatusCodeInterface; alias 72 int $status = StatusCodeInterface::STATUS_FOUND 87 …public function redirectUrl(UriInterface|string $url, int $code = StatusCodeInterface::STATUS_FOUN… 101 …public function response(string|array|object $content = '', int $code = StatusCodeInterface::STATU… 103 if ($content === '' && $code === StatusCodeInterface::STATUS_OK) { 104 $code = StatusCodeInterface::STATUS_NO_CONTENT; 140 int $status = StatusCodeInterface::STATUS_OK,
|
H A D | ImageFactory.php | 22 use Fig\Http\Message\StatusCodeInterface; alias 95 … return $this->replacementImageResponse(text: (string) StatusCodeInterface::STATUS_NOT_FOUND) 120 ->replacementImageResponse(text: (string) StatusCodeInterface::STATUS_NOT_FOUND) 128 … ->replacementImageResponse(text: (string) StatusCodeInterface::STATUS_INTERNAL_SERVER_ERROR) 159 … return $this->replacementImageResponse(text: (string) StatusCodeInterface::STATUS_NOT_FOUND) 162 …return $this->replacementImageResponse(text: (string) StatusCodeInterface::STATUS_INTERNAL_SERVER_… 221 ->replacementImageResponse(text: (string) StatusCodeInterface::STATUS_NOT_FOUND) 225 … ->replacementImageResponse(text: (string) StatusCodeInterface::STATUS_INTERNAL_SERVER_ERROR) 275 return response(content: $svg, code: StatusCodeInterface::STATUS_OK, headers: [
|
/webtrees/app/Contracts/ |
H A D | ResponseFactoryInterface.php | 22 use Fig\Http\Message\StatusCodeInterface; alias 45 int $status = StatusCodeInterface::STATUS_FOUND 56 …public function redirectUrl(UriInterface|string $url, int $code = StatusCodeInterface::STATUS_FOUN… 65 …public function response(string|array|object $content = '', int $code = StatusCodeInterface::STATU… 80 int $status = StatusCodeInterface::STATUS_OK,
|
/webtrees/app/Http/RequestHandlers/ |
H A D | MediaFileThumbnail.php | 22 use Fig\Http\Message\StatusCodeInterface; alias 54 …return Registry::imageFactory()->replacementImageResponse((string) StatusCodeInterface::STATUS_NOT… 58 …return Registry::imageFactory()->replacementImageResponse((string) StatusCodeInterface::STATUS_FOR… 72 …return Registry::imageFactory()->replacementImageResponse((string) StatusCodeInterface::STATUS_FOR… 90 …return Registry::imageFactory()->replacementImageResponse((string) StatusCodeInterface::STATUS_NOT…
|
H A D | EditMediaFileModal.php | 22 use Fig\Http\Message\StatusCodeInterface; alias 72 ]), StatusCodeInterface::STATUS_FORBIDDEN); 90 return response('', StatusCodeInterface::STATUS_NOT_FOUND);
|
H A D | RedirectModulePhp.php | 22 use Fig\Http\Message\StatusCodeInterface; alias 68 …return Registry::responseFactory()->redirectUrl($url, StatusCodeInterface::STATUS_MOVED_PERMANENTL… 80 ->redirectUrl($url, StatusCodeInterface::STATUS_MOVED_PERMANENTLY)
|
/webtrees/app/Helpers/ |
H A D | functions.php | 20 use Fig\Http\Message\StatusCodeInterface; alias 80 function redirect(string $url, int $code = StatusCodeInterface::STATUS_FOUND): ResponseInterface 98 function response(array|object|string $content = '', int $code = StatusCodeInterface::STATUS_OK, ar…
|
/webtrees/tests/app/Http/Middleware/ |
H A D | AuthAdministratorTest.php | 22 use Fig\Http\Message\StatusCodeInterface; alias 48 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); 78 self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
|
H A D | AuthModeratorTest.php | 22 use Fig\Http\Message\StatusCodeInterface; alias 52 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); 87 self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
|
H A D | AuthMemberTest.php | 22 use Fig\Http\Message\StatusCodeInterface; alias 52 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); 87 self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
|
H A D | AuthEditorTest.php | 22 use Fig\Http\Message\StatusCodeInterface; alias 52 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); 87 self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
|
H A D | AuthManagerTest.php | 22 use Fig\Http\Message\StatusCodeInterface; alias 52 self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); 87 self::assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
|
/webtrees/app/Module/ |
H A D | ModuleCustomTrait.php | 22 use Fig\Http\Message\StatusCodeInterface; alias 105 if ($response->getStatusCode() === StatusCodeInterface::STATUS_OK) { 195 return response($content, StatusCodeInterface::STATUS_OK, [
|