@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace FondBot\Contracts; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace FondBot\Drivers; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 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 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | $items = json_decode((string) $response->getBody(), true); |
| 37 | 37 | |
| 38 | 38 | $drivers = collect($items) |
| 39 | - ->transform(function ($item) use ($installedDrivers) { |
|
| 39 | + ->transform(function($item) use ($installedDrivers) { |
|
| 40 | 40 | return [ |
| 41 | 41 | $item['name'], |
| 42 | 42 | $item['package'], |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace FondBot\Application; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 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,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | if ($type !== null) { |
| 35 | 35 | return collect($assets) |
| 36 | - ->filter(function ($_, $key) use ($type) { |
|
| 36 | + ->filter(function($_, $key) use ($type) { |
|
| 37 | 37 | return $key === $type; |
| 38 | 38 | }) |
| 39 | 39 | ->flatten() |
@@ -62,10 +62,10 @@ discard block |
||
| 62 | 62 | $assets = []; |
| 63 | 63 | |
| 64 | 64 | collect($files) |
| 65 | - ->filter(function (array $file) { |
|
| 65 | + ->filter(function(array $file) { |
|
| 66 | 66 | return $file['type'] === 'file' && $file['basename'] === 'composer.json'; |
| 67 | 67 | }) |
| 68 | - ->transform(function ($file) { |
|
| 68 | + ->transform(function($file) { |
|
| 69 | 69 | $contents = $this->filesystem->get($file['path'])->read(); |
| 70 | 70 | $manifest = json_decode($contents, true); |
| 71 | 71 | |
@@ -75,10 +75,10 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | return null; |
| 77 | 77 | }) |
| 78 | - ->filter(function ($item) { |
|
| 78 | + ->filter(function($item) { |
|
| 79 | 79 | return $item !== null; |
| 80 | 80 | }) |
| 81 | - ->each(function ($item) use (&$assets) { |
|
| 81 | + ->each(function($item) use (&$assets) { |
|
| 82 | 82 | $type = key($item); |
| 83 | 83 | |
| 84 | 84 | $assets[$type][] = $item[$type]; |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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'), LOCK_EX, Local::SKIP_LINKS)); |
| 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 | ]; |