Completed
Push — master ( 7520aa...b5612a )
by Vladimir
07:29
created
src/Toolbelt/Commands/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\Toolbelt\Commands;
6 6
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         $name = $this->getArgument('name');
31 31
         $drivers = collect($items);
32 32
 
33
-        $driver = $drivers->first(function ($item) use ($name) {
33
+        $driver = $drivers->first(function($item) use ($name) {
34 34
             return $item['name'] === $name;
35 35
         });
36 36
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $composer = json_decode($this->filesystem()->read('composer.json'), true);
53 53
         $installed = collect($composer['require'])
54 54
             ->merge($composer['require-dev'])
55
-            ->search(function ($_, $item) use ($package) {
55
+            ->search(function($_, $item) use ($package) {
56 56
                 return hash_equals($item, $package);
57 57
             });
58 58
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
         $process = new Process('composer require '.$package, path());
69 69
         $output = '';
70
-        $result = $process->run(function ($_, $line) use (&$output) {
70
+        $result = $process->run(function($_, $line) use (&$output) {
71 71
             $output .= $line;
72 72
         });
73 73
 
Please login to merge, or discard this patch.
src/Toolbelt/Commands/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\Toolbelt\Commands;
6 6
 
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
         $items = json_decode($response->getBody()->getContents(), true);
26 26
 
27 27
         $drivers = collect($items)
28
-            ->map(function ($item) {
28
+            ->map(function($item) {
29 29
                 return [$item['name'], $item['package'], $item['official'] ? '✅' : '❌'];
30 30
             })
31 31
             ->toArray();
Please login to merge, or discard this patch.