Skip to content

Commit

Permalink
Merge pull request #9470 from owncloud/test/remove-unused-expressions
Browse files Browse the repository at this point in the history
 [full-ci][tests-only] Remove unused array_reverse() functions
  • Loading branch information
phil-davis authored Jun 27, 2024
2 parents 6ece248 + 266c28d commit b78910d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/acceptance/features/bootstrap/WebDav.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 . '"'
Expand All @@ -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 . '"'
Expand Down

0 comments on commit b78910d

Please sign in to comment.