Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 334fbcf

Browse files
committed
Fix phpdoc and coding standards
This removes the unused use statements which were not catched by PHP-CS-Fixer because of string occurences. It also fixes some invalid phpdoc (scalar is not recognized as a valid type for instance).
1 parent a542abc commit 334fbcf

File tree

7 files changed

+3
-7
lines changed

7 files changed

+3
-7
lines changed

Acl/Model/MutableAclProviderInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\Security\Acl\Model;
1313

14+
use Symfony\Component\Security\Acl\Exception\AclAlreadyExistsException;
15+
1416
/**
1517
* Provides support for creating and storing ACL instances.
1618
*

Core/Authentication/Provider/UserAuthenticationProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function supports(TokenInterface $token)
113113
* @param UserInterface $user The user
114114
* @param TokenInterface $token The token
115115
*
116-
* @return Role[] The user roles
116+
* @return array The user roles
117117
*/
118118
private function getRoles(UserInterface $user, TokenInterface $token)
119119
{

Tests/Core/Authentication/AuthenticationTrustResolverTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Component\Security\Tests\Core\Authentication;
1313

14-
use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken;
15-
use Symfony\Component\Security\Core\Authentication\Token\RememberMeToken;
1614
use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolver;
1715

1816
class AuthenticationTrustResolverTest extends \PHPUnit_Framework_TestCase

Tests/Http/Firewall/ChannelListenerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Security\Tests\Http\Firewall;
1313

1414
use Symfony\Component\Security\Http\Firewall\ChannelListener;
15-
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
1615
use Symfony\Component\HttpFoundation\Response;
1716

1817
class ChannelListenerTest extends \PHPUnit_Framework_TestCase

Tests/Http/Logout/DefaultLogoutSuccessHandlerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\Security\Tests\Http\Logout;
1313

14-
use Symfony\Component\HttpFoundation\Response;
1514
use Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler;
1615

1716
class DefaultLogoutSuccessHandlerTest extends \PHPUnit_Framework_TestCase

Tests/Http/RememberMe/PersistentTokenBasedRememberMeServicesTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Security\Tests\Http\RememberMe;
1313

1414
use Symfony\Component\Security\Http\RememberMe\RememberMeServicesInterface;
15-
use Symfony\Component\Security\Core\Authentication\Token\RememberMeToken;
1615
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
1716
use Symfony\Component\Security\Core\Authentication\RememberMe\PersistentToken;
1817
use Symfony\Component\HttpFoundation\Request;

Tests/Http/RememberMe/TokenBasedRememberMeServicesTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Security\Tests\Http\RememberMe;
1313

1414
use Symfony\Component\Security\Http\RememberMe\RememberMeServicesInterface;
15-
use Symfony\Component\Security\Core\Authentication\Token\RememberMeToken;
1615
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
1716
use Symfony\Component\HttpFoundation\Request;
1817
use Symfony\Component\HttpFoundation\Response;

0 commit comments

Comments
 (0)