Completed
Push — master ( 9b4408...bfd5a5 )
by Thierry
01:45
created
src/Response/Response.php 1 patch
Braces   +18 added lines, -8 removed lines patch added patch discarded remove patch
@@ -514,7 +514,9 @@  discard block
 block discarded – undo
514 514
             $queryStart++;
515 515
             $queryEnd = strpos($sURL, '#', $queryStart);
516 516
             if($queryEnd === false)
517
-                $queryEnd = strlen($sURL);
517
+            {
518
+                            $queryEnd = strlen($sURL);
519
+            }
518 520
             $queryPart = substr($sURL, $queryStart, $queryEnd - $queryStart);
519 521
             parse_str($queryPart, $queryParts);
520 522
             $newQueryPart = "";
@@ -524,12 +526,17 @@  discard block
 block discarded – undo
524 526
                 foreach($queryParts as $key => $value)
525 527
                 {
526 528
                     if($first)
527
-                        $first = false;
528
-                    else
529
-                        $newQueryPart .= '&';
529
+                    {
530
+                                            $first = false;
531
+                    }
532
+                    else {
533
+                                            $newQueryPart .= '&';
534
+                    }
530 535
                     $newQueryPart .= rawurlencode($key) . '=' . rawurlencode($value);
531 536
                 }
532
-            } elseif($_SERVER['QUERY_STRING']) {
537
+            }
538
+            elseif($_SERVER['QUERY_STRING'])
539
+            {
533 540
                     //couldn't break up the query, but there's one there
534 541
                     //possibly "http://url/page.html?query1234" type of query?
535 542
                     //just encode it and hope it works
@@ -538,9 +545,12 @@  discard block
 block discarded – undo
538 545
             $sURL = str_replace($queryPart, $newQueryPart, $sURL);
539 546
         }
540 547
         if($iDelay)
541
-            $this->script('window.setTimeout("window.location = \'' . $sURL . '\';",' . ($iDelay * 1000) . ');');
542
-        else
543
-            $this->script('window.location = "' . $sURL . '";');
548
+        {
549
+                    $this->script('window.setTimeout("window.location = \'' . $sURL . '\';",' . ($iDelay * 1000) . ');');
550
+        }
551
+        else {
552
+                    $this->script('window.location = "' . $sURL . '";');
553
+        }
544 554
         return $this;
545 555
     }
546 556
 
Please login to merge, or discard this patch.