@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | * @Route("/quote/random", name="quoteRandom") |
| 73 | 73 | * @Route("/bash/random", name="bashRandom") |
| 74 | 74 | * |
| 75 | - * @return RedirectResponse |
|
| 75 | + * @return \Symfony\Component\HttpFoundation\RedirectResponse |
|
| 76 | 76 | */ |
| 77 | 77 | public function randomQuoteAction() |
| 78 | 78 | { |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | * @Route("/quote/all", name="quoteAll") |
| 96 | 96 | * @Route("/bash/all", name="bashAll") |
| 97 | 97 | * |
| 98 | - * @return Response |
|
| 98 | + * @return \Symfony\Component\HttpFoundation\Response |
|
| 99 | 99 | */ |
| 100 | 100 | public function quoteAllAction() |
| 101 | 101 | { |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | * @Route("/quote/{id}", name="quoteID") |
| 131 | 131 | * @Route("/bash/{id}", name="bashID") |
| 132 | 132 | * |
| 133 | - * @return Response |
|
| 133 | + * @return \Symfony\Component\HttpFoundation\Response |
|
| 134 | 134 | */ |
| 135 | 135 | public function quoteAction($id) |
| 136 | 136 | { |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | public function loginAction() |
| 90 | 90 | { |
| 91 | 91 | try { |
| 92 | - list( $next, $token ) = $this->getOauthClient()->initiate(); |
|
| 92 | + list($next, $token) = $this->getOauthClient()->initiate(); |
|
| 93 | 93 | } catch (Exception $oauthException) { |
| 94 | 94 | throw $oauthException; |
| 95 | 95 | // @TODO Make this work. |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | . '?title=Special:OAuth'; |
| 157 | 157 | $conf = new ClientConfig($endpoint); |
| 158 | 158 | $consumerKey = $this->getParameter('oauth_key'); |
| 159 | - $consumerSecret = $this->getParameter('oauth_secret'); |
|
| 159 | + $consumerSecret = $this->getParameter('oauth_secret'); |
|
| 160 | 160 | $conf->setConsumer(new Consumer($consumerKey, $consumerSecret)); |
| 161 | 161 | $this->oauthClient = new Client($conf); |
| 162 | 162 | // Callback URL is hardcoded in the consumer registration. |