Passed
Push — master ( 8e3f03...61985e )
by Sebastian
02:32
created
src/ConvertHelper/QueryParser.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -27,16 +27,16 @@
 block discarded – undo
27 27
         
28 28
     }
29 29
     
30
-   /**
31
-    * We parse the query string ourselves, because the PHP implementation
32
-    * of parse_str has limitations that do not apply to query strings. This
33
-    * is due to the fact that parse_str has to create PHP-compatible variable
34
-    * names from the parameters. URL parameters simply allow way more things
35
-    * than PHP variable names.
36
-    * 
37
-    * @param string $queryString
38
-    * @return array
39
-    */
30
+    /**
31
+     * We parse the query string ourselves, because the PHP implementation
32
+     * of parse_str has limitations that do not apply to query strings. This
33
+     * is due to the fact that parse_str has to create PHP-compatible variable
34
+     * names from the parameters. URL parameters simply allow way more things
35
+     * than PHP variable names.
36
+     * 
37
+     * @param string $queryString
38
+     * @return array
39
+     */
40 40
     public function parse(string $queryString) : array
41 41
     {
42 42
         // allow HTML entities notation
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         
47 47
         $result = array();
48 48
         
49
-        foreach($parts as $part)
49
+        foreach ($parts as $part)
50 50
         {
51 51
             $tokens = explode('=', $part);
52 52
             
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
             $trimmed = trim($name);
57 57
             
58
-            if(empty($trimmed))
58
+            if (empty($trimmed))
59 59
             {
60 60
                 continue;
61 61
             }
Please login to merge, or discard this patch.