Merge pull request #25645 from nextcloud/enh/pslam/ocs_result

Some OCS result psalm fixes
This commit is contained in:
Christoph Wurst 2021-02-15 11:42:00 +01:00 committed by GitHub
commit 3ca3fefb3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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