mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-26 14:08:29 -05:00
test: Remove unused code: array_reverse() and \array_reverse()
This commit is contained in:
@@ -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 . '"'
|
||||
|
||||
Reference in New Issue
Block a user