Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5b7f836

Browse files
committed
CS fix
1 parent 351ac04 commit 5b7f836

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
3838
use Symfony\Component\HttpKernel\DependencyInjection\LoggerPass;
3939
use Symfony\Component\HttpKernel\EventListener\DisallowRobotsIndexingListener;
40-
use Symfony\Component\HttpKernel\KernelEvents;
4140
use Symfony\Component\Messenger\Tests\Fixtures\DummyMessage;
4241
use Symfony\Component\Messenger\Tests\Fixtures\SecondMessage;
4342
use Symfony\Component\Messenger\Transport\TransportFactory;

src/Symfony/Component/HttpKernel/Tests/EventListener/DisallowRobotsIndexingListenerTest.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,11 @@ public function testInvoke(?string $expected, Response $response): void
2828
{
2929
$listener = new DisallowRobotsIndexingListener();
3030

31-
$event = new FilterResponseEvent(
32-
$this->createMock(HttpKernelInterface::class),
33-
$this->createMock(Request::class),
34-
KernelInterface::MASTER_REQUEST,
35-
$response
36-
);
31+
$event = new FilterResponseEvent($this->createMock(HttpKernelInterface::class), $this->createMock(Request::class), KernelInterface::MASTER_REQUEST, $response);
3732

3833
$listener($event);
3934

40-
$this->assertSame(
41-
$expected,
42-
$response->headers->get('X-Robots-Tag'),
43-
'Header doesn\'t match expectations'
44-
);
35+
$this->assertSame($expected, $response->headers->get('X-Robots-Tag'), 'Header doesn\'t match expectations');
4536
}
4637

4738
public function provideResponses(): iterable

0 commit comments

Comments
 (0)