@@ -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 | |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | 'format' => 'json', |
197 | 197 | ], $params), |
198 | 198 | ])->getBody()->getContents(), true); |
199 | - } catch (ServerException|ConnectException $e) { |
|
199 | + } catch (ServerException | ConnectException $e) { |
|
200 | 200 | throw new BadGatewayException('api-error-wikimedia', ['Wikimedia'], $e); |
201 | 201 | } |
202 | 202 | } |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | // $tableExtension in order to generate the new table name |
219 | 219 | if ($this->isWMF && null !== $tableExtension) { |
220 | 220 | $mapped = true; |
221 | - $tableName .=('' === $tableExtension ? '' : '_'.$tableExtension); |
|
221 | + $tableName .= ('' === $tableExtension ? '' : '_'.$tableExtension); |
|
222 | 222 | } elseif ($this->parameterBag->has("app.table.$tableName")) { |
223 | 223 | // Use the table specified in the table mapping configuration, if present. |
224 | 224 | $mapped = true; |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | // This is a safeguard in case table mapping isn't properly set up. |
231 | 231 | $isLoggingOrRevision = in_array($tableName, ['revision', 'logging', 'archive']); |
232 | 232 | if (!$mapped && $isLoggingOrRevision && $this->isWMF) { |
233 | - $tableName .="_userindex"; |
|
233 | + $tableName .= "_userindex"; |
|
234 | 234 | } |
235 | 235 | |
236 | 236 | // Figure out database name. |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | $offset = date('YmdHis', $offset); |
350 | 350 | $datesConditions .= " AND $tableAlias{$field} <= '$offset'"; |
351 | 351 | } elseif (is_int($end)) { |
352 | - $end = date('Ymd', $end) . '235959'; |
|
352 | + $end = date('Ymd', $end).'235959'; |
|
353 | 353 | $datesConditions .= " AND $tableAlias{$field} <= '$end'"; |
354 | 354 | } |
355 | 355 |