diff options
author | Faraz Samapoor <f.samapoor@gmail.com> | 2023-06-02 15:43:47 +0330 |
---|---|---|
committer | Faraz Samapoor <f.samapoor@gmail.com> | 2023-06-02 15:43:47 +0330 |
commit | 437631a33435db6902d09cf0fd58c35ac9e4f1f9 (patch) | |
tree | 4a435be8ba13ca9c58f7d966ba8cbf4d01daba6e /apps/theming/lib/Command | |
parent | 09c5f997c6d185d8b23b37a996e7a1130a426d75 (diff) | |
download | nextcloud-server-437631a33435db6902d09cf0fd58c35ac9e4f1f9.tar.gz nextcloud-server-437631a33435db6902d09cf0fd58c35ac9e4f1f9.zip |
Refactors "strpos" calls in /apps/theming to improve code readability.
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Diffstat (limited to 'apps/theming/lib/Command')
-rw-r--r-- | apps/theming/lib/Command/UpdateConfig.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/theming/lib/Command/UpdateConfig.php b/apps/theming/lib/Command/UpdateConfig.php index 58dfcff8a8e..aebb6b9be15 100644 --- a/apps/theming/lib/Command/UpdateConfig.php +++ b/apps/theming/lib/Command/UpdateConfig.php @@ -112,7 +112,7 @@ class UpdateConfig extends Command { } if (in_array($key, ImageManager::SUPPORTED_IMAGE_KEYS, true)) { - if (strpos($value, '/') !== 0) { + if (!str_starts_with($value, '/')) { $output->writeln('<error>The image file needs to be provided as an absolute path: ' . $value . '.</error>'); return 1; } |