Passed
Push — main ( 2a88fa...aff02f )
by MusikAnimal
03:49
created
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.
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
 
@@ -61,10 +61,10 @@  discard block
 block discarded – undo
61 61
                     SUM(IF(type = 'arc', 1, 0)) AS `deleted`,
62 62
                     SUM($summation) AS `redirects`,
63 63
                     SUM(rev_length) AS `total_length`
64
-                FROM (" .
64
+                FROM (".
65 65
             $this->getPagesCreatedInnerSql($project, $conditions, $deleted, $start, $end, false, true)."
66 66
                 ) a ".
67
-                $wasRedirect .
67
+                $wasRedirect.
68 68
                 "GROUP BY `namespace`";
69 69
 
70 70
         $result = $this->executeQuery($sql, $project, $user, $namespace)
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         $sql = "SELECT * FROM (".
131 131
             $this->getPagesCreatedInnerSql($project, $conditions, $deleted, $start, $end, $offset)."
132 132
                 ) a ".
133
-                $wasRedirect .
133
+                $wasRedirect.
134 134
                 "ORDER BY `timestamp` DESC
135 135
                 ".(!empty($limit) ? "LIMIT $limit" : '');
136 136
 
Please login to merge, or discard this patch.