@@ -83,7 +83,7 @@ discard block  | 
                                                    ||
| 83 | 83 | Event::on(  | 
                                                        
| 84 | 84 | CraftVariable::class,  | 
                                                        
| 85 | 85 | CraftVariable::EVENT_INIT,  | 
                                                        
| 86 | -            function (Event $event) { | 
                                                        |
| 86 | +            function(Event $event) { | 
                                                        |
| 87 | 87 | /** @var CraftVariable $variable */  | 
                                                        
| 88 | 88 | $variable = $event->sender;  | 
                                                        
| 89 | 89 |                  $variable->set('richVariables', RichVariablesVariable::class); | 
                                                        
@@ -93,7 +93,7 @@ discard block  | 
                                                    ||
| 93 | 93 | Event::on(  | 
                                                        
| 94 | 94 | Plugins::class,  | 
                                                        
| 95 | 95 | Plugins::EVENT_AFTER_INSTALL_PLUGIN,  | 
                                                        
| 96 | -            function (PluginEvent $event) { | 
                                                        |
| 96 | +            function(PluginEvent $event) { | 
                                                        |
| 97 | 97 |                  if ($event->plugin === $this) { | 
                                                        
| 98 | 98 | $request = Craft::$app->getRequest();  | 
                                                        
| 99 | 99 |                      if ($request->isCpRequest) { | 
                                                        
@@ -122,7 +122,7 @@ discard block  | 
                                                    ||
| 122 | 122 | Event::on(  | 
                                                        
| 123 | 123 | UrlManager::class,  | 
                                                        
| 124 | 124 | UrlManager::EVENT_REGISTER_SITE_URL_RULES,  | 
                                                        
| 125 | -            function (RegisterUrlRulesEvent $event) { | 
                                                        |
| 125 | +            function(RegisterUrlRulesEvent $event) { | 
                                                        |
| 126 | 126 | Craft::debug(  | 
                                                        
| 127 | 127 | 'UrlManager::EVENT_REGISTER_SITE_URL_RULES',  | 
                                                        
| 128 | 128 | __METHOD__  | 
                                                        
@@ -145,7 +145,7 @@ discard block  | 
                                                    ||
| 145 | 145 | Event::on(  | 
                                                        
| 146 | 146 | Plugins::class,  | 
                                                        
| 147 | 147 | Plugins::EVENT_AFTER_LOAD_PLUGINS,  | 
                                                        
| 148 | -            function () { | 
                                                        |
| 148 | +            function() { | 
                                                        |
| 149 | 149 | $this->installRedactorPlugin();  | 
                                                        
| 150 | 150 | }  | 
                                                        
| 151 | 151 | );  | 
                                                        
@@ -176,7 +176,7 @@ discard block  | 
                                                    ||
| 176 | 176 | Event::on(  | 
                                                        
| 177 | 177 | RichText::class,  | 
                                                        
| 178 | 178 | RichText::EVENT_REGISTER_PLUGIN_PATHS,  | 
                                                        
| 179 | -                function (RegisterPluginPathsEvent $event) { | 
                                                        |
| 179 | +                function(RegisterPluginPathsEvent $event) { | 
                                                        |
| 180 | 180 | /** @var Plugin $redactor */  | 
                                                        
| 181 | 181 |                      $redactor = Craft::$app->getPlugins()->getPlugin('redactor'); | 
                                                        
| 182 | 182 | $versionDir = 'v1/';  | 
                                                        
@@ -300,7 +300,7 @@ discard block  | 
                                                    ||
| 300 | 300 | $cache = Craft::$app->getCache();  | 
                                                        
| 301 | 301 | $file = $cache->getOrSet(  | 
                                                        
| 302 | 302 | self::CACHE_KEY.$path,  | 
                                                        
| 303 | -            function () use ($path) { | 
                                                        |
| 303 | +            function() use ($path) { | 
                                                        |
| 304 | 304 | $result = null;  | 
                                                        
| 305 | 305 | $string = @file_get_contents($path);  | 
                                                        
| 306 | 306 |                  if ($string) { | 
                                                        
@@ -327,7 +327,7 @@ discard block  | 
                                                    ||
| 327 | 327 | protected static function combinePaths(string ...$paths): string  | 
                                                        
| 328 | 328 |      { | 
                                                        
| 329 | 329 | $last_key = \count($paths) - 1;  | 
                                                        
| 330 | -        array_walk($paths, function (&$val, $key) use ($last_key) { | 
                                                        |
| 330 | +        array_walk($paths, function(&$val, $key) use ($last_key) { | 
                                                        |
| 331 | 331 |              switch ($key) { | 
                                                        
| 332 | 332 | case 0:  | 
                                                        
| 333 | 333 | $val = rtrim($val, '/ ');  |