Passed
Push — 1.0 ( bc4ae1...82a12a )
by Vladimir
03:01
created
src/Toolbelt/Commands/Log.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\Toolbelt\Commands;
6 6
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $logger = resolve(Logger::class);
34 34
 
35 35
         /** @var StreamHandler|null $handler */
36
-        $handler = collect($logger->getHandlers())->first(function (HandlerInterface $item) {
36
+        $handler = collect($logger->getHandlers())->first(function(HandlerInterface $item) {
37 37
             return $item instanceof StreamHandler;
38 38
         });
39 39
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
         $command = 'tail -f -n 1000 '.escapeshellarg($handler->getUrl());
47 47
 
48
-        (new Process($command))->setTimeout(null)->run(function ($_, $line) {
48
+        (new Process($command))->setTimeout(null)->run(function($_, $line) {
49 49
             $this->line($line);
50 50
         });
51 51
     }
Please login to merge, or discard this patch.
src/Toolbelt/Commands/ListChannels.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
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         $manager = resolve(ChannelManager::class);
29 29
 
30 30
         $channels = collect($manager->all())
31
-            ->map(function ($item, $name) {
31
+            ->map(function($item, $name) {
32 32
                 return [$name, $item['driver'], '/channels/'.$name];
33 33
             })
34 34
             ->toArray();
Please login to merge, or discard this patch.
src/Conversation/ConversationManager.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      * @param string  $channelName
26 26
      * @param Request $request
27 27
      *
28
-     * @return mixed
28
+     * @return string
29 29
      */
30 30
     public function handle(string $channelName, Request $request)
31 31
     {
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     /**
81 81
      * Start conversation.
82 82
      *
83
-     * @param Conversable|mixed $conversable
83
+     * @param Conversable $conversable
84 84
      */
85 85
     public function converse(Conversable $conversable): void
86 86
     {
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     /**
115 115
      * Restart intent or interaction.
116 116
      *
117
-     * @param Conversable|mixed $conversable
117
+     * @param Conversable $conversable
118 118
      */
119 119
     public function restart(Conversable $conversable): void
120 120
     {
Please login to merge, or discard this 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.
src/Conversation/ConversationServiceProvider.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\Conversation;
6 6
 
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function register()
23 23
     {
24
-        $this->container->share(ConversationManager::class, function () {
24
+        $this->container->share(ConversationManager::class, function() {
25 25
             return new ConversationManager;
26 26
         });
27 27
     }
Please login to merge, or discard this patch.
src/Application/Kernel.php 1 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\Application;
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/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
 
@@ -38,13 +38,13 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function register(): void
40 40
     {
41
-        $this->container->share('request', function () {
41
+        $this->container->share('request', function() {
42 42
             return ServerRequestFactory::fromGlobals($_SERVER, $_GET, $_POST, $_COOKIE, $_FILES);
43 43
         });
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
             $controller = new Controller;
Please login to merge, or discard this patch.
src/Contracts/Template.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/Channels/Exceptions/ChannelNotFound.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\Channels\Exceptions;
6 6
 
Please login to merge, or discard this patch.
src/Drivers/CommandHandler.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.