From f99c8d5f54c67e0abc3f3189b4f5e3e4571e114c Mon Sep 17 00:00:00 2001 From: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> Date: Wed, 5 Jun 2024 22:04:06 +0200 Subject: Modernize code to php7.4 (#6043) * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Consistency --------- Co-authored-by: Luc Co-authored-by: Alexandre Alapetite --- tests/app/Models/CategoryTest.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/app/Models/CategoryTest.php') diff --git a/tests/app/Models/CategoryTest.php b/tests/app/Models/CategoryTest.php index 842ebe200..c9e88a32d 100644 --- a/tests/app/Models/CategoryTest.php +++ b/tests/app/Models/CategoryTest.php @@ -19,14 +19,14 @@ class CategoryTest extends PHPUnit\Framework\TestCase { /** @return array */ public function provideValidNames(): array { - return array( - array('', ''), - array('this string does not need trimming', 'this string does not need trimming'), - array(' this string needs trimming on left', 'this string needs trimming on left'), - array('this string needs trimming on right ', 'this string needs trimming on right'), - array(' this string needs trimming on both ends ', 'this string needs trimming on both ends'), - array(str_repeat('X', 512), str_repeat('X', FreshRSS_DatabaseDAO::LENGTH_INDEX_UNICODE)), // max length - ); + return [ + ['', ''], + ['this string does not need trimming', 'this string does not need trimming'], + [' this string needs trimming on left', 'this string needs trimming on left'], + ['this string needs trimming on right ', 'this string needs trimming on right'], + [' this string needs trimming on both ends ', 'this string needs trimming on both ends'], + [str_repeat('X', 512), str_repeat('X', FreshRSS_DatabaseDAO::LENGTH_INDEX_UNICODE)], // max length + ]; } public function test_feedOrdering(): void { -- cgit v1.2.3