Passed
Pull Request — main (#466)
by MusikAnimal
07:31 queued 04:11
created
src/Repository/PagesRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace App\Repository;
6 6
 
@@ -64,10 +64,10 @@  discard block
 block discarded – undo
64 64
                     SUM(IF(type = 'arc', 1, 0)) AS `deleted`,
65 65
                     SUM($summation) AS `redirects`,
66 66
                     SUM(rev_length) AS `total_length`
67
-                FROM (" .
67
+                FROM (".
68 68
             $this->getPagesCreatedInnerSql($project, $conditions, $redirects, $deleted, $start, $end, false, true)."
69 69
                 ) a ".
70
-                $wasRedirect .
70
+                $wasRedirect.
71 71
                 "GROUP BY `namespace`";
72 72
 
73 73
         $result = $this->executeQuery($sql, $project, $user, $namespace)
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         $sql = "SELECT * FROM (".
134 134
             $this->getPagesCreatedInnerSql($project, $conditions, $redirects, $deleted, $start, $end, $offset)."
135 135
                 ) a ".
136
-                $wasRedirect .
136
+                $wasRedirect.
137 137
                 "ORDER BY `timestamp` DESC
138 138
                 ".(!empty($limit) ? "LIMIT $limit" : '');
139 139
 
Please login to merge, or discard this patch.
src/Model/Pages.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace App\Model;
6 6
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         }
135 135
 
136 136
         $numResults = count($this->getResults()[$this->getNamespace()]);
137
-        $timestamp = new DateTime($this->getResults()[$this->getNamespace()][$numResults - 1]['timestamp']);
137
+        $timestamp = new DateTime($this->getResults()[$this->getNamespace()][$numResults-1]['timestamp']);
138 138
         return $timestamp->format('Y-m-d\TH:i:s');
139 139
     }
140 140
 
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
         $summaryColumns[] = 'average-page-size';
340 340
 
341 341
         // Re-sort based on $order
342
-        return array_values(array_filter($order, static function ($column) use ($summaryColumns) {
342
+        return array_values(array_filter($order, static function($column) use ($summaryColumns) {
343 343
             return in_array($column, $summaryColumns);
344 344
         }));
345 345
     }
Please login to merge, or discard this patch.