Completed
Push — master ( 1c71a7...a21677 )
by PHPLicengine
23:50 queued 16:29
created
lib/PHPLicengine/Api/Api.php 1 patch
Braces   +10 added lines, -11 removed lines patch added patch discarded remove patch
@@ -170,21 +170,20 @@
 block discarded – undo
170 170
                                    $h = explode(':', $h, 2);
171 171
 
172 172
                                    if (isset($h[1])) {
173
-                                   if (!isset($headers[$h[0]]))
174
-                                          $headers[$h[0]] = trim($h[1]);
175
-                                   elseif (is_array($headers[$h[0]])) {
173
+                                   if (!isset($headers[$h[0]])) {
174
+                                                                             $headers[$h[0]] = trim($h[1]);
175
+                                   } elseif (is_array($headers[$h[0]])) {
176 176
                                                  $headers[$h[0]] = array_merge($headers[$h[0]], array(trim($h[1])));
177
-                                   }
178
-                                   else {
177
+                                   } else {
179 178
                                           $headers[$h[0]] = array_merge(array($headers[$h[0]]), array(trim($h[1])));
180 179
                                    }
181 180
                                    $key = $h[0];
182
-                                   }
183
-                                   else { 
184
-                                          if (substr($h[0], 0, 1) == "\t")
185
-                                          $headers[$key] .= "\r\n\t".trim($h[0]);
186
-                                          elseif (!$key) 
187
-                                          $headers[0] = trim($h[0]); 
181
+                                   } else { 
182
+                                          if (substr($h[0], 0, 1) == "\t") {
183
+                                                                                    $headers[$key] .= "\r\n\t".trim($h[0]);
184
+                                          } elseif (!$key) {
185
+                                                                                    $headers[0] = trim($h[0]);
186
+                                          }
188 187
                                    }
189 188
                             }
190 189
                             return $headers;
Please login to merge, or discard this patch.