@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | Event::on( |
| 138 | 138 | CraftVariable::class, |
| 139 | 139 | CraftVariable::EVENT_INIT, |
| 140 | - function (Event $event) { |
|
| 140 | + function(Event $event) { |
|
| 141 | 141 | /** @var CraftVariable $variable */ |
| 142 | 142 | $variable = $event->sender; |
| 143 | 143 | $variable->set('vite', [ |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | Event::on( |
| 151 | 151 | ClearCaches::class, |
| 152 | 152 | ClearCaches::EVENT_REGISTER_CACHE_OPTIONS, |
| 153 | - function (RegisterCacheOptionsEvent $event) { |
|
| 153 | + function(RegisterCacheOptionsEvent $event) { |
|
| 154 | 154 | Craft::debug( |
| 155 | 155 | 'ClearCaches::EVENT_REGISTER_CACHE_OPTIONS', |
| 156 | 156 | __METHOD__ |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | Event::on( |
| 168 | 168 | View::class, |
| 169 | 169 | View::EVENT_BEFORE_RENDER_PAGE_TEMPLATE, |
| 170 | - function (TemplateEvent $event) { |
|
| 170 | + function(TemplateEvent $event) { |
|
| 171 | 171 | self::$templateName = $event->template; |
| 172 | 172 | } |
| 173 | 173 | ); |
@@ -54,12 +54,12 @@ |
||
| 54 | 54 | $name = strstr($name, $dirPrefix); |
| 55 | 55 | $pos = strpos($name, $dirPrefix); |
| 56 | 56 | if ($pos !== false) { |
| 57 | - $name = (string)substr_replace($name, '', $pos, strlen($dirPrefix)); |
|
| 57 | + $name = (string) substr_replace($name, '', $pos, strlen($dirPrefix)); |
|
| 58 | 58 | } |
| 59 | 59 | $path = FileHelper::createUrl( |
| 60 | 60 | $settings->criticalPath, |
| 61 | 61 | $name |
| 62 | - ) . $settings->criticalSuffix; |
|
| 62 | + ).$settings->criticalSuffix; |
|
| 63 | 63 | |
| 64 | 64 | return $this->getCssInlineTags($path, $attributes); |
| 65 | 65 | } |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | /** |
| 45 | 45 | * @var string The public URL to use when not using the dev server |
| 46 | 46 | */ |
| 47 | - 'serverPublic' => App::env('PRIMARY_SITE_URL') . '/dist/', |
|
| 47 | + 'serverPublic' => App::env('PRIMARY_SITE_URL').'/dist/', |
|
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * @var string|array The JavaScript entry from the manifest.json to inject on Twig error pages |