Skip to content

Commit ff3ab7c

Browse files
committed
Fix CS
1 parent 0ce1d81 commit ff3ab7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/Firewall/ContextListenerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public function testOnKernelResponseListenerRemovesItself()
222222
->willReturn(true);
223223
$request->expects($this->any())
224224
->method('getSession')
225-
->will($this->returnValue($session));
225+
->willReturn($session);
226226

227227
$event = new ResponseEvent($this->createMock(HttpKernelInterface::class), $request, HttpKernelInterface::MASTER_REQUEST, new Response());
228228

@@ -365,7 +365,7 @@ protected function runSessionOnKernelResponse($newToken, $original = null)
365365
$request->cookies->set('MOCKSESSID', true);
366366

367367
$sessionId = $session->getId();
368-
$usageIndex = \method_exists(Request::class, 'getPreferredFormat') ? $session->getUsageIndex() : null;
368+
$usageIndex = method_exists(Request::class, 'getPreferredFormat') ? $session->getUsageIndex() : null;
369369

370370
$event = new ResponseEvent(
371371
$this->getMockBuilder(HttpKernelInterface::class)->getMock(),
@@ -402,7 +402,7 @@ private function handleEventWithPreviousSession($userProviders, UserInterface $u
402402
$usageIndex = null;
403403
$sessionTrackerEnabler = null;
404404

405-
if (\method_exists(Request::class, 'getPreferredFormat')) {
405+
if (method_exists(Request::class, 'getPreferredFormat')) {
406406
$usageIndex = $session->getUsageIndex();
407407
$tokenStorage = new UsageTrackingTokenStorage($tokenStorage, new class([
408408
'session' => function () use ($session) { return $session; }

0 commit comments

Comments
 (0)