Completed
Push — master ( 8d2667...a78947 )
by MusikAnimal
04:28
created
src/AppBundle/Controller/XtoolsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         $params = $this->convertLegacyParams($params);
39 39
 
40 40
         // Remove blank values.
41
-        return array_filter($params, function ($param) {
41
+        return array_filter($params, function($param) {
42 42
             // 'namespace' or 'username' could be '0'.
43 43
             return $param !== null && $param !== '';
44 44
         });
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
         $conn = $this->container->get('doctrine')
331 331
             ->getManager('default')
332 332
             ->getConnection();
333
-        $date =  date('Y-m-d');
333
+        $date = date('Y-m-d');
334 334
 
335 335
         // Increment count in timeline
336 336
         $existsSql = "SELECT 1 FROM usage_api_timeline
Please login to merge, or discard this patch.
src/AppBundle/Controller/AdminStatsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@
 block discarded – undo
179 179
         $this->recordApiUsage('project/adminstats');
180 180
 
181 181
         // Maximum 30 days.
182
-        $days = min((int) $days, 30);
182
+        $days = min((int)$days, 30);
183 183
         $start = date('Y-m-d', strtotime("-$days days"));
184 184
         $end = date('Y-m-d');
185 185
 
Please login to merge, or discard this patch.
src/Xtools/SimpleEditCounter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
161 161
      */
162 162
     public function getTotalEditCount()
163 163
     {
164
-        return $this->data['deletedEditCount'] + $this->data['liveEditCount'];
164
+        return $this->data['deletedEditCount']+$this->data['liveEditCount'];
165 165
     }
166 166
 
167 167
     /**
Please login to merge, or discard this patch.