Completed
Push — master ( 86f7cc...7c1ca4 )
by Basil
07:22
created
core/web/CompositionResolver.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
      * Get a value for a given resolved pattern key.
93 93
      * 
94 94
      * @param string $key
95
-     * @return boolean|mixed
95
+     * @return string
96 96
      */
97 97
     public function getResolvedKeyValue($key)
98 98
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
152 152
              */
153 153
             preg_match_all(static::VAR_MATCH_REGEX, $this->pattern, $patternDefinitions, PREG_SET_ORDER);
154 154
             
155
-            foreach($patternDefinitions as $definition) {
155
+            foreach ($patternDefinitions as $definition) {
156 156
                 $newRegex = str_replace($definition[0], "(".$definition[2].")", $newRegex);
157 157
             }
158 158
             
Please login to merge, or discard this patch.
core/helpers/Url.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public static function trailing($url, $slash = '/')
36 36
     {
37
-        return rtrim($url, $slash) . $slash;
37
+        return rtrim($url, $slash).$slash;
38 38
     }
39 39
 
40 40
     /**
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     public static function ensureHttp($url, $https = false)
88 88
     {
89 89
         if (!preg_match("~^(?:f|ht)tps?://~i", $url)) {
90
-            $url = ($https ? "https://" : "http://") . $url;
90
+            $url = ($https ? "https://" : "http://").$url;
91 91
         }
92 92
         
93 93
         return $url;
Please login to merge, or discard this patch.