| @@ -88,7 +88,7 @@ discard block | ||
| 88 | 88 | Event::on( | 
| 89 | 89 | Plugins::class, | 
| 90 | 90 | Plugins::EVENT_AFTER_INSTALL_PLUGIN, | 
| 91 | -            function (PluginEvent $event) { | |
| 91 | +            function(PluginEvent $event) { | |
| 92 | 92 |                  if ($event->plugin === $this) { | 
| 93 | 93 | $this->reasons->clearCache(); | 
| 94 | 94 | } | 
| @@ -98,7 +98,7 @@ discard block | ||
| 98 | 98 | Event::on( | 
| 99 | 99 | Plugins::class, | 
| 100 | 100 | Plugins::EVENT_AFTER_UNINSTALL_PLUGIN, | 
| 101 | -            function (PluginEvent $event) { | |
| 101 | +            function(PluginEvent $event) { | |
| 102 | 102 |                  if ($event->plugin === $this) { | 
| 103 | 103 | $this->reasons->clearCache(); | 
| 104 | 104 |                      Craft::$app->getProjectConfig()->remove('reasons_conditionals'); | 
| @@ -110,7 +110,7 @@ discard block | ||
| 110 | 110 | Event::on( | 
| 111 | 111 | Fields::class, | 
| 112 | 112 | Fields::EVENT_AFTER_SAVE_FIELD_LAYOUT, | 
| 113 | -            function (FieldLayoutEvent $event) { | |
| 113 | +            function(FieldLayoutEvent $event) { | |
| 114 | 114 |                  if (Craft::$app->getRequest()->getIsConsoleRequest()) { | 
| 115 | 115 | return; | 
| 116 | 116 | } | 
| @@ -224,7 +224,7 @@ discard block | ||
| 224 | 224 | Event::on( | 
| 225 | 225 | View::class, | 
| 226 | 226 | View::EVENT_BEFORE_RENDER_TEMPLATE, | 
| 227 | -            function (/** @scrutinizer ignore-unused */ TemplateEvent $event) { | |
| 227 | +            function(/** @scrutinizer ignore-unused */ TemplateEvent $event) { | |
| 228 | 228 |                  try { | 
| 229 | 229 | Craft::$app->getView()->registerAssetBundle(ReasonsAssetBundle::class); | 
| 230 | 230 |                  } catch (InvalidConfigException $e) { |