@@ -1,6 +1,6 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -1,6 +1,6 @@ discard block |
||
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 |
||
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 |
||
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 |