Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
John Quairia committed Mar 25, 2024
1 parent 87239e6 commit 0c40502
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 7 deletions.
Expand Up @@ -32,4 +32,4 @@ public function onLogout(LogoutEvent $event): void

parent::onLogout($event);
}
}
}
2 changes: 0 additions & 2 deletions src/UserContext/RoleProvider.php
Expand Up @@ -14,10 +14,8 @@
use FOS\HttpCache\UserContext\ContextProvider;
use FOS\HttpCache\UserContext\UserContext;
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Security\Core\Authentication\Token\NullToken;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
use Symfony\Component\Security\Core\Role\Role;

/**
* The RoleProvider adds roles to the UserContext for the hash generation.
Expand Down
Expand Up @@ -13,7 +13,6 @@

use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\HttpKernel\Kernel;

class FlashMessageListenerTest extends WebTestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/EventListener/SwitchUserListenerTest.php
Expand Up @@ -82,7 +82,7 @@ public function loginAsAdmin(KernelBrowser $client)

$user = $this->createAdminUser();

$token = new UsernamePasswordToken($user, self::FIREWALL_NAME, $user->getRoles());
$token = new UsernamePasswordToken($user, self::FIREWALL_NAME, $user->getRoles());
$session->set('_security_'.self::FIREWALL_NAME, serialize($token));
$session->save();

Expand Down
2 changes: 0 additions & 2 deletions tests/Unit/EventListener/CacheControlListenerTest.php
Expand Up @@ -425,8 +425,6 @@ protected function buildEvent(string $method = 'GET'): ResponseEvent
* We mock a rule matcher for tests about applying the rules.
*
* @param array $headers The headers to return from the matcher
*
* @return MockObject|CacheControlListener
*/
protected function getCacheControl(array $headers): CacheControlListener|MockObject
{
Expand Down

0 comments on commit 0c40502

Please sign in to comment.