Passed
Push — master ( 922d24...7b732c )
by Vladimir
06:12
created
src/Drivers/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\Drivers;
6 6
 
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public function register(): void
26 26
     {
27
-        $this->container->share(DriverManager::class, function () {
27
+        $this->container->share(DriverManager::class, function() {
28 28
             // Here we will discover all drivers installed
29 29
             // And add all found drivers to the manager
30 30
 
Please login to merge, or discard this patch.
src/Drivers/DriverManager.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\Drivers;
6 6
 
Please login to merge, or discard this patch.
src/Filesystem/FilesystemServiceProvider.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\Filesystem;
6 6
 
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function register(): void
40 40
     {
41
-        $this->container->share(Filesystem::class, function () {
41
+        $this->container->share(Filesystem::class, function() {
42 42
             return new Filesystem(new Local($this->container->get('base_path')));
43 43
         });
44 44
 
45
-        $this->container->share(MountManager::class, function () {
45
+        $this->container->share(MountManager::class, function() {
46 46
             $filesystems = [
47 47
                 'local' => $this->container->get(Filesystem::class),
48 48
             ];
Please login to merge, or discard this patch.
src/Application/Assets.php 1 patch
Spacing   +6 added lines, -6 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\Application;
6 6
 
@@ -33,10 +33,10 @@  discard block
 block discarded – undo
33 33
         $assets = [];
34 34
 
35 35
         collect($files)
36
-            ->filter(function (array $file) {
36
+            ->filter(function(array $file) {
37 37
                 return $file['type'] === 'file' && $file['basename'] === 'composer.json';
38 38
             })
39
-            ->transform(function ($file) {
39
+            ->transform(function($file) {
40 40
                 $contents = $this->filesystem->get($file['path'])->read();
41 41
                 $manifest = json_decode($contents, true);
42 42
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
                 return null;
48 48
             })
49
-            ->filter(function ($item) use ($type) {
49
+            ->filter(function($item) use ($type) {
50 50
                 if ($item === null) {
51 51
                     return false;
52 52
                 }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
                 return true;
60 60
             })
61
-            ->each(function ($item) use (&$assets) {
61
+            ->each(function($item) use (&$assets) {
62 62
                 $type = key($item);
63 63
 
64 64
                 $assets[$type][] = $item[$type];
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
         if ($type !== null) {
68 68
             $assets = collect($assets)
69
-                ->filter(function ($_, $key) use ($type) {
69
+                ->filter(function($_, $key) use ($type) {
70 70
                     return $key === $type;
71 71
                 })
72 72
                 ->values()
Please login to merge, or discard this patch.