Merge pull request #25645 from nextcloud/enh/pslam/ocs_result
Some OCS result psalm fixes
This commit is contained in:
commit
3ca3fefb3c
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue