Passed
Push — develop ( 456870...6906f3 )
by Andrew
03:07
created
src/helpers/MultiSite.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
             } else {
113 113
                 $variables['sitesMenuLabel'] = Craft::t(
114 114
                     'site',
115
-                    $sites->getSiteById((int)$variables['currentSiteId'])->name
115
+                    $sites->getSiteById((int) $variables['currentSiteId'])->name
116 116
                 );
117 117
             }
118 118
         } else {
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
             }
173 173
 
174 174
             if (($parsed = parse_url(self::getBaseUrl($site))) === false) {
175
-                Craft::warning('Unable to parse the site base URL: ' . $site->baseUrl);
175
+                Craft::warning('Unable to parse the site base URL: '.$site->baseUrl);
176 176
                 continue;
177 177
             }
178 178
 
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 
184 184
             // Does the site URL specify a base path?
185 185
             $parsedPath = !empty($parsed['path']) ? self::normalizePath($parsed['path']) : '';
186
-            if ($parsedPath && strpos($fullUri . '/', $parsedPath . '/') !== 0) {
186
+            if ($parsedPath && strpos($fullUri.'/', $parsedPath.'/') !== 0) {
187 187
                 continue;
188 188
             }
189 189
 
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
     protected static function getBaseUrl(Site $site): string
258 258
     {
259 259
         if ($site->baseUrl) {
260
-            return rtrim(Craft::parseEnv($site->baseUrl), '/') . '/';
260
+            return rtrim(Craft::parseEnv($site->baseUrl), '/').'/';
261 261
         }
262 262
 
263 263
         return null;
Please login to merge, or discard this patch.