Passed
Push — v1 ( 09a90f...0ce8ab )
by Andrew
31:01 queued 24:58
created
src/config.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@
 block discarded – undo
26 26
 
27 27
 return [
28 28
 
29
-   /**
30
-    * @var bool Should the dev server be used?
31
-    */
29
+    /**
30
+     * @var bool Should the dev server be used?
31
+     */
32 32
     'useDevServer' => App::env('ENVIRONMENT') === 'dev',
33 33
 
34 34
     /**
Please login to merge, or discard this patch.
src/Vite.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
src/services/Helper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,11 +55,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.