@@ -330,9 +330,9 @@ |
||
330 | 330 | { |
331 | 331 | $pageTable = $this->getTableName($project->getDatabaseName(), 'page'); |
332 | 332 | $query = "SELECT page_id " |
333 | - . " FROM $pageTable " |
|
334 | - . " WHERE page_namespace = :ns AND page_title = :title AND page_len > 0 " |
|
335 | - . " LIMIT 1"; |
|
333 | + . " FROM $pageTable " |
|
334 | + . " WHERE page_namespace = :ns AND page_title = :title AND page_len > 0 " |
|
335 | + . " LIMIT 1"; |
|
336 | 336 | $params = [ |
337 | 337 | 'ns' => $namespaceId, |
338 | 338 | 'title' => str_replace(' ', '_', $pageTitle), |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | * This file contains only the ProjectRepository class. |
4 | 4 | */ |
5 | 5 | |
6 | -declare(strict_types = 1); |
|
6 | +declare(strict_types=1); |
|
7 | 7 | |
8 | 8 | namespace App\Repository; |
9 | 9 | |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | } |
124 | 124 | |
125 | 125 | if ($this->container->hasParameter("database_meta_table")) { |
126 | - $table = $this->container->getParameter('database_meta_name') . '.' . |
|
126 | + $table = $this->container->getParameter('database_meta_name').'.'. |
|
127 | 127 | $this->container->getParameter('database_meta_table'); |
128 | 128 | } else { |
129 | 129 | $table = "meta_p.wiki"; |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | || $projMetadata['url'] == "https://$project" |
172 | 172 | || $projMetadata['url'] == "https://$project.org" |
173 | 173 | || $projMetadata['url'] == "https://www.$project") { |
174 | - $this->log->debug(__METHOD__ . " Using cached data for $project"); |
|
174 | + $this->log->debug(__METHOD__." Using cached data for $project"); |
|
175 | 175 | return $projMetadata; |
176 | 176 | } |
177 | 177 | } |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | } |
183 | 183 | |
184 | 184 | if ($this->container->hasParameter("database_meta_table")) { |
185 | - $table = $this->container->getParameter('database_meta_name') . '.' . |
|
185 | + $table = $this->container->getParameter('database_meta_name').'.'. |
|
186 | 186 | $this->container->getParameter('database_meta_table'); |
187 | 187 | } else { |
188 | 188 | $table = "meta_p.wiki"; |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | $optedIn = $this->container->getParameter('opted_in'); |
327 | 327 | // In case there's just one given. |
328 | 328 | if (!is_array($optedIn)) { |
329 | - $optedIn = [ $optedIn ]; |
|
329 | + $optedIn = [$optedIn]; |
|
330 | 330 | } |
331 | 331 | return $optedIn; |
332 | 332 | } |
@@ -395,7 +395,7 @@ discard block |
||
395 | 395 | ]])->getBody()->getContents(), true); |
396 | 396 | |
397 | 397 | $extensions = $res['query']['extensions'] ?? []; |
398 | - return array_map(function ($extension) { |
|
398 | + return array_map(function($extension) { |
|
399 | 399 | return $extension['name']; |
400 | 400 | }, $extensions); |
401 | 401 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace App\Repository; |
5 | 5 |
@@ -3,7 +3,7 @@ |
||
3 | 3 | * This file contains only the PageAssessmentsRepository class. |
4 | 4 | */ |
5 | 5 | |
6 | -declare(strict_types = 1); |
|
6 | +declare(strict_types=1); |
|
7 | 7 | |
8 | 8 | namespace App\Repository; |
9 | 9 |
@@ -3,7 +3,7 @@ |
||
3 | 3 | * This file contains only the UserRepository class. |
4 | 4 | */ |
5 | 5 | |
6 | -declare(strict_types = 1); |
|
6 | +declare(strict_types=1); |
|
7 | 7 | |
8 | 8 | namespace App\Repository; |
9 | 9 |
@@ -3,7 +3,7 @@ |
||
3 | 3 | * This file contains only the EditSummaryRepository class. |
4 | 4 | */ |
5 | 5 | |
6 | -declare(strict_types = 1); |
|
6 | +declare(strict_types=1); |
|
7 | 7 | |
8 | 8 | namespace App\Repository; |
9 | 9 |
@@ -3,7 +3,7 @@ |
||
3 | 3 | * This file contains only the PagesRepository class. |
4 | 4 | */ |
5 | 5 | |
6 | -declare(strict_types = 1); |
|
6 | +declare(strict_types=1); |
|
7 | 7 | |
8 | 8 | namespace App\Repository; |
9 | 9 |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | * This file contains only the SimpleEditCounterRepository class. |
4 | 4 | */ |
5 | 5 | |
6 | -declare(strict_types = 1); |
|
6 | +declare(strict_types=1); |
|
7 | 7 | |
8 | 8 | namespace App\Repository; |
9 | 9 | |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | $revDateConditions = $this->getDateConditions($start, $end, false, "$ipcTable.", 'ipc_rev_timestamp'); |
123 | 123 | [$startHex, $endHex] = IPUtils::parseRange($user->getUsername()); |
124 | 124 | |
125 | - $revNamespaceJoinSql = 'all' === $namespace ? '' : "JOIN $revTable ON rev_id = ipc_rev_id " . |
|
125 | + $revNamespaceJoinSql = 'all' === $namespace ? '' : "JOIN $revTable ON rev_id = ipc_rev_id ". |
|
126 | 126 | "JOIN $pageTable ON rev_page = page_id"; |
127 | 127 | $revNamespaceWhereSql = 'all' === $namespace ? '' : "AND page_namespace = $namespace"; |
128 | 128 |
@@ -3,7 +3,7 @@ |
||
3 | 3 | * This file contains only the CategoryEditsRepository class. |
4 | 4 | */ |
5 | 5 | |
6 | -declare(strict_types = 1); |
|
6 | +declare(strict_types=1); |
|
7 | 7 | |
8 | 8 | namespace App\Repository; |
9 | 9 |
@@ -3,7 +3,7 @@ |
||
3 | 3 | * This file contains only the AdminScoreRepository class. |
4 | 4 | */ |
5 | 5 | |
6 | -declare(strict_types = 1); |
|
6 | +declare(strict_types=1); |
|
7 | 7 | |
8 | 8 | namespace App\Repository; |
9 | 9 |