Passed
Push — main ( 144de1...77b9e9 )
by Thierry
02:56
created
src/Http/URI.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,8 +31,7 @@  discard block
 block discarded – undo
31 31
             if(strpos($_SERVER[$sKey], ':') > 0)
32 32
             {
33 33
                 list($aURL['host'], $aURL['port']) = explode(':', $_SERVER[$sKey]);
34
-            }
35
-            else
34
+            } else
36 35
             {
37 36
                 $aURL['host'] = $_SERVER[$sKey];
38 37
             }
@@ -65,8 +64,7 @@  discard block
 block discarded – undo
65 64
             if(!empty($_SERVER['HTTP_SCHEME']))
66 65
             {
67 66
                 $aURL['scheme'] = $_SERVER['HTTP_SCHEME'];
68
-            }
69
-            else
67
+            } else
70 68
             {
71 69
                 $aURL['scheme'] = ((!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) != 'off') ? 'https' : 'http');
72 70
             }
@@ -95,8 +93,7 @@  discard block
 block discarded – undo
95 93
             if(!empty($_SERVER['PATH_INFO']))
96 94
             {
97 95
                 $sPath = parse_url($_SERVER['PATH_INFO']);
98
-            }
99
-            else
96
+            } else
100 97
             {
101 98
                 $sPath = parse_url($_SERVER['PHP_SELF']);
102 99
             }
Please login to merge, or discard this patch.
src/Translation/Translator.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,8 +76,7 @@
 block discarded – undo
76 76
             {
77 77
                 // Save this translation
78 78
                 $this->aTranslations[$sLanguage][$sName] = $xTranslation;
79
-            }
80
-            else
79
+            } else
81 80
             {
82 81
                 // Recursively read the translations in the array
83 82
                 $this->_loadTranslations($sLanguage, $sName, $xTranslation);
Please login to merge, or discard this patch.