aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Command/Create.php
diff options
context:
space:
mode:
authorFaraz Samapoor <f.samapoor@gmail.com>2023-06-02 19:54:49 +0330
committerFaraz Samapoor <f.samapoor@gmail.com>2023-06-02 19:54:49 +0330
commitcfb921b26c656352f727b3903b8961e1c48a8051 (patch)
tree278ae45067be1611967e7f3135d9767213eb1d1a /apps/files_external/lib/Command/Create.php
parent21885058378c1fb15ad0cb847043c0eea0e7de22 (diff)
downloadnextcloud-server-cfb921b26c656352f727b3903b8961e1c48a8051.tar.gz
nextcloud-server-cfb921b26c656352f727b3903b8961e1c48a8051.zip
Refactors "strpos" calls in /apps/files_external to improve code readability.
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Diffstat (limited to 'apps/files_external/lib/Command/Create.php')
-rw-r--r--apps/files_external/lib/Command/Create.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Command/Create.php b/apps/files_external/lib/Command/Create.php
index 17e4731a2d6..6208ac0da07 100644
--- a/apps/files_external/lib/Command/Create.php
+++ b/apps/files_external/lib/Command/Create.php
@@ -134,7 +134,7 @@ class Create extends Base {
$config = [];
foreach ($configInput as $configOption) {
- if (!strpos($configOption, '=')) {
+ if (!str_contains($configOption, '=')) {
$output->writeln('<error>Invalid mount configuration option "' . $configOption . '"</error>');
return 1;
}