Passed
Push — master ( 758032...380927 )
by Benjamin
28:34 queued 21:24
created
src/models/Info.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
         // Make sure $forceConnect is going to be a boolean
59 59
         if (is_string($this->forceConnect)) {
60
-            $this->forceConnect = (bool)$this->forceConnect;
60
+            $this->forceConnect = (bool) $this->forceConnect;
61 61
         }
62 62
 
63 63
         if (is_string($this->token)) {
Please login to merge, or discard this patch.
src/migrations/m180529_125418_info.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             $settings = Json::decode($settingsJson);
62 62
         }
63 63
 
64
-        if($settings) {
64
+        if ($settings) {
65 65
             $forceConnect = $settings['forceConnect'];
66 66
             $token = $settings['token'];
67 67
         }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
         // Get rid of the old plugin settings
78 78
         echo '    > remove old plugin settings ...';
79
-        if($settings) {
79
+        if ($settings) {
80 80
             unset($settings['forceConnect'], $settings['token']);
81 81
             $settingsJson = Json::encode($settings);
82 82
             $this->update('{{%plugins}}', ['settings' => $settingsJson], ['id' => $row['id']]);
Please login to merge, or discard this patch.
src/base/PluginTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@
 block discarded – undo
209 209
 
210 210
         $infoRowExists = false;
211 211
 
212
-        if(Craft::$app->getDb()->tableExists('{{%analytics_info}}', false)) {
212
+        if (Craft::$app->getDb()->tableExists('{{%analytics_info}}', false)) {
213 213
             $infoRowExists = (new Query())
214 214
                 ->from(['{{%analytics_info}}'])
215 215
                 ->one();
Please login to merge, or discard this patch.
src/controllers/ReportsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     public function actionElement()
49 49
     {
50 50
         $elementId = Craft::$app->getRequest()->getRequiredParam('elementId');
51
-        $siteId = (int)Craft::$app->getRequest()->getRequiredParam('siteId');
51
+        $siteId = (int) Craft::$app->getRequest()->getRequiredParam('siteId');
52 52
         $metric = Craft::$app->getRequest()->getRequiredParam('metric');
53 53
 
54 54
         $response = Analytics::$plugin->getReports()->getElementReport($elementId, $siteId, $metric);
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
 
305 305
         $totalRevenue = 0;
306 306
 
307
-        foreach($rows as $row) {
307
+        foreach ($rows as $row) {
308 308
             $totalRevenue += $row[1];
309 309
         }
310 310
 
Please login to merge, or discard this patch.