Skip to content

Commit a1ab997

Browse files
author
Thomas
authored
Add missing parenthesis.
1 parent f32041f commit a1ab997

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/DataProvider.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,14 @@ public static function getSubscribedEvents(): array
4141

4242
public function onKernelRequest(RequestEvent $event): void
4343
{
44-
if (method_exists($event, 'isMainRequest') { //Symfony >= 5.3
44+
if (method_exists($event, 'isMainRequest')) { //Symfony >= 5.3
4545
if ($event->isMainRequest()) {
4646
$this->httpRequest = $event->getRequest();
4747
$this->timestampStart = microtime(true);
4848
}
4949
}
5050

51-
52-
if (method_exists($event, 'isMasterRequest') { //Symfony < 5.3
51+
if (method_exists($event, 'isMasterRequest')) { //Symfony < 5.3
5352
if ($event->isMasterRequest()) {
5453
$this->httpRequest = $event->getRequest();
5554
$this->timestampStart = microtime(true);

0 commit comments

Comments
 (0)