Test Failed
Push — master ( 6d2ccd...9c9907 )
by PHPLicengine
02:33 queued 19s
created
lib/PHPLicengine/Api/Api.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
                             case 'POST':
133 133
                                           curl_setopt(/** @scrutinizer ignore-type */ $ch, CURLOPT_POST, true);
134 134
                                           if ($this->json === true) {
135
-                                             $params = json_encode($params);
135
+                                                 $params = json_encode($params);
136 136
                                           }
137 137
                                           curl_setopt(/** @scrutinizer ignore-type */ $ch, CURLOPT_POSTFIELDS, $params);
138 138
                             break;
@@ -165,21 +165,21 @@  discard block
 block discarded – undo
165 165
               
166 166
               private function _json_encoder($params)
167 167
               {
168
-                      if ($this->json === true) {
169
-                          return json_encode($params);
170
-                      }
168
+                            if ($this->json === true) {
169
+                            return json_encode($params);
170
+                            }
171 171
               }
172 172
   
173 173
               private function _createHeaders($headers = null)
174 174
               {
175
-                      $headers[] = $this->_api_key_var.$this->_api_key;
176
-                      if ($this->json === true) {
177
-                          $headers[] = 'Content-Type: application/json';
178
-                      }
179
-                      if ($this->accept === true) {
180
-                          $headers[] = 'Accept: application/json';
181
-                      }
182
-                      return $headers;
175
+                            $headers[] = $this->_api_key_var.$this->_api_key;
176
+                            if ($this->json === true) {
177
+                            $headers[] = 'Content-Type: application/json';
178
+                            }
179
+                            if ($this->accept === true) {
180
+                            $headers[] = 'Accept: application/json';
181
+                            }
182
+                            return $headers;
183 183
               }
184 184
   
185 185
               private function _parseHeaders($raw_headers) 
Please login to merge, or discard this patch.