@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | // Replace the hard-coded dev server URL with whatever they have theirs set to |
212 | 212 | $script = str_replace( |
213 | 213 | 'http://localhost:3000/', |
214 | - rtrim($this->devServerPublic, '/') . '/', |
|
214 | + rtrim($this->devServerPublic, '/').'/', |
|
215 | 215 | $script |
216 | 216 | ); |
217 | 217 | $view->registerScript( |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | $view->registerJsFile( |
231 | 231 | $url, |
232 | 232 | array_merge(['type' => 'module'], $scriptTagAttrs), |
233 | - md5($url . JsonHelper::encode($scriptTagAttrs)) |
|
233 | + md5($url.JsonHelper::encode($scriptTagAttrs)) |
|
234 | 234 | ); |
235 | 235 | } |
236 | 236 | |
@@ -351,7 +351,7 @@ discard block |
||
351 | 351 | public function invalidateCaches() |
352 | 352 | { |
353 | 353 | $cache = Craft::$app->getCache(); |
354 | - TagDependency::invalidate($cache, FileHelper::CACHE_TAG . $this->cacheKeySuffix); |
|
354 | + TagDependency::invalidate($cache, FileHelper::CACHE_TAG.$this->cacheKeySuffix); |
|
355 | 355 | Craft::info('All Vite caches cleared', __METHOD__); |
356 | 356 | } |
357 | 357 | |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | // Replace the hard-coded dev server URL with whatever they have theirs set to |
395 | 395 | $script = str_replace( |
396 | 396 | 'http://localhost:3000/', |
397 | - rtrim($this->devServerPublic, '/') . '/', |
|
397 | + rtrim($this->devServerPublic, '/').'/', |
|
398 | 398 | $script |
399 | 399 | ); |
400 | 400 | $lines[] = HtmlHelper::script( |
@@ -477,7 +477,7 @@ discard block |
||
477 | 477 | $view->registerJsFile( |
478 | 478 | $url, |
479 | 479 | $tag['options'], |
480 | - md5($url . JsonHelper::encode($tag['options'])) |
|
480 | + md5($url.JsonHelper::encode($tag['options'])) |
|
481 | 481 | ); |
482 | 482 | break; |
483 | 483 | case 'css': |
@@ -52,7 +52,7 @@ |
||
52 | 52 | return; |
53 | 53 | } |
54 | 54 | // See if the $pluginDevServerEnvVar env var exists, and if not, don't run off of the dev server |
55 | - $useDevServer = (bool)App::env($this->pluginDevServerEnvVar); |
|
55 | + $useDevServer = (bool) App::env($this->pluginDevServerEnvVar); |
|
56 | 56 | if ($useDevServer === false) { |
57 | 57 | $this->useDevServer = false; |
58 | 58 | } |