@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | Event::on( |
| 62 | 62 | Fields::class, |
| 63 | 63 | Fields::EVENT_REGISTER_FIELD_TYPES, |
| 64 | - function (RegisterComponentTypesEvent $event) { |
|
| 64 | + function(RegisterComponentTypesEvent $event) { |
|
| 65 | 65 | $event->types[] = OrganizationField::class; |
| 66 | 66 | $event->types[] = UserField::class; |
| 67 | 67 | } |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | Event::on( |
| 72 | 72 | Elements::class, |
| 73 | 73 | Elements::EVENT_REGISTER_ELEMENT_TYPES, |
| 74 | - function (RegisterComponentTypesEvent $event) { |
|
| 74 | + function(RegisterComponentTypesEvent $event) { |
|
| 75 | 75 | $event->types[] = OrganizationElement::class; |
| 76 | 76 | } |
| 77 | 77 | ); |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | Event::on( |
| 88 | 88 | CraftVariable::class, |
| 89 | 89 | CraftVariable::EVENT_INIT, |
| 90 | - function (Event $event) { |
|
| 90 | + function(Event $event) { |
|
| 91 | 91 | /** @var CraftVariable $variable */ |
| 92 | 92 | $variable = $event->sender; |
| 93 | 93 | $variable->set('organization', OrganizationVariable::class); |