aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests/Integration/AbstractIntegrationTest.php
diff options
context:
space:
mode:
authorFaraz Samapoor <f.samapoor@gmail.com>2023-06-02 15:26:55 +0330
committerFaraz Samapoor <f.samapoor@gmail.com>2023-06-02 15:26:55 +0330
commitb0938b90839503fed01924d4a7874482caf2fc80 (patch)
tree6704ccb6066e29813fd164111e46b896036d65d5 /apps/user_ldap/tests/Integration/AbstractIntegrationTest.php
parent09c5f997c6d185d8b23b37a996e7a1130a426d75 (diff)
downloadnextcloud-server-b0938b90839503fed01924d4a7874482caf2fc80.tar.gz
nextcloud-server-b0938b90839503fed01924d4a7874482caf2fc80.zip
Refactors "strpos" calls in /apps/user_ldap to improve code readability.
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Diffstat (limited to 'apps/user_ldap/tests/Integration/AbstractIntegrationTest.php')
-rw-r--r--apps/user_ldap/tests/Integration/AbstractIntegrationTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/tests/Integration/AbstractIntegrationTest.php b/apps/user_ldap/tests/Integration/AbstractIntegrationTest.php
index e22678620c1..58475a2bea9 100644
--- a/apps/user_ldap/tests/Integration/AbstractIntegrationTest.php
+++ b/apps/user_ldap/tests/Integration/AbstractIntegrationTest.php
@@ -155,7 +155,7 @@ abstract class AbstractIntegrationTest {
$methods = get_class_methods($this);
$atLeastOneCaseRan = false;
foreach ($methods as $method) {
- if (strpos($method, 'case') === 0) {
+ if (str_starts_with($method, 'case')) {
print("running $method " . PHP_EOL);
try {
if (!$this->$method()) {