From 266c28d80bcdd6d33c0e8437a0dec9004cf8c2ba Mon Sep 17 00:00:00 2001 From: pradip Date: Wed, 26 Jun 2024 10:43:39 +0545 Subject: [PATCH] test: Remove unused code: array_reverse() and \array_reverse() --- tests/acceptance/features/bootstrap/WebDav.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/acceptance/features/bootstrap/WebDav.php b/tests/acceptance/features/bootstrap/WebDav.php index bebdc9ca372..d850296681a 100644 --- a/tests/acceptance/features/bootstrap/WebDav.php +++ b/tests/acceptance/features/bootstrap/WebDav.php @@ -6136,8 +6136,6 @@ public function checkAuthorOfAVersionOfFile(string $index, string $expectedUsern $authors[] = $author->__toString(); } } - // reverse the array to get the latest version first - \array_reverse($authors); if (!isset($authors[$index - 1])) { Assert::fail( 'could not find version with index "' . $index . '" for oc:meta-version-edited-by property in response to user "' . $this->responseUser . '"' @@ -6160,8 +6158,6 @@ public function checkAuthorOfAVersionOfFile(string $index, string $expectedUsern $displaynames[] = $displayname->__toString(); } } - // reverse the array to get the latest version first - \array_reverse($displaynames); if (!isset($displaynames[$index - 1])) { Assert::fail( 'could not find version with index "' . $index . '" for oc:meta-version-edited-by-name property in response to user "' . $this->responseUser . '"'