Completed
Push — master ( afce1d...f8221d )
by Vladimir
09:37
created
src/helpers.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
 if (!function_exists('kernel')) {
6 6
     /**
Please login to merge, or discard this patch.
src/Console/MakeInteraction.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/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/Console/ListDrivers.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
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         $items = json_decode((string) $response->getBody(), true);
27 27
 
28 28
         $drivers = collect($items)
29
-            ->transform(function ($item) use ($installedDrivers) {
29
+            ->transform(function($item) use ($installedDrivers) {
30 30
                 return [
31 31
                     $item['name'],
32 32
                     $item['package'],
Please login to merge, or discard this patch.
src/Console/InstallDriver.php 1 patch
Spacing   +4 added lines, -4 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
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         $name = $this->argument('name');
28 28
         $drivers = collect($items);
29 29
 
30
-        $driver = $drivers->first(function ($item) use ($name) {
30
+        $driver = $drivers->first(function($item) use ($name) {
31 31
             return $item['name'] === $name;
32 32
         });
33 33
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         $composer = json_decode($filesystem->get('composer.json'), true);
50 50
         $installed = collect($composer['require'])
51 51
             ->merge($composer['require-dev'])
52
-            ->search(function ($_, $item) use ($package) {
52
+            ->search(function($_, $item) use ($package) {
53 53
                 return hash_equals($item, $package);
54 54
             });
55 55
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
         $process = new Process('composer require '.$package, path());
66 66
         $output = '';
67
-        $result = $process->run(function ($_, $line) use (&$output) {
67
+        $result = $process->run(function($_, $line) use (&$output) {
68 68
             $output .= $line;
69 69
         });
70 70
 
Please login to merge, or discard this patch.
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/Providers/ChannelServiceProvider.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\Providers;
6 6
 
@@ -17,13 +17,13 @@  discard block
 block discarded – undo
17 17
      */
18 18
     public function register(): void
19 19
     {
20
-        $this->app->singleton(ChannelManager::class, function () {
20
+        $this->app->singleton(ChannelManager::class, function() {
21 21
             /** @var Config $config */
22 22
             $config = $this->app[Config::class];
23 23
 
24 24
             /** @var array $channels */
25 25
             $channels = collect($config->get('fondbot.channels', []))
26
-                ->mapWithKeys(function (array $parameters, string $name) {
26
+                ->mapWithKeys(function(array $parameters, string $name) {
27 27
                     return [$name => $parameters];
28 28
                 });
29 29
 
Please login to merge, or discard this patch.
src/Providers/ConsoleServiceProvider.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\Providers;
6 6
 
Please login to merge, or discard this patch.
src/Providers/DriverServiceProvider.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\Providers;
6 6
 
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      */
18 18
     public function register(): void
19 19
     {
20
-        $this->app->singleton(DriverManager::class, function () {
20
+        $this->app->singleton(DriverManager::class, function() {
21 21
             /** @var Config $config */
22 22
             $config = $this->app[Config::class];
23 23
 
Please login to merge, or discard this patch.