diff options
author | Faraz Samapoor <f.samapoor@gmail.com> | 2023-06-02 19:54:49 +0330 |
---|---|---|
committer | Faraz Samapoor <f.samapoor@gmail.com> | 2023-06-02 19:54:49 +0330 |
commit | cfb921b26c656352f727b3903b8961e1c48a8051 (patch) | |
tree | 278ae45067be1611967e7f3135d9767213eb1d1a /apps/files_external/lib/Command/Create.php | |
parent | 21885058378c1fb15ad0cb847043c0eea0e7de22 (diff) | |
download | nextcloud-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.php | 2 |
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; } |