diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-04-08 18:02:49 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-04-08 18:02:49 +0000 |
commit | 6e62c3ddc57b3b84f6dad9d9e90302724565f102 (patch) | |
tree | 983024649e3ff2a6f9129cd21d9d71fbf3dc31c1 | |
parent | 32fc848fcff1ec3a31a198735930fde5b4c194f2 (diff) | |
download | nextcloud-server-6e62c3ddc57b3b84f6dad9d9e90302724565f102.tar.gz nextcloud-server-6e62c3ddc57b3b84f6dad9d9e90302724565f102.zip |
Remove unnecessary array_diff
Signed-off-by: Christopher Ng <chrng8@gmail.com>
-rw-r--r-- | apps/settings/tests/UserMigration/AccountMigratorTest.php | 6 |
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', ), ); |