Passed
Push — develop ( 21544e...adfafd )
by Andrew
03:21
created
src/controllers/RecommendationsController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
             // Compute the largest page load time
125 125
             $maxTotalPageLoad = 0;
126 126
             foreach ($stats as &$stat) {
127
-             // Determine the stat type
127
+                // Determine the stat type
128 128
                 if (!empty($stat['pageLoad']) && !empty($stat['craftTotalMs'])) {
129 129
                     $stat['type'] = 'both';
130 130
                 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
             ->offset($offset)
104 104
             ->where(['between', 'dateUpdated', $start, $end])
105 105
         ;
106
-        if ((int)$siteId !== 0) {
106
+        if ((int) $siteId !== 0) {
107 107
             $query->andWhere(['siteId' => $siteId]);
108 108
         }
109 109
         if ($filter !== '') {
@@ -142,8 +142,8 @@  discard block
 block discarded – undo
142 142
             $index = 1;
143 143
             foreach ($stats as &$stat) {
144 144
                 $stat['id'] = $index++;
145
-                $stat['cnt'] = (int)$stat['cnt'];
146
-                $stat['maxTotalPageLoad'] = (int)$maxTotalPageLoad;
145
+                $stat['cnt'] = (int) $stat['cnt'];
146
+                $stat['maxTotalPageLoad'] = (int) $maxTotalPageLoad;
147 147
                 // Decode any emojis in the title
148 148
                 if (!empty($stat['title'])) {
149 149
                     $stat['title'] = html_entity_decode($stat['title'], ENT_NOQUOTES, 'UTF-8');
Please login to merge, or discard this patch.
src/services/Recommendations.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
             ->from(['{{%webperf_data_samples}}'])
43 43
             ->where(['not', [$column => null]])
44 44
             ;
45
-        if ((int)$siteId !== 0) {
45
+        if ((int) $siteId !== 0) {
46 46
             $query->andWhere(['siteId' => $siteId]);
47 47
         }
48 48
         return $query->count();
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                 ['not', ['title' => '']],
68 68
             ])
69 69
         ;
70
-        if ((int)$siteId !== 0) {
70
+        if ((int) $siteId !== 0) {
71 71
             $query->andWhere(['siteId' => $siteId]);
72 72
         }
73 73
         $result = $query->one();
Please login to merge, or discard this patch.