diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-12-13 08:54:49 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-01-20 11:22:09 +0100 |
commit | 0c466b7ff59c08e796437fc666a5307cb1dc969f (patch) | |
tree | 3c08cdac0840384671315c046b1a23070bb93107 /apps | |
parent | e91457d9cd68182591038636155d415b5dee0ec4 (diff) | |
download | nextcloud-server-0c466b7ff59c08e796437fc666a5307cb1dc969f.tar.gz nextcloud-server-0c466b7ff59c08e796437fc666a5307cb1dc969f.zip |
Attempt at reducing psalm errors
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_external/lib/Command/Notify.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/files_external/lib/Command/Notify.php b/apps/files_external/lib/Command/Notify.php index bba698fb25f..60639f7dbe4 100644 --- a/apps/files_external/lib/Command/Notify.php +++ b/apps/files_external/lib/Command/Notify.php @@ -1,4 +1,7 @@ <?php + +declare(strict_types=1); + /** * @copyright Copyright (c) 2016 Robin Appelman <robin@icewind.nl> * @@ -108,9 +111,9 @@ class Notify extends Base { if ($input->getOption('user')) { return (string)$input->getOption('user'); } elseif (isset($_ENV['NOTIFY_USER'])) { - return (string)$_ENV['NOTIFY_USER']; + return $_ENV['NOTIFY_USER']; } elseif (isset($_SERVER['NOTIFY_USER'])) { - return (string)$_SERVER['NOTIFY_USER']; + return $_SERVER['NOTIFY_USER']; } else { return null; } @@ -120,9 +123,9 @@ class Notify extends Base { if ($input->getOption('password')) { return (string)$input->getOption('password'); } elseif (isset($_ENV['NOTIFY_PASSWORD'])) { - return (string)$_ENV['NOTIFY_PASSWORD']; + return $_ENV['NOTIFY_PASSWORD']; } elseif (isset($_SERVER['NOTIFY_PASSWORD'])) { - return (string)$_SERVER['NOTIFY_PASSWORD']; + return $_SERVER['NOTIFY_PASSWORD']; } else { return null; } |