Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-04-08 21:02:49 +0300
committerChristopher Ng <chrng8@gmail.com>2022-04-08 21:02:49 +0300
commit6e62c3ddc57b3b84f6dad9d9e90302724565f102 (patch)
tree983024649e3ff2a6f9129cd21d9d71fbf3dc31c1 /apps/settings
parent32fc848fcff1ec3a31a198735930fde5b4c194f2 (diff)
Remove unnecessary array_diff
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/settings')
-rw-r--r--apps/settings/tests/UserMigration/AccountMigratorTest.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/settings/tests/UserMigration/AccountMigratorTest.php b/apps/settings/tests/UserMigration/AccountMigratorTest.php
index 74455bc91e1..051af68017c 100644
--- a/apps/settings/tests/UserMigration/AccountMigratorTest.php
+++ b/apps/settings/tests/UserMigration/AccountMigratorTest.php
@@ -91,11 +91,7 @@ class AccountMigratorTest extends TestCase {
];
},
array_filter(
- array_diff(
- scandir(self::ASSETS_DIR),
- // Exclude current and parent directories
- ['.', '..'],
- ),
+ scandir(self::ASSETS_DIR),
fn (string $filename) => pathinfo($filename, PATHINFO_EXTENSION) === 'json',
),
);