@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | // Add the field title and Reference Tag as per https://craftcms.com/docs/reference-tags |
79 | 79 | $thisVar = [ |
80 | 80 | 'title' => $field->name, |
81 | - 'text' => '{globalset:' . $globalsSet->attributes['id'] . ':' . $field->handle . '}', |
|
81 | + 'text' => '{globalset:'.$globalsSet->attributes['id'].':'.$field->handle.'}', |
|
82 | 82 | ]; |
83 | 83 | $variablesList[] = $thisVar; |
84 | 84 | } |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | $menuIconUrl = Craft::$app->assetManager->getPublishedUrl( |
97 | 97 | '@nystudio107/richvariables/web/assets/dist', |
98 | 98 | true |
99 | - ) . '/img/RichVariables-menu-icon.svg'; |
|
99 | + ).'/img/RichVariables-menu-icon.svg'; |
|
100 | 100 | |
101 | 101 | // Return everything to our JavaScript encoded as JSON |
102 | 102 | $result['variablesList'] = $variablesList; |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | Event::on( |
126 | 126 | CraftVariable::class, |
127 | 127 | CraftVariable::EVENT_INIT, |
128 | - function (Event $event) { |
|
128 | + function(Event $event) { |
|
129 | 129 | /** @var CraftVariable $variable */ |
130 | 130 | $variable = $event->sender; |
131 | 131 | $variable->set('richVariables', [ |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | Event::on( |
139 | 139 | Plugins::class, |
140 | 140 | Plugins::EVENT_AFTER_INSTALL_PLUGIN, |
141 | - function (PluginEvent $event) { |
|
141 | + function(PluginEvent $event) { |
|
142 | 142 | if ($event->plugin === $this) { |
143 | 143 | $request = Craft::$app->getRequest(); |
144 | 144 | if ($request->isCpRequest) { |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | Event::on( |
168 | 168 | UrlManager::class, |
169 | 169 | UrlManager::EVENT_REGISTER_SITE_URL_RULES, |
170 | - function (RegisterUrlRulesEvent $event) { |
|
170 | + function(RegisterUrlRulesEvent $event) { |
|
171 | 171 | Craft::debug( |
172 | 172 | 'UrlManager::EVENT_REGISTER_SITE_URL_RULES', |
173 | 173 | __METHOD__ |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | Event::on( |
202 | 202 | Plugins::class, |
203 | 203 | Plugins::EVENT_AFTER_LOAD_PLUGINS, |
204 | - function () { |
|
204 | + function() { |
|
205 | 205 | $this->installRedactorPlugin(); |
206 | 206 | } |
207 | 207 | ); |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | Event::on( |
220 | 220 | RichText::class, |
221 | 221 | RichText::EVENT_REGISTER_PLUGIN_PATHS, |
222 | - function (RegisterPluginPathsEvent $event) { |
|
222 | + function(RegisterPluginPathsEvent $event) { |
|
223 | 223 | /** @var Plugin $redactor */ |
224 | 224 | $redactor = Craft::$app->getPlugins()->getPlugin('redactor'); |
225 | 225 | $versionDir = 'v1/'; |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | $versionDir = 'v2/'; |
228 | 228 | } |
229 | 229 | // Add the path to our Redactor plugin |
230 | - $src = Craft::getAlias('@nystudio107/richvariables/redactor/plugins/' . $versionDir); |
|
230 | + $src = Craft::getAlias('@nystudio107/richvariables/redactor/plugins/'.$versionDir); |
|
231 | 231 | $event->paths[] = $src; |
232 | 232 | } |
233 | 233 | ); |