Passed
Push — v1 ( c15027...4b28a7 )
by Andrew
09:53 queued 06:26
created
src/helpers/Field.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@
 block discarded – undo
192 192
                 // Prefix the keys with the global set name
193 193
                 $prefix = $global->handle;
194 194
                 $fields = array_combine(
195
-                    array_map(function ($key) use ($prefix) {
195
+                    array_map(function($key) use ($prefix) {
196 196
                         return $prefix.'.'.$key;
197 197
                     }, array_keys($fields)),
198 198
                     $fields
Please login to merge, or discard this patch.
src/services/IA.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
                 ->setEventCategory($eventCategory)
114 114
                 ->setEventAction($eventAction)
115 115
                 ->setEventLabel($eventLabel)
116
-                ->setEventValue((int)$eventValue);
116
+                ->setEventValue((int) $eventValue);
117 117
             $result = $analytics;
118 118
             Craft::info(
119 119
                 Craft::t(
Please login to merge, or discard this patch.
src/InstantAnalytics.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
         Event::on(
182 182
             CraftVariable::class,
183 183
             CraftVariable::EVENT_INIT,
184
-            function (Event $event) {
184
+            function(Event $event) {
185 185
                 /** @var CraftVariable $variable */
186 186
                 $variable = $event->sender;
187 187
                 $variable->set('instantAnalytics', InstantAnalyticsVariable::class);
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
         Event::on(
199 199
             Plugins::class,
200 200
             Plugins::EVENT_AFTER_INSTALL_PLUGIN,
201
-            function (PluginEvent $event) {
201
+            function(PluginEvent $event) {
202 202
                 if ($event->plugin === $this) {
203 203
                     $request = Craft::$app->getRequest();
204 204
                     if ($request->isCpRequest) {
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
         Event::on(
228 228
             UrlManager::class,
229 229
             UrlManager::EVENT_REGISTER_SITE_URL_RULES,
230
-            function (RegisterUrlRulesEvent $event) {
230
+            function(RegisterUrlRulesEvent $event) {
231 231
                 Craft::debug(
232 232
                     'UrlManager::EVENT_REGISTER_SITE_URL_RULES',
233 233
                     __METHOD__
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
         Event::on(
244 244
             View::class,
245 245
             View::EVENT_BEFORE_RENDER_PAGE_TEMPLATE,
246
-            function (TemplateEvent $event) {
246
+            function(TemplateEvent $event) {
247 247
                 self::$currentTemplate = $event->template;
248 248
             }
249 249
         );
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
         Event::on(
252 252
             View::class,
253 253
             View::EVENT_AFTER_RENDER_PAGE_TEMPLATE,
254
-            function (TemplateEvent $event) {
254
+            function(TemplateEvent $event) {
255 255
                 $settings = InstantAnalytics::$plugin->getSettings();
256 256
                 if ($settings->autoSendPageView) {
257 257
                     $this->sendPageView();
Please login to merge, or discard this patch.