@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | Event::on( |
82 | 82 | Plugins::class, |
83 | 83 | Plugins::EVENT_AFTER_LOAD_PLUGINS, |
84 | - function () { |
|
84 | + function() { |
|
85 | 85 | $this->doIt(); |
86 | 86 | } |
87 | 87 | ); |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | } |
174 | 174 | |
175 | 175 | Craft::$app->getView()->registerAssetBundle(CpFieldInspectBundle::class); |
176 | - Craft::$app->getView()->registerJs('Craft.CpFieldInspectPlugin.init('.json_encode($data).');'); |
|
176 | + Craft::$app->getView()->registerJs('Craft.CpFieldInspectPlugin.init(' . json_encode($data) . ');'); |
|
177 | 177 | } |
178 | 178 | } |
179 | 179 |