@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | string $centralAuthProject |
68 | 68 | ): RedirectResponse { |
69 | 69 | try { |
70 | - [ $next, $token ] = $this->getOauthClient($request, $projectRepo, $centralAuthProject)->initiate(); |
|
70 | + [$next, $token] = $this->getOauthClient($request, $projectRepo, $centralAuthProject)->initiate(); |
|
71 | 71 | } catch (Exception $oauthException) { |
72 | 72 | $this->addFlashMessage('notice', 'error-login'); |
73 | 73 | return $this->redirectToRoute('homepage'); |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | . '?title=Special:OAuth'; |
155 | 155 | $conf = new ClientConfig($endpoint); |
156 | 156 | $consumerKey = $this->getParameter('oauth_key'); |
157 | - $consumerSecret = $this->getParameter('oauth_secret'); |
|
157 | + $consumerSecret = $this->getParameter('oauth_secret'); |
|
158 | 158 | $conf->setConsumer(new Consumer($consumerKey, $consumerSecret)); |
159 | 159 | $this->oauthClient = new Client($conf); |
160 | 160 |
@@ -290,10 +290,10 @@ discard block |
||
290 | 290 | return $this->getApiHtmlResponse($this->project, $this->page, $data); |
291 | 291 | } |
292 | 292 | |
293 | - $this->addFlash('warning', 'In XTools 3.21, the last_edit_id property will be removed. ' . |
|
293 | + $this->addFlash('warning', 'In XTools 3.21, the last_edit_id property will be removed. '. |
|
294 | 294 | 'Use the modified_rev_id property instead.'); |
295 | 295 | $data['last_edit_id'] = $data['modified_rev_id']; |
296 | - $this->addFlash('warning', 'In XTools 3.21, the author and author_editcount properties ' . |
|
296 | + $this->addFlash('warning', 'In XTools 3.21, the author and author_editcount properties '. |
|
297 | 297 | 'will be removed. Instead, use creator and creator_editcount, respectively.'); |
298 | 298 | $data['author'] = $data['creator']; |
299 | 299 | $data['author_editcount'] = $data['creator_editcount']; |
@@ -369,7 +369,7 @@ discard block |
||
369 | 369 | $responseCode = Response::HTTP_OK; |
370 | 370 | $this->recordApiUsage('page/prose'); |
371 | 371 | $this->setupPageInfo($pageInfoRepo, $autoEditsHelper); |
372 | - $this->addFlash('info', 'The algorithm used by this API has recently changed. ' . |
|
372 | + $this->addFlash('info', 'The algorithm used by this API has recently changed. '. |
|
373 | 373 | 'See https://www.mediawiki.org/wiki/XTools/Page_History#Prose for details.'); |
374 | 374 | $ret = $this->pageInfo->getProseStats(); |
375 | 375 | if (null === $ret) { |