Passed
Push — develop ( 9d2a29...f072e9 )
by Andrew
02:59
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/helpers/Manifest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     {
81 81
         $result = self::getFile($path);
82 82
         if ($result) {
83
-            $result = "<style>\r\n" . $result . "</style>\r\n";
83
+            $result = "<style>\r\n".$result."</style>\r\n";
84 84
         }
85 85
 
86 86
         return $result;
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
         $cache = Craft::$app->getCache();
368 368
         $file = $cache->getOrSet(
369 369
             self::CACHE_KEY.$path,
370
-            function () use ($path, $callback) {
370
+            function() use ($path, $callback) {
371 371
                 $result = @file_get_contents($path);
372 372
                 if ($result && $callback) {
373 373
                     $result = $callback($result);
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
     protected static function combinePaths(string ...$paths): string
394 394
     {
395 395
         $last_key = \count($paths) - 1;
396
-        array_walk($paths, function (&$val, $key) use ($last_key) {
396
+        array_walk($paths, function(&$val, $key) use ($last_key) {
397 397
             switch ($key) {
398 398
                 case 0:
399 399
                     $val = rtrim($val, '/ ');
Please login to merge, or discard this patch.