Test Failed
Push — master ( bdaab5...176ee2 )
by Vladimir
06:36
created
src/Conversation/ConversationManager.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     /**
58 58
      * Start conversation.
59 59
      *
60
-     * @param Conversable|mixed $conversable
60
+     * @param Conversable $conversable
61 61
      */
62 62
     public function converse(Conversable $conversable): void
63 63
     {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     /**
92 92
      * Restart intent or interaction.
93 93
      *
94
-     * @param Conversable|mixed $conversable
94
+     * @param Conversable $conversable
95 95
      */
96 96
     public function restart(Conversable $conversable): void
97 97
     {
Please login to merge, or discard this patch.
src/Foundation/Kernel.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
      * @param string $alias
139 139
      * @param array  $args
140 140
      *
141
-     * @return mixed
141
+     * @return \FondBot\Drivers\ReceivedMessage
142 142
      *
143 143
      * @throws \Psr\Container\ContainerExceptionInterface
144 144
      */
Please login to merge, or discard this 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\Foundation;
6 6
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      *
44 44
      * @return Channel|null
45 45
      */
46
-    public function getChannel(): ?Channel
46
+    public function getChannel(): ? Channel
47 47
     {
48 48
         return $this->channel;
49 49
     }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      *
64 64
      * @return Driver|null
65 65
      */
66
-    public function getDriver(): ?Driver
66
+    public function getDriver(): ? Driver
67 67
     {
68 68
         return $this->driver;
69 69
     }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      *
84 84
      * @return Session|null
85 85
      */
86
-    public function getSession(): ?Session
86
+    public function getSession(): ? Session
87 87
     {
88 88
         return $this->session;
89 89
     }
Please login to merge, or discard this patch.
src/Foundation/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\Foundation;
6 6
 
Please login to merge, or discard this patch.
src/Foundation/AppServiceProvider.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
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         $this->container->share('resources_path', $this->resourcesPath());
70 70
         $this->container->share('bootstrap_path', 'bootstrap');
71 71
 
72
-        $this->container->share(ConversationManager::class, function () {
72
+        $this->container->share(ConversationManager::class, function() {
73 73
             return new ConversationManager($this->container->get(Kernel::class));
74 74
         });
75 75
     }
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/LogServiceProvider.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
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function boot(): void
39 39
     {
40
-        $this->container->share(LoggerInterface::class, function () {
40
+        $this->container->share(LoggerInterface::class, function() {
41 41
             $logger = new Logger('FondBot');
42 42
 
43 43
             foreach ($this->handlers() as $handler) {
Please login to merge, or discard this patch.
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/RequestHandler.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/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.