Passed
Push — master ( 83eecb...25787f )
by Vince
02:27
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   +3 added lines, -3 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
             }
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
             '*',
256 256
         ));
257 257
 
258
-        if( !array_key_exists('Access-Control-Allow-Methods', $this->getHeaders()) ) {
258
+        if (!array_key_exists('Access-Control-Allow-Methods', $this->getHeaders())) {
259 259
             $this->setHeader('Access-Control-Allow-Methods', array(
260 260
                 'GET,POST,OPTIONS',
261 261
             ));
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
                     )
455 455
                 );
456 456
 
457
-            if( empty($account) ) {
457
+            if (empty($account)) {
458 458
                 $this->unauthorised();
459 459
             }
460 460
 
Please login to merge, or discard this patch.