Passed
Push — node-encore-updates ( 4b2d45...308be8 )
by MusikAnimal
03:41
created
src/Controller/ArticleInfoController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -264,7 +264,7 @@
 block discarded – undo
264 264
     ): JsonResponse {
265 265
         $this->recordApiUsage('page/prose');
266 266
         $this->setupArticleInfo($articleInfoRepo, $autoEditsHelper);
267
-        $this->addFlash('info', 'The algorithm used by this API has recently changed. ' .
267
+        $this->addFlash('info', 'The algorithm used by this API has recently changed. '.
268 268
             'See https://www.mediawiki.org/wiki/XTools/Page_History#Prose for details.');
269 269
         return $this->getFormattedApiResponse($this->articleInfo->getProseStats());
270 270
     }
Please login to merge, or discard this patch.
src/Controller/MetaController.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         $timeline = [];
105 105
         $startObj = new DateTime($start);
106 106
         $endObj = new DateTime($end);
107
-        $numDays = (int) $endObj->diff($startObj)->format("%a");
107
+        $numDays = (int)$endObj->diff($startObj)->format("%a");
108 108
         $grandSum = 0;
109 109
 
110 110
         // Generate array of date labels
@@ -114,17 +114,17 @@  discard block
 block discarded – undo
114 114
 
115 115
         foreach ($data as $entry) {
116 116
             if (!isset($totals[$entry['tool']])) {
117
-                $totals[$entry['tool']] = (int) $entry['count'];
117
+                $totals[$entry['tool']] = (int)$entry['count'];
118 118
 
119 119
                 // Create arrays for each tool, filled with zeros for each date in the timeline
120 120
                 $timeline[$entry['tool']] = array_fill(0, $numDays, 0);
121 121
             } else {
122
-                $totals[$entry['tool']] += (int) $entry['count'];
122
+                $totals[$entry['tool']] += (int)$entry['count'];
123 123
             }
124 124
 
125 125
             $date = new DateTime($entry['date']);
126
-            $dateIndex = (int) $date->diff($startObj)->format("%a");
127
-            $timeline[$entry['tool']][$dateIndex] = (int) $entry['count'];
126
+            $dateIndex = (int)$date->diff($startObj)->format("%a");
127
+            $timeline[$entry['tool']][$dateIndex] = (int)$entry['count'];
128 128
 
129 129
             $grandSum += $entry['count'];
130 130
         }
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         $timeline = [];
160 160
         $startObj = new DateTime($start);
161 161
         $endObj = new DateTime($end);
162
-        $numDays = (int) $endObj->diff($startObj)->format("%a");
162
+        $numDays = (int)$endObj->diff($startObj)->format("%a");
163 163
         $grandSum = 0;
164 164
 
165 165
         // Generate array of date labels
@@ -169,17 +169,17 @@  discard block
 block discarded – undo
169 169
 
170 170
         foreach ($data as $entry) {
171 171
             if (!isset($totals[$entry['endpoint']])) {
172
-                $totals[$entry['endpoint']] = (int) $entry['count'];
172
+                $totals[$entry['endpoint']] = (int)$entry['count'];
173 173
 
174 174
                 // Create arrays for each endpoint, filled with zeros for each date in the timeline
175 175
                 $timeline[$entry['endpoint']] = array_fill(0, $numDays, 0);
176 176
             } else {
177
-                $totals[$entry['endpoint']] += (int) $entry['count'];
177
+                $totals[$entry['endpoint']] += (int)$entry['count'];
178 178
             }
179 179
 
180 180
             $date = new DateTime($entry['date']);
181
-            $dateIndex = (int) $date->diff($startObj)->format("%a");
182
-            $timeline[$entry['endpoint']][$dateIndex] = (int) $entry['count'];
181
+            $dateIndex = (int)$date->diff($startObj)->format("%a");
182
+            $timeline[$entry['endpoint']][$dateIndex] = (int)$entry['count'];
183 183
 
184 184
             $grandSum += $entry['count'];
185 185
         }
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 
240 240
         /** @var Connection $conn */
241 241
         $conn = $managerRegistry->getConnection('default');
242
-        $date =  date('Y-m-d');
242
+        $date = date('Y-m-d');
243 243
 
244 244
         // Tool name needs to be lowercase.
245 245
         $tool = strtolower($tool);
Please login to merge, or discard this patch.