@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | */ |
| 31 | 31 | public function initialize(string $host, string $token = 'gingdev') |
| 32 | 32 | { |
| 33 | - if (! filter_var($host, FILTER_VALIDATE_URL)) { |
|
| 33 | + if (!filter_var($host, FILTER_VALIDATE_URL)) { |
|
| 34 | 34 | throw new InvalidArgumentException('The host name is not valid'); |
| 35 | 35 | } |
| 36 | 36 | $this->host = rtrim($host, '/'); |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | * @param array $data |
| 46 | 46 | * @return boolean |
| 47 | 47 | */ |
| 48 | - public function emit(string $event, array $data = []): bool |
|
| 48 | + public function emit(string $event, array $data = [ ]): bool |
|
| 49 | 49 | { |
| 50 | 50 | $args = [ |
| 51 | 51 | 'event' => $event, |