@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | * This file contains only the Repository class. |
4 | 4 | */ |
5 | 5 | |
6 | -declare(strict_types = 1); |
|
6 | +declare(strict_types=1); |
|
7 | 7 | |
8 | 8 | namespace AppBundle\Repository; |
9 | 9 | |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | // $tableExtension in order to generate the new table name |
222 | 222 | if ($this->isLabs() && null !== $tableExtension) { |
223 | 223 | $mapped = true; |
224 | - $tableName .=('' === $tableExtension ? '' : '_'.$tableExtension); |
|
224 | + $tableName .= ('' === $tableExtension ? '' : '_'.$tableExtension); |
|
225 | 225 | } elseif ($this->container->hasParameter("app.table.$tableName")) { |
226 | 226 | // Use the table specified in the table mapping configuration, if present. |
227 | 227 | $mapped = true; |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | // This is a safeguard in case table mapping isn't properly set up. |
234 | 234 | $isLoggingOrRevision = in_array($tableName, ['revision', 'logging', 'archive']); |
235 | 235 | if (!$mapped && $isLoggingOrRevision && $this->isLabs()) { |
236 | - $tableName .="_userindex"; |
|
236 | + $tableName .= "_userindex"; |
|
237 | 237 | } |
238 | 238 | |
239 | 239 | // Figure out database name. |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | $offset = date('YmdHis', $offset); |
353 | 353 | $datesConditions .= " AND {$tableAlias}{$field} <= '$offset'"; |
354 | 354 | } elseif (is_int($end)) { |
355 | - $end = date('Ymd', $end) . '235959'; |
|
355 | + $end = date('Ymd', $end).'235959'; |
|
356 | 356 | $datesConditions .= " AND {$tableAlias}{$field} <= '$end'"; |
357 | 357 | } |
358 | 358 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace AppBundle\Model; |
5 | 5 | |
@@ -100,8 +100,8 @@ discard block |
||
100 | 100 | |
101 | 101 | if ($sorted) { |
102 | 102 | // Sort. |
103 | - uasort($this->globalEditCounts, function ($a, $b) { |
|
104 | - return $b['total'] - $a['total']; |
|
103 | + uasort($this->globalEditCounts, function($a, $b) { |
|
104 | + return $b['total']-$a['total']; |
|
105 | 105 | }); |
106 | 106 | } |
107 | 107 | |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | $this->namespace, |
139 | 139 | $this->start, |
140 | 140 | $this->end, |
141 | - $this->limit + 1, |
|
141 | + $this->limit+1, |
|
142 | 142 | $this->offset |
143 | 143 | ); |
144 | 144 | $globalEdits = []; |