Passed
Push — master ( b0b3b0...3d5da5 )
by M. Mikkel
04:21
created
src/CpFieldInspect.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         Event::on(
100 100
             Plugins::class,
101 101
             Plugins::EVENT_AFTER_LOAD_PLUGINS,
102
-            function () {
102
+            function() {
103 103
                 $this->doIt();
104 104
             }
105 105
         );
@@ -135,13 +135,13 @@  discard block
 block discarded – undo
135 135
         if (\version_compare(Craft::$app->getVersion(), '4.0', '<')) {
136 136
 
137 137
             // Legacy template hooks for entries, assets and categories on Craft 3.x
138
-            Craft::$app->getView()->hook('cp.entries.edit.meta', function (array $context) {
138
+            Craft::$app->getView()->hook('cp.entries.edit.meta', function(array $context) {
139 139
                 return $this->renderEditSourceLink($context);
140 140
             });
141
-            Craft::$app->getView()->hook('cp.assets.edit.meta', function (array $context) {
141
+            Craft::$app->getView()->hook('cp.assets.edit.meta', function(array $context) {
142 142
                 return $this->renderEditSourceLink($context);
143 143
             });
144
-            Craft::$app->getView()->hook('cp.categories.edit.details', function (array $context) {
144
+            Craft::$app->getView()->hook('cp.categories.edit.details', function(array $context) {
145 145
                 return $this->renderEditSourceLink($context);
146 146
             });
147 147
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
             Event::on(
152 152
                 Element::class,
153 153
                 Element::EVENT_DEFINE_META_FIELDS_HTML,
154
-                function (DefineHtmlEvent $event) {
154
+                function(DefineHtmlEvent $event) {
155 155
                     if ($event->static) {
156 156
                         return;
157 157
                     }
@@ -161,13 +161,13 @@  discard block
 block discarded – undo
161 161
         }
162 162
 
163 163
         // Hooks that work on Craft 3.x and 4.x
164
-        Craft::$app->getView()->hook('cp.globals.edit.content', function (array $context) {
164
+        Craft::$app->getView()->hook('cp.globals.edit.content', function(array $context) {
165 165
             return $this->renderEditSourceLink($context);
166 166
         });
167
-        Craft::$app->getView()->hook('cp.users.edit.details', function (array $context) {
167
+        Craft::$app->getView()->hook('cp.users.edit.details', function(array $context) {
168 168
             return $this->renderEditSourceLink($context);
169 169
         });
170
-        Craft::$app->getView()->hook('cp.commerce.product.edit.details', function (array $context) {
170
+        Craft::$app->getView()->hook('cp.commerce.product.edit.details', function(array $context) {
171 171
             return $this->renderEditSourceLink($context);
172 172
         });
173 173
 
Please login to merge, or discard this patch.
rector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.