@@ -69,7 +69,9 @@ |
||
69 | 69 | * @param Results $events |
70 | 70 | */ |
71 | 71 | public function emit(Results $events) { |
72 | - if (!$events->hasEvents()) return; |
|
72 | + if (!$events->hasEvents()) { |
|
73 | + return; |
|
74 | + } |
|
73 | 75 | |
74 | 76 | $this->endpoint->send(null, $events->jsonEncode()); |
75 | 77 | } |
@@ -25,12 +25,16 @@ |
||
25 | 25 | if (isset($configuration['ssl'])) { |
26 | 26 | $origin = 'https://' . $configuration['hostname']; |
27 | 27 | |
28 | - if ($configuration['ssl']['port'] !== 443) $origin .= ':' . $configuration['ssl']['port']; |
|
29 | -} else { |
|
28 | + if ($configuration['ssl']['port'] !== 443) { |
|
29 | + $origin .= ':' . $configuration['ssl']['port']; |
|
30 | + } |
|
31 | + } else { |
|
30 | 32 | $origin = 'http://' . $configuration['hostname']; |
31 | 33 | |
32 | - if ($configuration['expose']['port'] !== 80) $origin .= ':' . $configuration['expose']['port']; |
|
33 | -} |
|
34 | + if ($configuration['expose']['port'] !== 80) { |
|
35 | + $origin .= ':' . $configuration['expose']['port']; |
|
36 | + } |
|
37 | + } |
|
34 | 38 | |
35 | 39 | $injector->define(Handler::class, [ |
36 | 40 | ':origin' => $origin, |