@@ -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 | } |
@@ -219,15 +219,15 @@ discard block |
||
219 | 219 | */ |
220 | 220 | protected function registerCommands() |
221 | 221 | { |
222 | - $this->app['hook.list'] = $this->app->share(function () { |
|
222 | + $this->app['hook.list'] = $this->app->share(function() { |
|
223 | 223 | return new ListWebhooks(); |
224 | 224 | }); |
225 | 225 | |
226 | - $this->app['hook.add'] = $this->app->share(function () { |
|
226 | + $this->app['hook.add'] = $this->app->share(function() { |
|
227 | 227 | return new AddWebhook(); |
228 | 228 | }); |
229 | 229 | |
230 | - $this->app['hook.delete'] = $this->app->share(function () { |
|
230 | + $this->app['hook.delete'] = $this->app->share(function() { |
|
231 | 231 | return new DeleteWebhook(); |
232 | 232 | }); |
233 | 233 |