@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | throw new XtoolsHttpException( |
268 | 268 | $this->i18n->msg('not-opted-in', [ |
269 | 269 | $this->getOptedInPage()->getTitle(), |
270 | - $this->i18n->msg('not-opted-in-link') . |
|
270 | + $this->i18n->msg('not-opted-in-link'). |
|
271 | 271 | ' <https://www.mediawiki.org/wiki/Special:MyLanguage/XTools/Edit_Counter#restricted_stats>', |
272 | 272 | $this->i18n->msg('not-opted-in-login'), |
273 | 273 | ]), |
@@ -544,7 +544,7 @@ discard block |
||
544 | 544 | } |
545 | 545 | |
546 | 546 | throw new XtoolsHttpException( |
547 | - $this->i18n->msg('too-many-edits', [ $user->maxEdits() ]), |
|
547 | + $this->i18n->msg('too-many-edits', [$user->maxEdits()]), |
|
548 | 548 | $this->generateUrl($this->tooHighEditCountRoute(), $this->params), |
549 | 549 | $originalParams, |
550 | 550 | $this->isApi |
@@ -706,7 +706,7 @@ discard block |
||
706 | 706 | $params = $this->convertLegacyParams($params); |
707 | 707 | |
708 | 708 | // Remove blank values. |
709 | - return array_filter($params, function ($param) { |
|
709 | + return array_filter($params, function($param) { |
|
710 | 710 | // 'namespace' or 'username' could be '0'. |
711 | 711 | return null !== $param && '' !== $param; |
712 | 712 | }); |
@@ -764,7 +764,7 @@ discard block |
||
764 | 764 | // Show warnings that the date range was truncated. |
765 | 765 | $this->addFlashMessage('warning', 'date-range-too-wide', [$this->maxDays()]); |
766 | 766 | |
767 | - $startTime = strtotime('-' . $this->maxDays() . ' days', $endTime); |
|
767 | + $startTime = strtotime('-'.$this->maxDays().' days', $endTime); |
|
768 | 768 | } |
769 | 769 | |
770 | 770 | return [$startTime, $endTime]; |
@@ -907,7 +907,7 @@ discard block |
||
907 | 907 | } |
908 | 908 | |
909 | 909 | $elapsedTime = round( |
910 | - microtime(true) - $this->request->server->get('REQUEST_TIME_FLOAT'), |
|
910 | + microtime(true)-$this->request->server->get('REQUEST_TIME_FLOAT'), |
|
911 | 911 | 3 |
912 | 912 | ); |
913 | 913 | |
@@ -948,7 +948,7 @@ discard block |
||
948 | 948 | public function addFullPageTitlesAndContinue(string $key, array $out, array $data): array |
949 | 949 | { |
950 | 950 | // Add full_page_title (in addition to the existing page_title and page_namespace keys). |
951 | - $out[$key] = array_map(function ($rev) { |
|
951 | + $out[$key] = array_map(function($rev) { |
|
952 | 952 | return array_merge([ |
953 | 953 | 'full_page_title' => $this->getPageFromNsAndTitle( |
954 | 954 | (int)$rev['page_namespace'], |
@@ -984,7 +984,7 @@ discard block |
||
984 | 984 | $conn = $this->container->get('doctrine') |
985 | 985 | ->getManager('default') |
986 | 986 | ->getConnection(); |
987 | - $date = date('Y-m-d'); |
|
987 | + $date = date('Y-m-d'); |
|
988 | 988 | |
989 | 989 | // Increment count in timeline |
990 | 990 | try { |