Passed
Push — v1 ( d64b61...5b6156 )
by Andrew
13:20 queued 09:49
created
src/Twigpack.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         Event::on(
106 106
             View::class,
107 107
             View::EVENT_BEFORE_RENDER_PAGE_TEMPLATE,
108
-            function (TemplateEvent $event) {
108
+            function(TemplateEvent $event) {
109 109
                 self::$templateName = $event->template;
110 110
             }
111 111
         );
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         Event::on(
114 114
             CraftVariable::class,
115 115
             CraftVariable::EVENT_INIT,
116
-            function (Event $event) {
116
+            function(Event $event) {
117 117
                 /** @var CraftVariable $variable */
118 118
                 $variable = $event->sender;
119 119
                 $variable->set('twigpack', ManifestVariable::class);
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         Event::on(
124 124
             TemplateCaches::class,
125 125
             TemplateCaches::EVENT_AFTER_DELETE_CACHES,
126
-            function (DeleteTemplateCachesEvent $event) {
126
+            function(DeleteTemplateCachesEvent $event) {
127 127
                 // Invalidate the caches when template caches are deleted
128 128
                 $this->clearAllCaches();
129 129
             }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         Event::on(
133 133
             Plugins::class,
134 134
             Plugins::EVENT_AFTER_INSTALL_PLUGIN,
135
-            function (PluginEvent $event) {
135
+            function(PluginEvent $event) {
136 136
                 if ($event->plugin === $this) {
137 137
                     // Invalidate our caches after we've been installed
138 138
                     $this->clearAllCaches();
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         Event::on(
144 144
             ClearCaches::class,
145 145
             ClearCaches::EVENT_REGISTER_CACHE_OPTIONS,
146
-            function (RegisterCacheOptionsEvent $event) {
146
+            function(RegisterCacheOptionsEvent $event) {
147 147
                 Craft::debug(
148 148
                     'ClearCaches::EVENT_REGISTER_CACHE_OPTIONS',
149 149
                     __METHOD__
Please login to merge, or discard this patch.
src/services/Manifest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@
 block discarded – undo
150 150
      *
151 151
      * @return string
152 152
      */
153
-    public function getFileFromManifest(string $fileName, string $type = 'legacy',  $config = null): string
153
+    public function getFileFromManifest(string $fileName, string $type = 'legacy', $config = null): string
154 154
     {
155 155
         $settings = Twigpack::$plugin->getSettings();
156 156
         $config = $config ?? $settings->getAttributes();
Please login to merge, or discard this patch.
src/helpers/Manifest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
         $cache = Craft::$app->getCache();
439 439
         $file = $cache->getOrSet(
440 440
             self::CACHE_KEY.$path,
441
-            function () use ($path, $callback) {
441
+            function() use ($path, $callback) {
442 442
                 $result = null;
443 443
                 if (UrlHelper::isAbsoluteUrl($path)) {
444 444
                     /**
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
     protected static function combinePaths(string ...$paths): string
488 488
     {
489 489
         $last_key = \count($paths) - 1;
490
-        array_walk($paths, function (&$val, $key) use ($last_key) {
490
+        array_walk($paths, function(&$val, $key) use ($last_key) {
491 491
             switch ($key) {
492 492
                 case 0:
493 493
                     $val = rtrim($val, '/ ');
Please login to merge, or discard this patch.