aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/OCS/Result.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/OCS/Result.php')
-rw-r--r--lib/private/OCS/Result.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/private/OCS/Result.php b/lib/private/OCS/Result.php
index b16d83e0410..0199783b47d 100644
--- a/lib/private/OCS/Result.php
+++ b/lib/private/OCS/Result.php
@@ -104,14 +104,13 @@ class Result {
$meta['status'] = $this->succeeded() ? 'ok' : 'failure';
$meta['statuscode'] = $this->statusCode;
$meta['message'] = $this->message;
- if(isset($this->items)) {
+ if (isset($this->items)) {
$meta['totalitems'] = $this->items;
}
- if(isset($this->perPage)) {
+ if (isset($this->perPage)) {
$meta['itemsperpage'] = $this->perPage;
}
return $meta;
-
}
/**
@@ -141,7 +140,7 @@ class Result {
// to be able to reliably check for security
// headers
- if(is_null($value)) {
+ if (is_null($value)) {
unset($this->headers[$name]);
} else {
$this->headers[$name] = $value;
@@ -157,5 +156,4 @@ class Result {
public function getHeaders() {
return $this->headers;
}
-
}