Test Failed
Push — master ( 962688...263ebe )
by Vladimir
03:20
created
src/Drivers/Commands/SendMessage.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\Drivers\Commands;
6 6
 
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
         return $this->recipient;
50 50
     }
51 51
 
52
-    public function getText(): ?string
52
+    public function getText(): ? string
53 53
     {
54 54
         return $this->text;
55 55
     }
56 56
 
57
-    public function getTemplate(): ?Template
57
+    public function getTemplate(): ? Template
58 58
     {
59 59
         return $this->template;
60 60
     }
Please login to merge, or discard this patch.
src/Application/RouteServiceProvider.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\Application;
6 6
 
@@ -40,13 +40,13 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function register(): void
42 42
     {
43
-        $this->container->share('request', function () {
43
+        $this->container->share('request', function() {
44 44
             return ServerRequestFactory::fromGlobals($_SERVER, $_GET, $_POST, $_COOKIE, $_FILES);
45 45
         });
46 46
         $this->container->share('response', Response::class);
47 47
         $this->container->share('emitter', SapiEmitter::class);
48 48
 
49
-        $this->container->share('router', function () {
49
+        $this->container->share('router', function() {
50 50
             $router = new RouteCollection($this->container);
51 51
 
52 52
             $this->routes($router);
Please login to merge, or discard this patch.
src/Contracts/Driver.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\Contracts;
6 6
 
Please login to merge, or discard this patch.
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/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
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
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'],
Please login to merge, or discard this patch.
src/Application/Composer.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\Application;
6 6
 
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,7 +33,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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];
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'), 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
             ];
Please login to merge, or discard this patch.