@@ -2,13 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace AppBundle\Controller; |
| 4 | 4 | |
| 5 | -use AppBundle\Helper\AutomatedEditsHelper; |
|
| 6 | -use Exception; |
|
| 7 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
|
| 8 | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 9 | -use Symfony\Component\HttpFoundation\Request; |
|
| 10 | 6 | use Symfony\Component\HttpFoundation\Response; |
| 11 | -use Symfony\Component\Debug\Exception\FatalErrorException; |
|
| 12 | 7 | use FOS\RestBundle\Controller\Annotations as Rest; |
| 13 | 8 | use FOS\RestBundle\Controller\FOSRestController; |
| 14 | 9 | use FOS\RestBundle\View\View; |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | public function loginAction() |
| 91 | 91 | { |
| 92 | 92 | try { |
| 93 | - list( $next, $token ) = $this->getOauthClient()->initiate(); |
|
| 93 | + list($next, $token) = $this->getOauthClient()->initiate(); |
|
| 94 | 94 | } catch (Exception $oauthException) { |
| 95 | 95 | throw $oauthException; |
| 96 | 96 | // @TODO Make this work. |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | . '/index.php?title=Special:OAuth'; |
| 156 | 156 | $conf = new ClientConfig($endpoint); |
| 157 | 157 | $consumerKey = $this->getParameter('oauth_key'); |
| 158 | - $consumerSecret = $this->getParameter('oauth_secret'); |
|
| 158 | + $consumerSecret = $this->getParameter('oauth_secret'); |
|
| 159 | 159 | $conf->setConsumer(new Consumer($consumerKey, $consumerSecret)); |
| 160 | 160 | $this->oauthClient = new Client($conf); |
| 161 | 161 | // Callback URL is hardcoded in the consumer registration. |