@@ -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); |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | Event::on( |
| 66 | 66 | Plugins::class, |
| 67 | 67 | Plugins::EVENT_AFTER_INSTALL_PLUGIN, |
| 68 | - function (PluginEvent $event) { |
|
| 68 | + function(PluginEvent $event) { |
|
| 69 | 69 | if ($event->plugin !== $this) { |
| 70 | 70 | return; |
| 71 | 71 | } |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | Event::on( |
| 87 | 87 | Application::class, |
| 88 | 88 | Application::EVENT_INIT, |
| 89 | - function () { |
|
| 89 | + function() { |
|
| 90 | 90 | $this->doIt(); |
| 91 | 91 | } |
| 92 | 92 | ); |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | Event::on( |
| 132 | 132 | View::class, |
| 133 | 133 | View::EVENT_BEFORE_RENDER_PAGE_TEMPLATE, |
| 134 | - function (TemplateEvent $event) { |
|
| 134 | + function(TemplateEvent $event) { |
|
| 135 | 135 | if ($event->templateMode !== View::TEMPLATE_MODE_CP) { |
| 136 | 136 | return; |
| 137 | 137 | } |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | Event::on( |
| 147 | 147 | Element::class, |
| 148 | 148 | Element::EVENT_DEFINE_META_FIELDS_HTML, |
| 149 | - function (DefineHtmlEvent $event) { |
|
| 149 | + function(DefineHtmlEvent $event) { |
|
| 150 | 150 | if ($event->static) { |
| 151 | 151 | return; |
| 152 | 152 | } |