test: Remove unused code: array_reverse() and \array_reverse()

This commit is contained in:
pradip
2024-06-26 10:43:39 +05:45
parent 586e6f7bd1
commit 266c28d80b
@@ -6136,8 +6136,6 @@ trait WebDav {
$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 @@ trait WebDav {
$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 . '"'