@@ -92,7 +92,9 @@ |
||
| 92 | 92 | |
| 93 | 93 | protected function eventRequestMatches(KernelEvent $event): bool |
| 94 | 94 | { |
| 95 | - if ($event->getRequest()->getMethod() === Request::METHOD_OPTIONS) return false; |
|
| 95 | + if ($event->getRequest()->getMethod() === Request::METHOD_OPTIONS) { |
|
| 96 | + return false; |
|
| 97 | + } |
|
| 96 | 98 | |
| 97 | 99 | return $this->requestMatcher->matches($event->getRequest(), $event->getRequestType()); |
| 98 | 100 | } |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | return parent::setContent($content); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - public function getContent(): string|false |
|
| 56 | + public function getContent(): string | false |
|
| 57 | 57 | { |
| 58 | 58 | return serialize($this->customContent); |
| 59 | 59 | } |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | return $this->customContent; |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - public function getContent(): string|false |
|
| 50 | + public function getContent(): string | false |
|
| 51 | 51 | { |
| 52 | 52 | return is_string($this->customContent) ? $this->customContent : json_encode($this->customContent); |
| 53 | 53 | } |