Merge pull request #9470 from owncloud/test/remove-unused-expressions

[full-ci][tests-only] Remove unused array_reverse() functions
This commit is contained in:
Phil Davis
2024-06-27 17:41:38 +05:45
committed by GitHub
@@ -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 . '"'