Skip to content

Commit 9e15c22

Browse files
committed
Fix CS
1 parent ab26212 commit 9e15c22

25 files changed

+73
-85
lines changed

Command/CleanCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
namespace FOS\OAuthServerBundle\Command;
1212

1313
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
14-
use Symfony\Component\Console\Input\InputArgument;
1514
use Symfony\Component\Console\Input\InputInterface;
1615
use Symfony\Component\Console\Output\OutputInterface;
1716
use FOS\OAuthServerBundle\Model\TokenManagerInterface;

Controller/AuthorizeController.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@
1515
use FOS\OAuthServerBundle\Form\Handler\AuthorizeFormHandler;
1616
use OAuth2\OAuth2;
1717
use OAuth2\OAuth2ServerException;
18-
use OAuth2\OAuth2RedirectException;
1918
use Symfony\Component\DependencyInjection\ContainerAware;
2019
use Symfony\Component\HttpFoundation\Request;
21-
use Symfony\Component\HttpKernel\Kernel;
2220
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
2321
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
2422
use Symfony\Component\Security\Core\User\UserInterface;
@@ -81,7 +79,7 @@ public function authorizeAction(Request $request)
8179
}
8280

8381
/**
84-
* @param UserInterface $user
82+
* @param UserInterface $user
8583
* @param AuthorizeFormHandler $formHandler
8684
*
8785
* @return Response
@@ -115,7 +113,7 @@ protected function processSuccess(UserInterface $user, AuthorizeFormHandler $for
115113
/**
116114
* Generate the redirection url when the authorize is completed
117115
*
118-
* @param \FOS\OAuthServerBundle\Model\UserInterface $user
116+
* @param \FOS\OAuthServerBundle\Model\UserInterface $user
119117
* @return string
120118
*/
121119
protected function getRedirectionUrl(UserInterface $user)

Controller/TokenController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function __construct(OAuth2 $server)
3131
}
3232

3333
/**
34-
* @param Request $request
34+
* @param Request $request
3535
* @return type
3636
*/
3737
public function tokenAction(Request $request)

DependencyInjection/FOSOAuthServerExtension.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace FOS\OAuthServerBundle\DependencyInjection;
1313

1414
use Symfony\Component\Config\Definition\Processor;
15-
use Symfony\Component\DependencyInjection\Reference;
1615
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
1716
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
1817
use Symfony\Component\DependencyInjection\ContainerBuilder;

Document/TokenManager.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ public function getClass()
4747
return $this->class;
4848
}
4949

50-
5150
/**
5251
* {@inheritdoc}
5352
*/

Entity/AuthCodeManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class AuthCodeManager extends BaseAuthCodeManager
3434

3535
/**
3636
* @param \Doctrine\ORM\EntityManager $em
37-
* @param string $class
37+
* @param string $class
3838
*/
3939
public function __construct(EntityManager $em, $class)
4040
{
@@ -80,7 +80,7 @@ public function deleteAuthCode(AuthCodeInterface $authCode)
8080
/**
8181
* {@inheritdoc}
8282
*/
83-
function deleteExpired()
83+
public function deleteExpired()
8484
{
8585
$qb = $this->repository->createQueryBuilder('a');
8686
$qb

Entity/TokenManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function deleteToken(TokenInterface $token)
7676
/**
7777
* {@inheritdoc}
7878
*/
79-
function deleteExpired()
79+
public function deleteExpired()
8080
{
8181
$qb = $this->repository->createQueryBuilder('t');
8282
$qb

Form/Model/Authorize.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Authorize
4747
public $scope;
4848

4949
/**
50-
* @param bool $accepted
50+
* @param bool $accepted
5151
* @param array $query
5252
*/
5353
public function __construct($accepted, array $query = array())

Model/AuthCodeInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ interface AuthCodeInterface extends TokenInterface, IOAuth2AuthCode
2121
/**
2222
* @param string $redirectUri
2323
*/
24-
function setRedirectUri($redirectUri);
24+
public function setRedirectUri($redirectUri);
2525
}

Model/AuthCodeManagerInterface.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,49 +21,49 @@ interface AuthCodeManagerInterface
2121
*
2222
* @return AuthCodeInterface
2323
*/
24-
function createAuthCode();
24+
public function createAuthCode();
2525

2626
/**
2727
* Return the class name.
2828
*
2929
* @return string
3030
*/
31-
function getClass();
31+
public function getClass();
3232

3333
/**
3434
* Retrieve an auth code using a set of criteria.
3535
*
3636
* @param array $criteria
3737
* @param AuthCodeInterface|null
3838
*/
39-
function findAuthCodeBy(array $criteria);
39+
public function findAuthCodeBy(array $criteria);
4040

4141
/**
4242
* Retrieve an auth code by its token.
4343
*
4444
* @param string $token
4545
* @param AuthCodeInterface|null
4646
*/
47-
function findAuthCodeByToken($token);
47+
public function findAuthCodeByToken($token);
4848

4949
/**
5050
* Update a given auth code.
5151
*
5252
* @param AuthCodeInterface $authCode
5353
*/
54-
function updateAuthCode(AuthCodeInterface $authCode);
54+
public function updateAuthCode(AuthCodeInterface $authCode);
5555

5656
/**
5757
* Delete a given auth code.
5858
*
5959
* @param AuthCodeInterface $authCode
6060
*/
61-
function deleteAuthCode(AuthCodeInterface $authCode);
61+
public function deleteAuthCode(AuthCodeInterface $authCode);
6262

6363
/**
6464
* Delete expired auth codes.
6565
*
66-
* @return int The number of auth codes deleted.
66+
* @return int The number of auth codes deleted.
6767
*/
68-
function deleteExpired();
68+
public function deleteExpired();
6969
}

0 commit comments

Comments
 (0)