@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | // Replace the hard-coded dev server URL with whatever they have theirs set to |
| 213 | 213 | $script = str_replace( |
| 214 | 214 | 'http://localhost:3000/', |
| 215 | - rtrim($this->devServerPublic, '/') . '/', |
|
| 215 | + rtrim($this->devServerPublic, '/').'/', |
|
| 216 | 216 | $script |
| 217 | 217 | ); |
| 218 | 218 | $view->registerScript( |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | $view->registerJsFile( |
| 232 | 232 | $url, |
| 233 | 233 | array_merge(['type' => 'module'], $scriptTagAttrs), |
| 234 | - md5($url . JsonHelper::encode($scriptTagAttrs)) |
|
| 234 | + md5($url.JsonHelper::encode($scriptTagAttrs)) |
|
| 235 | 235 | ); |
| 236 | 236 | } |
| 237 | 237 | |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | * |
| 302 | 302 | * @return string |
| 303 | 303 | */ |
| 304 | - public function asset(string $path, bool $public=false): string |
|
| 304 | + public function asset(string $path, bool $public = false): string |
|
| 305 | 305 | { |
| 306 | 306 | if ($this->devServerRunning()) { |
| 307 | 307 | return $this->devServerAsset($path); |
@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | public function invalidateCaches() |
| 370 | 370 | { |
| 371 | 371 | $cache = Craft::$app->getCache(); |
| 372 | - TagDependency::invalidate($cache, FileHelper::CACHE_TAG . $this->cacheKeySuffix); |
|
| 372 | + TagDependency::invalidate($cache, FileHelper::CACHE_TAG.$this->cacheKeySuffix); |
|
| 373 | 373 | Craft::info('All Vite caches cleared', __METHOD__); |
| 374 | 374 | } |
| 375 | 375 | |
@@ -412,7 +412,7 @@ discard block |
||
| 412 | 412 | // Replace the hard-coded dev server URL with whatever they have theirs set to |
| 413 | 413 | $script = str_replace( |
| 414 | 414 | 'http://localhost:3000/', |
| 415 | - rtrim($this->devServerPublic, '/') . '/', |
|
| 415 | + rtrim($this->devServerPublic, '/').'/', |
|
| 416 | 416 | $script |
| 417 | 417 | ); |
| 418 | 418 | $lines[] = HtmlHelper::script( |
@@ -495,7 +495,7 @@ discard block |
||
| 495 | 495 | $view->registerJsFile( |
| 496 | 496 | $url, |
| 497 | 497 | $tag['options'], |
| 498 | - md5($url . JsonHelper::encode($tag['options'])) |
|
| 498 | + md5($url.JsonHelper::encode($tag['options'])) |
|
| 499 | 499 | ); |
| 500 | 500 | break; |
| 501 | 501 | case 'css': |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | * |
| 95 | 95 | * @return Markup |
| 96 | 96 | */ |
| 97 | - public function asset(string $path, bool $public=false): Markup |
|
| 97 | + public function asset(string $path, bool $public = false): Markup |
|
| 98 | 98 | { |
| 99 | 99 | return Template::raw( |
| 100 | 100 | $this->viteService->asset($path, $public) |