Passed
Push — master ( e5fac5...d0c6dd )
by Sokolov
07:56
created
Category
database/migrations/2019_07_09_162500_create_subscribers_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up(): void
15 15
     {
16
-        Schema::create('webhook_subscribers', function (Blueprint $table) {
16
+        Schema::create('webhook_subscribers', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('event', 100)->index();
19 19
             $table->string('url');
Please login to merge, or discard this patch.
src/Repositories/DatabaseSubscriberRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
             $query->where('enabled', '=', true);
63 63
         }
64 64
 
65
-        $result = $query->get()->map(function ($object) {
65
+        $result = $query->get()->map(function($object) {
66 66
             return $this->createSubscriber($object);
67 67
         });
68 68
 
Please login to merge, or discard this patch.
src/Subscribers/SubscribersCollection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      */
17 17
     public function getUrls(): self
18 18
     {
19
-        return $this->map(function (Subscriber $subscriber) {
19
+        return $this->map(function(Subscriber $subscriber) {
20 20
             return $subscriber->url();
21 21
         });
22 22
     }
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public function filterByEvent(string $eventName): self
30 30
     {
31
-        return $this->filter(function (Subscriber $subscriber) use ($eventName) {
31
+        return $this->filter(function(Subscriber $subscriber) use ($eventName) {
32 32
             return $subscriber->event() === $eventName;
33 33
         });
34 34
     }
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function filterEnabled(): self
40 40
     {
41
-        return $this->filter(function (Subscriber $subscriber) {
41
+        return $this->filter(function(Subscriber $subscriber) {
42 42
             return $subscriber->isEnabled();
43 43
         });
44 44
     }
Please login to merge, or discard this patch.
src/WebhookChannel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,6 +40,6 @@
 block discarded – undo
40 40
      */
41 41
     protected function defaultHeaders(): array
42 42
     {
43
-        return ['Content-type' => 'application/json'];
43
+        return [ 'Content-type' => 'application/json' ];
44 44
     }
45 45
 }
Please login to merge, or discard this patch.
src/ServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 {
19 19
     public function register(): void
20 20
     {
21
-        $this->app->bind(SubscriberRepository::class, function (Container $container) {
21
+        $this->app->bind(SubscriberRepository::class, function(Container $container) {
22 22
             return new DatabaseSubscriberRepository(
23 23
                 $container->get(Connection::class),
24 24
                 $container->get(ValidationFactory::class),
@@ -26,11 +26,11 @@  discard block
 block discarded – undo
26 26
             );
27 27
         });
28 28
         
29
-        $this->app->bind(Channel::class, function () {
29
+        $this->app->bind(Channel::class, function() {
30 30
             return new WebhookChannel(new Client());
31 31
         });
32 32
         
33
-        $this->app->bind(MessageProcessorContract::class, function (Container $container) {
33
+        $this->app->bind(MessageProcessorContract::class, function(Container $container) {
34 34
             return new MessageProcessor(
35 35
                 $container->get(SubscriberRepository::class),
36 36
                 $container->get(BusDispatcher::class),
Please login to merge, or discard this patch.