Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ public function __construct() {
parent::__construct(self::APP_ID);
}

#[\Override]
public function register(IRegistrationContext $context): void {
$context->registerEventListener(LoadViewer::class, LoadViewerListener::class);
$context->registerEventListener(AddContentSecurityPolicyEvent::class, CSPListener::class);
}

#[\Override]
public function boot(IBootContext $context): void {
}
}
1 change: 1 addition & 0 deletions lib/Listeners/CSPListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* @template-implements IEventListener<AddContentSecurityPolicyEvent>
*/
class CSPListener implements IEventListener {
#[\Override]
public function handle(Event $event): void {
if (!$event instanceof AddContentSecurityPolicyEvent) {
return;
Expand Down
1 change: 1 addition & 0 deletions lib/Listeners/LoadViewerListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function __construct(
) {
}

#[\Override]
public function handle(Event $event): void {
if (!$event instanceof LoadViewer) {
return;
Expand Down
3 changes: 3 additions & 0 deletions lib/Settings/AdminSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,17 @@ public function __construct(IConfig $config) {
$this->config = $config;
}

#[\Override]
public function getForm(): TemplateResponse {
return new TemplateResponse(Application::APP_ID, 'admin');
}

#[\Override]
public function getSection(): string {
return 'server';
}

#[\Override]
public function getPriority(): int {
return 50;
}
Expand Down
4 changes: 2 additions & 2 deletions vendor-bin/psalm/composer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"config": {
"platform": {
"php": "8.1"
"php": "8.2.27"
}
},
"require-dev": {
"nextcloud/ocp": "dev-stable33",
"vimeo/psalm": "^5.25"
"vimeo/psalm": "^6.16.1"
}
}
Loading
Loading