@@ -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,11 +54,11 @@ |
||
| 54 | 54 | $dirPrefix = CRAFT_TEMPLATES_PATH; |
| 55 | 55 | } |
| 56 | 56 | $name = strstr($name, $dirPrefix); |
| 57 | - $name = (string)str_replace($dirPrefix, '', $name); |
|
| 57 | + $name = (string) str_replace($dirPrefix, '', $name); |
|
| 58 | 58 | $path = FileHelper::createUrl( |
| 59 | 59 | $settings->criticalPath, |
| 60 | 60 | $name |
| 61 | - ) . $settings->criticalSuffix; |
|
| 61 | + ).$settings->criticalSuffix; |
|
| 62 | 62 | |
| 63 | 63 | return $this->getCssInlineTags($path, $attributes); |
| 64 | 64 | } |