@@ -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 |