@@ -7,7 +7,7 @@ |
||
| 7 | 7 | use Rector\Set\ValueObject\SetList; |
| 8 | 8 | use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; |
| 9 | 9 | |
| 10 | -return static function (ContainerConfigurator $containerConfigurator): void { |
|
| 10 | +return static function(ContainerConfigurator $containerConfigurator): void { |
|
| 11 | 11 | $containerConfigurator->import(CraftSetList::CRAFT_CMS_40); |
| 12 | 12 | $containerConfigurator->import(SetList::CODE_QUALITY); |
| 13 | 13 | $containerConfigurator->import(LevelSetList::UP_TO_PHP_72); |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | Event::on( |
| 65 | 65 | Plugins::class, |
| 66 | 66 | Plugins::EVENT_AFTER_INSTALL_PLUGIN, |
| 67 | - function (PluginEvent $event) { |
|
| 67 | + function(PluginEvent $event) { |
|
| 68 | 68 | if ($event->plugin !== $this) { |
| 69 | 69 | return; |
| 70 | 70 | } |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | Event::on( |
| 86 | 86 | Plugins::class, |
| 87 | 87 | Plugins::EVENT_AFTER_LOAD_PLUGINS, |
| 88 | - function () { |
|
| 88 | + function() { |
|
| 89 | 89 | $this->doIt(); |
| 90 | 90 | } |
| 91 | 91 | ); |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | Event::on( |
| 131 | 131 | View::class, |
| 132 | 132 | View::EVENT_BEFORE_RENDER_PAGE_TEMPLATE, |
| 133 | - function (TemplateEvent $event) { |
|
| 133 | + function(TemplateEvent $event) { |
|
| 134 | 134 | if ($event->templateMode !== View::TEMPLATE_MODE_CP) { |
| 135 | 135 | return; |
| 136 | 136 | } |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | Event::on( |
| 146 | 146 | Element::class, |
| 147 | 147 | Element::EVENT_DEFINE_META_FIELDS_HTML, |
| 148 | - function (DefineHtmlEvent $event) { |
|
| 148 | + function(DefineHtmlEvent $event) { |
|
| 149 | 149 | if ($event->static) { |
| 150 | 150 | return; |
| 151 | 151 | } |