Test Failed
Pull Request — master (#50)
by Chubarov
03:03
created
src/Conversation/IntentServiceProvider.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
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function register(): void
39 39
     {
40
-        $this->container->share(IntentManager::class, function () {
40
+        $this->container->share(IntentManager::class, function() {
41 41
             $manager = new IntentManager();
42 42
 
43 43
             foreach ($this->intents() as $intent) {
Please login to merge, or discard this patch.
src/Conversation/Session.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\Conversation;
6 6
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      *
72 72
      * @return Intent|Conversable|null
73 73
      */
74
-    public function getIntent(): ?Intent
74
+    public function getIntent(): ? Intent
75 75
     {
76 76
         return $this->intent;
77 77
     }
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      *
92 92
      * @return Interaction|Conversable|null
93 93
      */
94
-    public function getInteraction(): ?Interaction
94
+    public function getInteraction(): ? Interaction
95 95
     {
96 96
         return $this->interaction;
97 97
     }
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      *
102 102
      * @param Interaction|null $interaction
103 103
      */
104
-    public function setInteraction(?Interaction $interaction): void
104
+    public function setInteraction(? Interaction $interaction) : void
105 105
     {
106 106
         $this->interaction = $interaction;
107 107
     }
Please login to merge, or discard this patch.
src/Conversation/Traits/InteractsWithSession.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\Traits;
6 6
 
Please login to merge, or discard this patch.
src/Conversation/SessionManager.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.
src/Toolbelt/Commands/InstallDriver.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\Toolbelt\Commands;
6 6
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         $name = $this->getArgument('name');
31 31
         $drivers = collect($items);
32 32
 
33
-        $driver = $drivers->first(function ($item) use ($name) {
33
+        $driver = $drivers->first(function($item) use ($name) {
34 34
             return $item['name'] === $name;
35 35
         });
36 36
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $composer = json_decode($this->filesystem()->read('composer.json'), true);
53 53
         $installed = collect($composer['require'])
54 54
             ->merge($composer['require-dev'])
55
-            ->search(function ($_, $item) use ($package) {
55
+            ->search(function($_, $item) use ($package) {
56 56
                 return hash_equals($item, $package);
57 57
             });
58 58
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
         $process = new Process('composer require '.$package, path());
69 69
         $output = '';
70
-        $result = $process->run(function ($_, $line) use (&$output) {
70
+        $result = $process->run(function($_, $line) use (&$output) {
71 71
             $output .= $line;
72 72
         });
73 73
 
Please login to merge, or discard this patch.
src/Toolbelt/ToolbeltServiceProvider.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;
6 6
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function register(): void
35 35
     {
36
-        $this->container->share('toolbelt', function () {
36
+        $this->container->share('toolbelt', function() {
37 37
             $application = new Application('FondBot', Kernel::VERSION);
38 38
             $application->addCommands([
39 39
                 new Commands\MakeIntent,
Please login to merge, or discard this patch.
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
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.
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.