mirror of https://github.com/sualko/cloud_bbb
chore: psalm analyze
parent
e68a28d7d2
commit
a9ef4fe30c
|
|
@ -2,22 +2,22 @@
|
|||
|
||||
namespace OCA\BigBlueButton;
|
||||
|
||||
use OCP\AppFramework\Http;
|
||||
use OCP\AppFramework\Http\ContentSecurityPolicy;
|
||||
use OCP\AppFramework\Http\Response;
|
||||
use OCP\Template;
|
||||
|
||||
/**
|
||||
* @template-extends Response<int, array<string, mixed>>
|
||||
* @template-extends Response<Http::STATUS_*, array<string, mixed>>
|
||||
*
|
||||
* (NC < 28)
|
||||
* @psalm-suppress TooManyTemplateParams
|
||||
*/
|
||||
class NoPermissionResponse extends Response {
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
parent::__construct(Http::STATUS_FORBIDDEN);
|
||||
|
||||
$this->setContentSecurityPolicy(new ContentSecurityPolicy());
|
||||
$this->setStatus(403);
|
||||
}
|
||||
|
||||
public function render() {
|
||||
|
|
|
|||
|
|
@ -2,22 +2,22 @@
|
|||
|
||||
namespace OCA\BigBlueButton;
|
||||
|
||||
use OCP\AppFramework\Http;
|
||||
use OCP\AppFramework\Http\ContentSecurityPolicy;
|
||||
use OCP\AppFramework\Http\Response;
|
||||
use OCP\Template;
|
||||
|
||||
/**
|
||||
* @template-extends Response<int, array<string, mixed>>
|
||||
* @template-extends Response<Http::STATUS_*, array<string, mixed>>
|
||||
*
|
||||
* (NC < 28)
|
||||
* @psalm-suppress TooManyTemplateParams
|
||||
*/
|
||||
class NotFoundResponse extends Response {
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
parent::__construct(Http::STATUS_NOT_FOUND);
|
||||
|
||||
$this->setContentSecurityPolicy(new ContentSecurityPolicy());
|
||||
$this->setStatus(404);
|
||||
}
|
||||
|
||||
public function render() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue