| @@ -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 The JavaScript entry from the manifest.json to inject on Twig error pages | 
| @@ -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 | ); | 
| @@ -55,11 +55,11 @@ discard block | ||
| 55 | 55 | $dirPrefix = CRAFT_TEMPLATES_PATH; | 
| 56 | 56 | } | 
| 57 | 57 | $name = strstr($name, $dirPrefix); | 
| 58 | - $name = (string)str_replace($dirPrefix, '', $name); | |
| 58 | + $name = (string) str_replace($dirPrefix, '', $name); | |
| 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 | } | 
| @@ -99,7 +99,7 @@ discard block | ||
| 99 | 99 | $settings = Vite::$plugin->getSettings(); | 
| 100 | 100 | ManifestHelper::fetchManifest($settings->manifestPath); | 
| 101 | 101 | $tags = ManifestHelper::manifestTags($path, false); | 
| 102 | -        foreach($tags as $tag) { | |
| 102 | +        foreach ($tags as $tag) { | |
| 103 | 103 |              if (!empty($tag)) { | 
| 104 | 104 |                  if ($tag['type'] === 'css') { | 
| 105 | 105 | // Extract only the Hash Value |