@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | public function loginAction(SessionInterface $session): RedirectResponse |
| 95 | 95 | { |
| 96 | 96 | try { |
| 97 | - [ $next, $token ] = $this->getOauthClient()->initiate(); |
|
| 97 | + [$next, $token] = $this->getOauthClient()->initiate(); |
|
| 98 | 98 | } catch (Exception $oauthException) { |
| 99 | 99 | throw $oauthException; |
| 100 | 100 | // @TODO Make this work. |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | . '?title=Special:OAuth'; |
| 170 | 170 | $conf = new ClientConfig($endpoint); |
| 171 | 171 | $consumerKey = $this->getParameter('oauth_key'); |
| 172 | - $consumerSecret = $this->getParameter('oauth_secret'); |
|
| 172 | + $consumerSecret = $this->getParameter('oauth_secret'); |
|
| 173 | 173 | $conf->setConsumer(new Consumer($consumerKey, $consumerSecret)); |
| 174 | 174 | $this->oauthClient = new Client($conf); |
| 175 | 175 | // Callback URL is hardcoded in the consumer registration. |