Test Failed
Pull Request — master (#50)
by Chubarov
03:03
created
src/Foundation/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\Foundation;
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/Foundation/RouteServiceProvider.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\Foundation;
6 6
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $this->container->share('response', Response::class);
45 45
         $this->container->share('emitter', SapiEmitter::class);
46 46
 
47
-        $this->container->share('router', function () {
47
+        $this->container->share('router', function() {
48 48
             $router = new RouteCollection($this->container);
49 49
 
50 50
             $this->routes($router);
Please login to merge, or discard this patch.
src/Controllers/WebhookController.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\Controllers;
6 6
 
Please login to merge, or discard this patch.
src/Controllers/Controller.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\Controllers;
6 6
 
Please login to merge, or discard this patch.
src/Foundation/CacheServiceProvider.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\Foundation;
6 6
 
Please login to merge, or discard this patch.
src/Foundation/Factory.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\Foundation;
6 6
 
Please login to merge, or discard this patch.
src/Foundation/RequestHandler.php 2 patches
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\Foundation;
6 6
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      * @param Channel          $channel
31 31
      * @param RequestInterface $request
32 32
      *
33
-     * @return mixed
33
+     * @return string
34 34
      */
35 35
     public function handle(Channel $channel, RequestInterface $request)
36 36
     {
Please login to merge, or discard this patch.
src/Toolbelt/Commands/ServerRun.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\Toolbelt\Commands;
6 6
 
Please login to merge, or discard this patch.
src/Conversation/Context.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\Conversation;
6 6
 
Please login to merge, or discard this patch.