@@ -256,8 +256,8 @@ discard block |
||
| 256 | 256 | $conditionals = Json::decodeIfJson($conditionals); |
| 257 | 257 | foreach ($conditionals as $targetFieldId => $statements) { |
| 258 | 258 | $targetFieldUid = Db::uidById('{{%fields}}', $targetFieldId); |
| 259 | - $return[$targetFieldUid] = \array_map(function (array $rules) { |
|
| 260 | - return \array_map(function (array $rule) { |
|
| 259 | + $return[$targetFieldUid] = \array_map(function(array $rules) { |
|
| 260 | + return \array_map(function(array $rule) { |
|
| 261 | 261 | return [ |
| 262 | 262 | 'field' => Db::uidById('{{%fields}}', $rule['fieldId']), |
| 263 | 263 | 'compare' => $rule['compare'], |
@@ -283,8 +283,8 @@ discard block |
||
| 283 | 283 | $conditionals = Json::decodeIfJson($conditionals); |
| 284 | 284 | foreach ($conditionals as $targetFieldUid => $statements) { |
| 285 | 285 | $targetFieldId = Db::idByUid('{{%fields}}', $targetFieldUid); |
| 286 | - $return[$targetFieldId] = \array_map(function (array $rules) { |
|
| 287 | - return \array_map(function (array $rule) { |
|
| 286 | + $return[$targetFieldId] = \array_map(function(array $rules) { |
|
| 287 | + return \array_map(function(array $rule) { |
|
| 288 | 288 | return [ |
| 289 | 289 | 'fieldId' => Db::idByUid('{{%fields}}', $rule['field']), |
| 290 | 290 | 'compare' => $rule['compare'], |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | Event::on( |
| 88 | 88 | Plugins::class, |
| 89 | 89 | Plugins::EVENT_AFTER_INSTALL_PLUGIN, |
| 90 | - function (PluginEvent $event) { |
|
| 90 | + function(PluginEvent $event) { |
|
| 91 | 91 | if ($event->plugin === $this) { |
| 92 | 92 | $this->reasons->clearCache(); |
| 93 | 93 | } |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | Event::on( |
| 98 | 98 | Plugins::class, |
| 99 | 99 | Plugins::EVENT_AFTER_UNINSTALL_PLUGIN, |
| 100 | - function (PluginEvent $event) { |
|
| 100 | + function(PluginEvent $event) { |
|
| 101 | 101 | if ($event->plugin === $this) { |
| 102 | 102 | $this->reasons->clearCache(); |
| 103 | 103 | } |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | Event::on( |
| 109 | 109 | Fields::class, |
| 110 | 110 | Fields::EVENT_AFTER_SAVE_FIELD_LAYOUT, |
| 111 | - function (FieldLayoutEvent $event) { |
|
| 111 | + function(FieldLayoutEvent $event) { |
|
| 112 | 112 | if (Craft::$app->getRequest()->getIsConsoleRequest()) { |
| 113 | 113 | return; |
| 114 | 114 | } |
@@ -216,12 +216,12 @@ discard block |
||
| 216 | 216 | Event::on( |
| 217 | 217 | View::class, |
| 218 | 218 | View::EVENT_BEFORE_RENDER_TEMPLATE, |
| 219 | - function (TemplateEvent $event) { |
|
| 219 | + function(TemplateEvent $event) { |
|
| 220 | 220 | try { |
| 221 | 221 | Craft::$app->getView()->registerAssetBundle(ReasonsAssetBundle::class); |
| 222 | 222 | } catch (InvalidConfigException $e) { |
| 223 | 223 | Craft::error( |
| 224 | - 'Error registering AssetBundle - '.$e->getMessage(), |
|
| 224 | + 'Error registering AssetBundle - ' . $e->getMessage(), |
|
| 225 | 225 | __METHOD__ |
| 226 | 226 | ); |
| 227 | 227 | } |