Completed
Pull Request — master (#40)
by
unknown
02:12
created
src/Mpociot/CaptainHook/CaptainHookServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.