Passed
Push — develop ( a91a3c...04d256 )
by Andrew
07:02
created
src/services/ViteService.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
                 // Replace the hard-coded dev server URL with whatever they have theirs set to
166 166
                 $script = str_replace(
167 167
                     'http://localhost:3000/',
168
-                    rtrim($this->devServerPublic, '/') . '/',
168
+                    rtrim($this->devServerPublic, '/').'/',
169 169
                     $script
170 170
                 );
171 171
                 $lines[] = HtmlHelper::script(
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
                 // Replace the hard-coded dev server URL with whatever they have theirs set to
271 271
                 $script = str_replace(
272 272
                     'http://localhost:3000/',
273
-                    rtrim($this->devServerPublic, '/') . '/',
273
+                    rtrim($this->devServerPublic, '/').'/',
274 274
                     $script
275 275
                 );
276 276
                 $view->registerScript(
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
         $view->registerJsFile(
290 290
             $url,
291 291
             array_merge(['type' => 'module'], $scriptTagAttrs),
292
-            md5($url . JsonHelper::encode($scriptTagAttrs))
292
+            md5($url.JsonHelper::encode($scriptTagAttrs))
293 293
         );
294 294
     }
295 295
 
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
         // Get just the file name
381 381
         $assetKeyParts = explode('/', $path);
382 382
         $assetKey = end($assetKeyParts);
383
-        foreach($assets as $key => $value) {
383
+        foreach ($assets as $key => $value) {
384 384
             if ($key === $assetKey) {
385 385
                 return FileHelper::createUrl($this->serverPublic, $value);
386 386
             }
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
     public function invalidateCaches()
432 432
     {
433 433
         $cache = Craft::$app->getCache();
434
-        TagDependency::invalidate($cache, FileHelper::CACHE_TAG . $this->cacheKeySuffix);
434
+        TagDependency::invalidate($cache, FileHelper::CACHE_TAG.$this->cacheKeySuffix);
435 435
         Craft::info('All Vite caches cleared', __METHOD__);
436 436
     }
437 437
 
@@ -529,7 +529,7 @@  discard block
 block discarded – undo
529 529
                         $view->registerJsFile(
530 530
                             $url,
531 531
                             $tag['options'],
532
-                            md5($url . JsonHelper::encode($tag['options']))
532
+                            md5($url.JsonHelper::encode($tag['options']))
533 533
                         );
534 534
                         break;
535 535
                     case 'css':
Please login to merge, or discard this patch.