summaryrefslogtreecommitdiffstats
path: root/lib/Listener
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-04-14 16:36:11 +0200
committerJoas Schilling <coding@schilljs.com>2021-04-14 16:36:11 +0200
commita4cf5a43ff199f6a13304bfe1c21649c0047f47f (patch)
tree81435a934522962d2fd1f12cb6b2ef7976775fec /lib/Listener
parenta564828c8846fc285ea34004e6a8f047a8848804 (diff)
Fix php CS
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Listener')
-rw-r--r--lib/Listener/GroupDeletedListener.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Listener/GroupDeletedListener.php b/lib/Listener/GroupDeletedListener.php
index d4112dddd..4fd6ec0c3 100644
--- a/lib/Listener/GroupDeletedListener.php
+++ b/lib/Listener/GroupDeletedListener.php
@@ -51,12 +51,11 @@ class GroupDeletedListener implements IEventListener {
}
protected function removeGroupFromConfig(string $configKey, string $removeGroupId): void {
-
$json = $this->config->getAppValue('spreed', $configKey, '[]');
$array = json_decode($json, true);
$gids = \is_array($array) ? $array : [];
- $gids = array_filter($gids, static function($gid) use ($removeGroupId) {
+ $gids = array_filter($gids, static function ($gid) use ($removeGroupId) {
return $gid !== $removeGroupId;
});