Test Failed
Pull Request — master (#50)
by Chubarov
03:03
created
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.
src/Conversation/Activators/WithPayload.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\Activators;
6 6
 
Please login to merge, or discard this patch.
src/Contracts/Queue.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\Contracts;
6 6
 
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      *
17 17
      * @return Job
18 18
      */
19
-    public function pull(): ?Job;
19
+    public function pull(): ? Job;
20 20
 
21 21
     /**
22 22
      * Push command onto the queue.
Please login to merge, or discard this patch.
src/Queue/Adapters/SyncAdapter.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\Queue\Adapters;
6 6
 
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      *
18 18
      * @return Job
19 19
      */
20
-    public function pull(): ?Job
20
+    public function pull(): ? Job
21 21
     {
22 22
         return null;
23 23
     }
Please login to merge, or discard this patch.
src/Queue/Adapters/BeanstalkdAdapter.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\Queue\Adapters;
6 6
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      *
32 32
      * @return Job|SerializableForQueue
33 33
      */
34
-    public function pull(): ?Job
34
+    public function pull(): ? Job
35 35
     {
36 36
         $pheanstalkJob = $this->connection->watch($this->queue)->reserve();
37 37
 
Please login to merge, or discard this patch.
src/Conversation/SessionServiceProvider.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
 
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      */
24 24
     public function register(): void
25 25
     {
26
-        $this->container->share(SessionManager::class, function () {
26
+        $this->container->share(SessionManager::class, function() {
27 27
             return new SessionManager(
28 28
                 $this->container,
29 29
                 $this->container->get(CacheInterface::class)
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   +5 added lines, -5 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
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      *
86 86
      * @return Channel|null
87 87
      */
88
-    public function getChannel(): ?Channel
88
+    public function getChannel(): ? Channel
89 89
     {
90 90
         return $this->channel;
91 91
     }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      *
106 106
      * @return Driver|null
107 107
      */
108
-    public function getDriver(): ?Driver
108
+    public function getDriver(): ? Driver
109 109
     {
110 110
         return $this->driver;
111 111
     }
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      *
126 126
      * @return Session|null
127 127
      */
128
-    public function getSession(): ?Session
128
+    public function getSession(): ? Session
129 129
     {
130 130
         return $this->session;
131 131
     }
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      *
159 159
      * @return Context|null
160 160
      */
161
-    public function getContext(): ?Context
161
+    public function getContext(): ? Context
162 162
     {
163 163
         return $this->context;
164 164
     }
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.