@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | Event::on( |
| 55 | 55 | Fields::class, |
| 56 | 56 | Fields::EVENT_REGISTER_FIELD_TYPES, |
| 57 | - function (RegisterComponentTypesEvent $event) { |
|
| 57 | + function(RegisterComponentTypesEvent $event) { |
|
| 58 | 58 | $event->types[] = RecipeField::class; |
| 59 | 59 | } |
| 60 | 60 | ); |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | Event::on( |
| 64 | 64 | Plugins::class, |
| 65 | 65 | Plugins::EVENT_AFTER_INSTALL_PLUGIN, |
| 66 | - function (PluginEvent $event) { |
|
| 66 | + function(PluginEvent $event) { |
|
| 67 | 67 | if (!Craft::$app->getRequest()->getIsConsoleRequest() |
| 68 | 68 | && ($event->plugin === $this)) { |
| 69 | 69 | Craft::$app->getResponse()->redirect(UrlHelper::cpUrl('recipe/welcome'))->send(); |