@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Jarvis; |
6 | 6 | |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | */ |
117 | 117 | public function analyze(Request $request = null) : Response |
118 | 118 | { |
119 | - $request = $request ?? $this->request; |
|
119 | + $request = $request ? ? $this->request; |
|
120 | 120 | $response = null; |
121 | 121 | |
122 | 122 | try { |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | } |
192 | 192 | |
193 | 193 | if (isset($this->receivers[$eventName])) { |
194 | - $event = $event ?? new SimpleEvent(); |
|
194 | + $event = $event ? ? new SimpleEvent(); |
|
195 | 195 | foreach ($this->buildEventReceivers($eventName) as $receiver) { |
196 | 196 | call_user_func_array($this->callback_resolver->resolve($receiver), [$event]); |
197 | 197 | |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | */ |
254 | 254 | private function buildEventReceivers(string $eventName) |
255 | 255 | { |
256 | - return $this->computedReceivers[$eventName] = $this->computedReceivers[$eventName] ?? array_merge( |
|
256 | + return $this->computedReceivers[$eventName] = $this->computedReceivers[$eventName] ? ? array_merge( |
|
257 | 257 | $this->receivers[$eventName][self::RECEIVER_HIGH_PRIORITY], |
258 | 258 | $this->receivers[$eventName][self::RECEIVER_NORMAL_PRIORITY], |
259 | 259 | $this->receivers[$eventName][self::RECEIVER_LOW_PRIORITY] |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Jarvis\Skill\DependencyInjection; |
6 | 6 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | } |
43 | 43 | |
44 | 44 | $request = $classname::createFromGlobals(); |
45 | - $request->setSession($request->getSession() ?? new Session()); |
|
45 | + $request->setSession($request->getSession() ? ? new Session()); |
|
46 | 46 | |
47 | 47 | return $request; |
48 | 48 | }; |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Jarvis\Skill\EventBroadcaster; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Jarvis\Skill\Routing; |
6 | 6 | |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | */ |
33 | 33 | public function addRoute(string $httpMethod, string $route, $handler, string $scope = Jarvis::DEFAULT_SCOPE) : Router |
34 | 34 | { |
35 | - $this->rawRoutes[$scope] = $this->rawRoutes[$scope] ?? []; |
|
35 | + $this->rawRoutes[$scope] = $this->rawRoutes[$scope] ? ? []; |
|
36 | 36 | $this->rawRoutes[$scope][] = [strtolower($httpMethod), $route, $handler]; |
37 | 37 | $this->compilationKey = null; |
38 | 38 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Jarvis\Skill\EventBroadcaster; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Jarvis\Skill\EventBroadcaster; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Jarvis\Skill\EventBroadcaster; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Jarvis\Skill\EventBroadcaster; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Jarvis\Skill\EventBroadcaster; |
6 | 6 |