Browse Source

Some OCS result psalm fixes

For #25641

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/v22.0.0beta1
Roeland Jago Douma 3 years ago
parent
commit
11a9bd3e19
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lib/private/OCS/Result.php

+ 2
- 2
lib/private/OCS/Result.php View File

@@ -104,10 +104,10 @@ class Result {
$meta['status'] = $this->succeeded() ? 'ok' : 'failure';
$meta['statuscode'] = $this->statusCode;
$meta['message'] = $this->message;
if (isset($this->items)) {
if ($this->items !== null) {
$meta['totalitems'] = $this->items;
}
if (isset($this->perPage)) {
if ($this->perPage !== null) {
$meta['itemsperpage'] = $this->perPage;
}
return $meta;

Loading…
Cancel
Save