Passed
Branch master (e80214)
by Vince
01:23
created
src/core/route/router.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             'post' => $payload
101 101
         ];
102 102
 
103
-        if( isset($this->requestBody['payload']) ) {
103
+        if (isset($this->requestBody['payload'])) {
104 104
             array_merge($this->requestBody['payload'], $payloadPost);
105 105
             return;
106 106
         }
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      */
126 126
     public function getRequestBody()
127 127
     {
128
-        if( isset($this->requestBody['payload']) ) {
128
+        if (isset($this->requestBody['payload'])) {
129 129
             return $this->requestBody['payload'];
130 130
         }
131 131
         return $this->requestBody;
Please login to merge, or discard this patch.
src/core/exception/errorException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
                 'MESSAGE' => $message,
171 171
             ), JSON_PRETTY_PRINT);
172 172
 
173
-            if( isset($options['errors']) && $options['errors'] == 'catchAll' ) {
173
+            if (isset($options['errors']) && $options['errors'] == 'catchAll') {
174 174
                 throw new \Exception($eMessage, 1);
175 175
             }
176 176
 
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
                 'MESSAGE' => $message,
186 186
             ), JSON_PRETTY_PRINT);
187 187
 
188
-            if( isset($options['errors']) && $options['errors'] == 'catchAll' ) {
188
+            if (isset($options['errors']) && $options['errors'] == 'catchAll') {
189 189
                 throw new \Exception($eMessage, 1);
190 190
             }
191 191
 
Please login to merge, or discard this patch.
src/core/headers/header.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
         foreach ($headers_list as $index => $headValue) {
190 190
             @list($key, $value) = explode(": ", $headValue);
191 191
             
192
-            if (!is_null($key) && !is_null($value) ) {
192
+            if (!is_null($key) && !is_null($value)) {
193 193
                 $headers_list[$key] = $value;
194 194
                 unset($headers_list[$index]);
195 195
             }
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
             $apacheRequestHeaders = apache_request_headers();
202 202
         }
203 203
 
204
-        if( is_null($apacheRequestHeaders) || empty($apacheRequestHeaders) ) {
204
+        if (is_null($apacheRequestHeaders) || empty($apacheRequestHeaders)) {
205 205
             return [];
206 206
         }
207 207
 
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
             '*',
260 260
         ));
261 261
 
262
-        if( !array_key_exists('Access-Control-Allow-Methods', $this->getHeaders()) ) {
262
+        if (!array_key_exists('Access-Control-Allow-Methods', $this->getHeaders())) {
263 263
             $this->setHeader('Access-Control-Allow-Methods', array(
264 264
                 'GET,POST,OPTIONS',
265 265
             ));
@@ -458,7 +458,7 @@  discard block
 block discarded – undo
458 458
                     )
459 459
                 );
460 460
 
461
-            if( empty($account) ) {
461
+            if (empty($account)) {
462 462
                 $this->unauthorised();
463 463
             }
464 464
 
Please login to merge, or discard this patch.