Completed
Push — master ( 6a1ba8...a69e3d )
by Vladimir
13:33 queued 10:53
created
src/Console/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\Console;
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
-            ->map(function ($item, $name) {
18
+            ->map(function($item, $name) {
19 19
                 return [$name, $item['driver'], '/channels/'.$name];
20 20
             })
21 21
             ->toArray();
Please login to merge, or discard this patch.
src/Foundation/ServiceProvider.php 1 patch
Spacing   +8 added lines, -8 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
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
     private function registerDriverManager(): void
76 76
     {
77
-        $this->app->singleton(DriverManager::class, function () {
77
+        $this->app->singleton(DriverManager::class, function() {
78 78
             $manager = new DriverManager;
79 79
             $manager->register(array_get($this->config(), 'drivers', []));
80 80
 
@@ -84,10 +84,10 @@  discard block
 block discarded – undo
84 84
 
85 85
     private function registerChannelManager(): void
86 86
     {
87
-        $this->app->singleton(ChannelManager::class, function () {
87
+        $this->app->singleton(ChannelManager::class, function() {
88 88
             /** @var array $channels */
89 89
             $channels = collect(array_get($this->config(), 'channels', []))
90
-                ->mapWithKeys(function (array $parameters, string $name) {
90
+                ->mapWithKeys(function(array $parameters, string $name) {
91 91
                     return [$name => $parameters];
92 92
                 })
93 93
                 ->toArray();
@@ -101,14 +101,14 @@  discard block
 block discarded – undo
101 101
 
102 102
     private function registerConversationManager(): void
103 103
     {
104
-        $this->app->singleton(ConversationManager::class, function () {
104
+        $this->app->singleton(ConversationManager::class, function() {
105 105
             return new ConversationManager($this->app->make(Kernel::class));
106 106
         });
107 107
     }
108 108
 
109 109
     private function registerSessionManager(): void
110 110
     {
111
-        $this->app->singleton(SessionManager::class, function () {
111
+        $this->app->singleton(SessionManager::class, function() {
112 112
             return new SessionManager(
113 113
                 $this->app,
114 114
                 $this->app->make(Store::class)
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 
119 119
     private function registerIntentManager(): void
120 120
     {
121
-        $this->app->singleton(IntentManager::class, function () {
121
+        $this->app->singleton(IntentManager::class, function() {
122 122
             $intents = array_get($this->config(), 'intents', []);
123 123
             $fallbackIntent = array_get($this->config(), 'fallback_intent', FallbackIntent::class);
124 124
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
     private function registerKernel(): void
133 133
     {
134
-        $this->app->singleton(Kernel::class, function () {
134
+        $this->app->singleton(Kernel::class, function() {
135 135
             return Kernel::createInstance($this->app);
136 136
         });
137 137
     }
Please login to merge, or discard this patch.
src/Console/MakeIntent.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\Console;
6 6
 
Please login to merge, or discard this patch.
src/Controllers/IndexController.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\Controllers;
6 6
 
Please login to merge, or discard this patch.
src/Controllers/ChannelController.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\Controllers;
6 6
 
Please login to merge, or discard this patch.
resources/routes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,10 +5,10 @@
 block discarded – undo
5 5
 
6 6
 $router->group(
7 7
     ['namespace' => 'FondBot\Controllers', 'prefix' => 'fondbot'],
8
-    function () use (&$router) {
8
+    function() use (&$router) {
9 9
         $router->get('/', 'IndexController@show');
10 10
 
11
-        collect(['GET', 'POST', 'PATCH', 'DELETE'])->each(function (string $method) use (&$router) {
11
+        collect(['GET', 'POST', 'PATCH', 'DELETE'])->each(function(string $method) use (&$router) {
12 12
             $router->$method('/{channel}', 'ChannelController@webhook');
13 13
         });
14 14
     });
Please login to merge, or discard this patch.