Passed
Push — v1 ( 00ff48...1c06db )
by Andrew
13:04 queued 08:17
created
src/services/ViteService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
                 // Replace the hard-coded dev server URL with whatever they have theirs set to
203 203
                 $script = str_replace(
204 204
                     'http://localhost:3000/',
205
-                    rtrim($this->devServerPublic, '/') . '/',
205
+                    rtrim($this->devServerPublic, '/').'/',
206 206
                     $script
207 207
                 );
208 208
                 $view->registerScript(
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
         $view->registerJsFile(
222 222
             $url,
223 223
             array_merge(['type' => 'module'], $scriptTagAttrs),
224
-            md5($url . JsonHelper::encode($scriptTagAttrs))
224
+            md5($url.JsonHelper::encode($scriptTagAttrs))
225 225
         );
226 226
     }
227 227
 
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
                         $view->registerJsFile(
288 288
                             $url,
289 289
                             $tag['options'],
290
-                            md5($url . JsonHelper::encode($tag['options']))
290
+                            md5($url.JsonHelper::encode($tag['options']))
291 291
                         );
292 292
                         break;
293 293
                     case 'css':
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
     public function invalidateCaches()
388 388
     {
389 389
         $cache = Craft::$app->getCache();
390
-        TagDependency::invalidate($cache, FileHelper::CACHE_TAG . $this->cacheKeySuffix);
390
+        TagDependency::invalidate($cache, FileHelper::CACHE_TAG.$this->cacheKeySuffix);
391 391
         Craft::info('All Vite caches cleared', __METHOD__);
392 392
     }
393 393
 
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
                 // Replace the hard-coded dev server URL with whatever they have theirs set to
470 470
                 $script = str_replace(
471 471
                     'http://localhost:3000/',
472
-                    rtrim($this->devServerPublic, '/') . '/',
472
+                    rtrim($this->devServerPublic, '/').'/',
473 473
                     $script
474 474
                 );
475 475
                 $lines[] = HtmlHelper::script(
Please login to merge, or discard this patch.