@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | protected function registerEventListeners() |
127 | 127 | { |
128 | 128 | foreach ($this->listeners as $eventName) { |
129 | - $this->app['events']->listen($eventName . '*', [$this, 'handleEvent']); |
|
129 | + $this->app['events']->listen($eventName.'*', [$this, 'handleEvent']); |
|
130 | 130 | } |
131 | 131 | } |
132 | 132 | |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | public function setWebhooks($webhooks) |
147 | 147 | { |
148 | 148 | $this->webhooks = $webhooks; |
149 | - $this->getCache()->rememberForever(Webhook::CACHE_KEY, function () { |
|
149 | + $this->getCache()->rememberForever(Webhook::CACHE_KEY, function() { |
|
150 | 150 | return $this->webhooks; |
151 | 151 | }); |
152 | 152 | } |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | { |
159 | 159 | // Check if migration ran |
160 | 160 | if (Schema::hasTable((new Webhook)->getTable())) { |
161 | - return collect($this->getCache()->rememberForever(Webhook::CACHE_KEY, function () { |
|
161 | + return collect($this->getCache()->rememberForever(Webhook::CACHE_KEY, function() { |
|
162 | 162 | return Webhook::all(); |
163 | 163 | })); |
164 | 164 | } |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | $webhooks = $this->getWebhooks()->where('event', $eventName); |
210 | 210 | $webhooks = $webhooks->filter($this->config->get('captain_hook.filter', null)); |
211 | 211 | |
212 | - if (! $webhooks->isEmpty()) { |
|
212 | + if (!$webhooks->isEmpty()) { |
|
213 | 213 | $this->dispatch(new TriggerWebhooksJob($webhooks, $eventData)); |
214 | 214 | } |
215 | 215 | } |