Skip to content
Snippets Groups Projects
Commit 217c2441 authored by Robin Appelman's avatar Robin Appelman
Browse files

psalm fixes


Signed-off-by: default avatarRobin Appelman <robin@icewind.nl>
parent 10d0f151
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,9 @@ use OCP\IConfig; ...@@ -30,6 +30,9 @@ use OCP\IConfig;
use OCP\Security\CSP\AddContentSecurityPolicyEvent; use OCP\Security\CSP\AddContentSecurityPolicyEvent;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
/**
* @implements IEventListener<AddContentSecurityPolicyEvent>
*/
class CSPListener implements IEventListener { class CSPListener implements IEventListener {
private $config; private $config;
private $logger; private $logger;
......
...@@ -38,6 +38,9 @@ class Install implements IRepairStep { ...@@ -38,6 +38,9 @@ class Install implements IRepairStep {
return 'Set binary permissions'; return 'Set binary permissions';
} }
/**
* @return void
*/
public function run(IOutput $output) { public function run(IOutput $output) {
$this->setupWizard->testBinary(); $this->setupWizard->testBinary();
} }
......
...@@ -24,5 +24,10 @@ declare(strict_types=1); ...@@ -24,5 +24,10 @@ declare(strict_types=1);
namespace OCA\NotifyPush\Queue; namespace OCA\NotifyPush\Queue;
interface IQueue { interface IQueue {
/**
* @param string $channel
* @param mixed $message
* @return void
*/
public function push(string $channel, $message); public function push(string $channel, $message);
} }
...@@ -33,9 +33,6 @@ class RedisQueue implements IQueue { ...@@ -33,9 +33,6 @@ class RedisQueue implements IQueue {
$this->redis = $redis; $this->redis = $redis;
} }
/**
* @return void
*/
public function push(string $channel, $message) { public function push(string $channel, $message) {
$this->redis->publish($channel, json_encode($message)); $this->redis->publish($channel, json_encode($message));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment