Completed
Push — master ( 367b4e...a600c8 )
by Vladimir
02:25
created
src/Conversation/Context.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace FondBot\Conversation;
6 6
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      *
99 99
      * @return Context
100 100
      */
101
-    public function setInteraction(?Interaction $interaction): Context
101
+    public function setInteraction(?Interaction $interaction) : Context
102 102
     {
103 103
         $this->interaction = $interaction;
104 104
 
Please login to merge, or discard this patch.
src/Foundation/API.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace FondBot\Foundation;
6 6
 
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
      *
38 38
      * @return array|null
39 39
      */
40
-    public function findDriver(string $name): ?array
40
+    public function findDriver(string $name): ? array
41 41
     {
42
-        return $this->getDrivers()->first(function ($item) use ($name) {
42
+        return $this->getDrivers()->first(function($item) use ($name) {
43 43
             return $item['name'] === $name;
44 44
         });
45 45
     }
Please login to merge, or discard this patch.
src/Foundation/Providers/EventServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace FondBot\Foundation\Providers;
6 6
 
Please login to merge, or discard this patch.
src/Foundation/Providers/FoundationServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace FondBot\Foundation\Providers;
6 6
 
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function register(): void
13 13
     {
14
-        $this->app->singleton(Kernel::class, function () {
14
+        $this->app->singleton(Kernel::class, function() {
15 15
             return new Kernel;
16 16
         });
17 17
     }
Please login to merge, or discard this patch.
src/Channels/ChannelManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace FondBot\Channels;
6 6
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function getByDriver(string $driver): Collection
56 56
     {
57
-        return $this->channels->filter(function (array $channel) use ($driver) {
57
+        return $this->channels->filter(function(array $channel) use ($driver) {
58 58
             return $channel['driver'] === $driver;
59 59
         });
60 60
     }
Please login to merge, or discard this patch.
src/Toolbelt/ListChannels.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace FondBot\Toolbelt;
6 6
 
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     public function handle(ChannelManager $manager): void
16 16
     {
17 17
         $rows = collect($manager->all())
18
-            ->transform(function ($item, $name) use ($manager) {
18
+            ->transform(function($item, $name) use ($manager) {
19 19
                 return [$name, $manager->driver($item['driver'])->getName(), $manager->create($name)->getWebhookUrl()];
20 20
             })
21 21
             ->toArray();
Please login to merge, or discard this patch.
src/Drivers/Type.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace FondBot\Drivers;
6 6
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public static function createFromTemplate($templates)
22 22
     {
23
-        $callback = function (Template $template) {
23
+        $callback = function(Template $template) {
24 24
             $to = static::class;
25 25
 
26 26
             return $to::create($template);
Please login to merge, or discard this patch.
src/Channels/Exceptions/DriverException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace FondBot\Channels\Exceptions;
6 6
 
Please login to merge, or discard this patch.
src/Conversation/Activator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace FondBot\Conversation;
6 6
 
Please login to merge, or discard this patch.