summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-09-14 12:43:45 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-09-14 12:43:45 +0200
commitcb07ab075e46b8d5642cd84852b391c742bad87d (patch)
tree397eb03c69dca1d8cc30768ff4b327cfd140f0a5
parent1786f1f446802338aaf87c263ea67e9800955fb1 (diff)
Fix composer cs
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
-rw-r--r--lib/Controller/LocalController.php1
-rw-r--r--lib/Listeners/ProfileSectionListener.php1
2 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/LocalController.php b/lib/Controller/LocalController.php
index eec19f0c..8bce345d 100644
--- a/lib/Controller/LocalController.php
+++ b/lib/Controller/LocalController.php
@@ -125,7 +125,6 @@ class LocalController extends Controller {
* @NoAdminRequired
*/
public function postCreate(string $content = '', $to = null, string $type = null, ?string $replyTo = null, $attachments = null, ?string $hashtags = null): DataResponse {
-
$content = $content ?? '';
$to = is_string($to) ? [$to] : $to;
$to = $to ?? [];
diff --git a/lib/Listeners/ProfileSectionListener.php b/lib/Listeners/ProfileSectionListener.php
index 41d0fdf6..fc12d592 100644
--- a/lib/Listeners/ProfileSectionListener.php
+++ b/lib/Listeners/ProfileSectionListener.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
// SPDX-FileCopyrightText: 2022 Carl Schwan <carl@carlschwan.eu>