Skip to content

Commit ad244c9

Browse files
authored
Fix coding style (#647)
1 parent 834771c commit ad244c9

File tree

15 files changed

+9
-72
lines changed

15 files changed

+9
-72
lines changed

Controller/AuthorizeController.php

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -105,17 +105,8 @@ class AuthorizeController
105105
*
106106
* @todo This controller could be refactored to not rely on so many dependencies
107107
*
108-
* @param RequestStack $requestStack
109-
* @param Form $authorizeForm
110-
* @param AuthorizeFormHandler $authorizeFormHandler
111-
* @param OAuth2 $oAuth2Server
112-
* @param EngineInterface $templating
113-
* @param TokenStorageInterface $tokenStorage
114-
* @param UrlGeneratorInterface $router
115-
* @param ClientManagerInterface $clientManager
116-
* @param EventDispatcherInterface $eventDispatcher
117-
* @param SessionInterface $session
118-
* @param string $templateEngineType
108+
* @param SessionInterface $session
109+
* @param string $templateEngineType
119110
*/
120111
public function __construct(
121112
RequestStack $requestStack,
@@ -187,10 +178,6 @@ public function authorizeAction(Request $request)
187178
}
188179

189180
/**
190-
* @param UserInterface $user
191-
* @param AuthorizeFormHandler $formHandler
192-
* @param Request $request
193-
*
194181
* @return Response
195182
*/
196183
protected function processSuccess(UserInterface $user, AuthorizeFormHandler $formHandler, Request $request)
@@ -222,8 +209,6 @@ protected function processSuccess(UserInterface $user, AuthorizeFormHandler $for
222209
/**
223210
* Generate the redirection url when the authorize is completed.
224211
*
225-
* @param UserInterface $user
226-
*
227212
* @return string
228213
*/
229214
protected function getRedirectionUrl(UserInterface $user)
@@ -270,7 +255,7 @@ protected function renderAuthorize(array $data, EngineInterface $engine, string
270255
}
271256

272257
/**
273-
* @return null|Request
258+
* @return Request|null
274259
*/
275260
private function getCurrentRequest()
276261
{

Controller/TokenController.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,12 @@ class TokenController
2525
*/
2626
protected $server;
2727

28-
/**
29-
* @param OAuth2 $server
30-
*/
3128
public function __construct(OAuth2 $server)
3229
{
3330
$this->server = $server;
3431
}
3532

3633
/**
37-
* @param Request $request
38-
*
3934
* @return Response
4035
*/
4136
public function tokenAction(Request $request)

Entity/AuthCodeManager.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ class AuthCodeManager extends BaseAuthCodeManager
3030
protected $class;
3131

3232
/**
33-
* @param EntityManagerInterface $em
34-
* @param string $class
33+
* @param string $class
3534
*/
3635
public function __construct(EntityManagerInterface $em, $class)
3736
{

Event/OAuthEvent.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ class OAuthEvent extends Event
3939
private $isAuthorizedClient;
4040

4141
/**
42-
* @param UserInterface $user
43-
* @param ClientInterface $client
44-
* @param bool $isAuthorizedClient
42+
* @param bool $isAuthorizedClient
4543
*/
4644
public function __construct(UserInterface $user, ClientInterface $client, $isAuthorizedClient = false)
4745
{

Form/Handler/AuthorizeFormHandler.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ class AuthorizeFormHandler
4040
private $requestStack;
4141

4242
/**
43-
* @param FormInterface $form
4443
* @param Request|RequestStack $requestStack
4544
*/
4645
public function __construct(FormInterface $form, $requestStack = null)

Form/Model/Authorize.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ class Authorize
4848
*/
4949
public $scope;
5050

51-
/**
52-
* @param bool $accepted
53-
* @param array $query
54-
*/
5551
public function __construct(bool $accepted, array $query = [])
5652
{
5753
foreach ($query as $key => $value) {

Model/AuthCodeManagerInterface.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ public function getClass();
3535
/**
3636
* Retrieve an auth code using a set of criteria.
3737
*
38-
* @param array $criteria
39-
*
4038
* @return AuthCodeInterface|null
4139
*/
4240
public function findAuthCodeBy(array $criteria);
@@ -52,15 +50,11 @@ public function findAuthCodeByToken($token);
5250

5351
/**
5452
* Update a given auth code.
55-
*
56-
* @param AuthCodeInterface $authCode
5753
*/
5854
public function updateAuthCode(AuthCodeInterface $authCode);
5955

6056
/**
6157
* Delete a given auth code.
62-
*
63-
* @param AuthCodeInterface $authCode
6458
*/
6559
public function deleteAuthCode(AuthCodeInterface $authCode);
6660

Model/ClientInterface.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,8 @@ public function checkSecret($secret);
4444
*/
4545
public function getSecret();
4646

47-
/**
48-
* @param array $redirectUris
49-
*/
5047
public function setRedirectUris(array $redirectUris);
5148

52-
/**
53-
* @param array $grantTypes
54-
*/
5549
public function setAllowedGrantTypes(array $grantTypes);
5650

5751
/**

Model/ClientManagerInterface.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,18 @@ public function createClient();
2626
public function getClass();
2727

2828
/**
29-
* @return null|ClientInterface
29+
* @return ClientInterface|null
3030
*/
3131
public function findClientBy(array $criteria);
3232

3333
/**
3434
* @param mixed $publicId
3535
*
36-
* @return null|ClientInterface
36+
* @return ClientInterface|null
3737
*/
3838
public function findClientByPublicId($publicId);
3939

40-
/**
41-
* @param ClientInterface $client
42-
*/
4340
public function updateClient(ClientInterface $client);
4441

45-
/**
46-
* @param ClientInterface $client
47-
*/
4842
public function deleteClient(ClientInterface $client);
4943
}

Model/TokenInterface.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,12 @@ public function setToken($token);
3838
*/
3939
public function setScope($scope);
4040

41-
/**
42-
* @param UserInterface $user
43-
*/
4441
public function setUser(UserInterface $user);
4542

4643
/**
4744
* @return UserInterface
4845
*/
4946
public function getUser();
5047

51-
/**
52-
* @param ClientInterface $client
53-
*/
5448
public function setClient(ClientInterface $client);
5549
}

0 commit comments

Comments
 (0)