From: Christopher Ng Date: Fri, 8 Apr 2022 18:02:49 +0000 (+0000) Subject: Remove unnecessary array_diff X-Git-Tag: v24.0.0rc1~27^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6e62c3ddc57b3b84f6dad9d9e90302724565f102;p=nextcloud-server.git Remove unnecessary array_diff Signed-off-by: Christopher Ng --- 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', ), );