@@ -91,7 +91,7 @@ |
||
| 91 | 91 | foreach ($fieldLayouts as $fieldLayout) { |
| 92 | 92 | $customFieldElements += array_reduce( |
| 93 | 93 | $fieldLayout->getCustomFieldElements(), |
| 94 | - static function (array $carry, CustomField $fieldElement) { |
|
| 94 | + static function(array $carry, CustomField $fieldElement) { |
|
| 95 | 95 | $fieldId = (int)$fieldElement->getField()?->id; |
| 96 | 96 | if (!$fieldId) { |
| 97 | 97 | return $carry; |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | Event::on( |
| 61 | 61 | Plugins::class, |
| 62 | 62 | Plugins::EVENT_AFTER_INSTALL_PLUGIN, |
| 63 | - function (PluginEvent $event) { |
|
| 63 | + function(PluginEvent $event) { |
|
| 64 | 64 | if ($event->plugin !== $this) { |
| 65 | 65 | return; |
| 66 | 66 | } |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | // Defer further initialisation to after app init |
| 87 | - Craft::$app->onInit(function () { |
|
| 87 | + Craft::$app->onInit(function() { |
|
| 88 | 88 | try { |
| 89 | 89 | $this->doIt(); |
| 90 | 90 | } catch (\Throwable $e) { |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | Event::on( |
| 117 | 117 | Cp::class, |
| 118 | 118 | $eventName, |
| 119 | - static function (DefineElementHtmlEvent $event) { |
|
| 119 | + static function(DefineElementHtmlEvent $event) { |
|
| 120 | 120 | $typeId = $event->element?->typeId ?? null; |
| 121 | 121 | if (empty($typeId)) { |
| 122 | 122 | return; |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | Event::on( |
| 144 | 144 | Element::class, |
| 145 | 145 | Element::EVENT_DEFINE_META_FIELDS_HTML, |
| 146 | - static function (DefineHtmlEvent $event) { |
|
| 146 | + static function(DefineHtmlEvent $event) { |
|
| 147 | 147 | if ($event->static) { |
| 148 | 148 | return; |
| 149 | 149 | } |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | Event::on( |
| 160 | 160 | View::class, |
| 161 | 161 | View::EVENT_BEFORE_RENDER_PAGE_TEMPLATE, |
| 162 | - static function (TemplateEvent $event) { |
|
| 162 | + static function(TemplateEvent $event) { |
|
| 163 | 163 | if ($event->templateMode !== View::TEMPLATE_MODE_CP) { |
| 164 | 164 | return; |
| 165 | 165 | } |