@@ -15,6 +15,7 @@ discard block |
||
15 | 15 | * @param string $eventName |
16 | 16 | * @param callable $listener |
17 | 17 | * @param int $priority |
18 | + * @return void |
|
18 | 19 | */ |
19 | 20 | public function addListener(string $eventName, $listener, int $priority = 0); |
20 | 21 | |
@@ -22,6 +23,7 @@ discard block |
||
22 | 23 | * Trigger an event. |
23 | 24 | * |
24 | 25 | * @param Event $event |
26 | + * @return void |
|
25 | 27 | */ |
26 | 28 | public function dispatch(Event $event); |
27 | 29 | } |
28 | 30 | \ No newline at end of file |
@@ -17,7 +17,7 @@ |
||
17 | 17 | * Writes provided string to response body stream |
18 | 18 | * |
19 | 19 | * @param string $body |
20 | - * @return ResponseContract |
|
20 | + * @return ResponseTrait |
|
21 | 21 | */ |
22 | 22 | public function append(string $body): ResponseContract |
23 | 23 | { |
@@ -82,8 +82,7 @@ |
||
82 | 82 | // Push pretty page handler only for local environment |
83 | 83 | $whoops->pushHandler( |
84 | 84 | $kernel->getEnvironment() === 'local' ? |
85 | - new PrettyPageHandler() : |
|
86 | - new PlainTextHandler() |
|
85 | + new PrettyPageHandler() : new PlainTextHandler() |
|
87 | 86 | ); |
88 | 87 | } |
89 | 88 | /** |
@@ -33,7 +33,7 @@ |
||
33 | 33 | $handler->pushProcessor(new PsrLogMessageProcessor); |
34 | 34 | |
35 | 35 | if (!$this->kernel->isCli()) { |
36 | - $handler->pushProcessor(new WebProcessor(null, [ // todo: make list configurable? |
|
36 | + $handler->pushProcessor(new WebProcessor(null, [// todo: make list configurable? |
|
37 | 37 | 'url' => 'REQUEST_URI', |
38 | 38 | 'ip' => 'REMOTE_ADDR', |
39 | 39 | 'http_method' => 'REQUEST_METHOD', |
@@ -62,7 +62,8 @@ |
||
62 | 62 | $item->set($value); |
63 | 63 | if (is_int($expires) || $expires instanceof \DateInterval) { |
64 | 64 | $item->expiresAfter($expires); |
65 | - } elseif ($expires instanceof \DateTimeInterface) { // @codeCoverageIgnore |
|
65 | + } elseif ($expires instanceof \DateTimeInterface) { |
|
66 | +// @codeCoverageIgnore |
|
66 | 67 | $item->expiresAt($expires); |
67 | 68 | } |
68 | 69 |