Passed
Push — v1 ( 4799c6...ec44c1 )
by Andrew
15:55 queued 08:40
created
src/controllers/DefaultController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/RichVariables.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             );
Please login to merge, or discard this patch.