Passed
Push — master ( 488825...f88249 )
by Vladimir
03:10
created
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
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      *
52 52
      * @return Job|SerializableForQueue
53 53
      */
54
-    public function next(): ?Job
54
+    public function next(): ? Job
55 55
     {
56 56
         $pheanstalkJob = $this->connection->watch($this->queue)->reserve();
57 57
 
Please login to merge, or discard this patch.
src/Toolbelt/Commands/QueueWorker.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/Channels/ChannelServiceProvider.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\Channels;
6 6
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function register(): void
32 32
     {
33
-        $this->container->share(ChannelManager::class, function () {
33
+        $this->container->share(ChannelManager::class, function() {
34 34
             $manager = new ChannelManager;
35 35
 
36 36
             foreach ($this->channels() as $name => $parameters) {
Please login to merge, or discard this patch.
src/Queue/QueueServiceProvider.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\Queue;
6 6
 
Please login to merge, or discard this patch.
src/Application/LogServiceProvider.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
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function boot(): void
42 42
     {
43
-        $this->container->share(LoggerInterface::class, function () {
43
+        $this->container->share(LoggerInterface::class, function() {
44 44
             $logger = new Logger('FondBot');
45 45
 
46 46
             foreach ($this->handlers() as $handler) {
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         if (PHP_SAPI !== 'cli') {
54 54
             $whoops = new Run;
55 55
             $whoops->pushHandler(new PrettyPageHandler);
56
-            $whoops->pushHandler(function (Throwable $exception) {
56
+            $whoops->pushHandler(function(Throwable $exception) {
57 57
                 /** @var LoggerInterface $logger */
58 58
                 $logger = $this->container->get(LoggerInterface::class);
59 59
 
Please login to merge, or discard this patch.
src/Drivers/DriverServiceProvider.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\Drivers;
6 6
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function register(): void
34 34
     {
35
-        $this->container->share(DriverManager::class, function () {
35
+        $this->container->share(DriverManager::class, function() {
36 36
             $manager = new DriverManager($this->container);
37 37
 
38 38
             // Here we will discover all drivers installed
Please login to merge, or discard this patch.
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/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 = $this->kernel->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
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         $command = 'tail -f -n 1000 '.escapeshellarg($handler->getUrl());
46 46
 
47
-        (new Process($command))->setTimeout(null)->run(function ($type, $line) {
47
+        (new Process($command))->setTimeout(null)->run(function($type, $line) {
48 48
             $this->line($line);
49 49
         });
50 50
     }
Please login to merge, or discard this patch.
src/Application/Kernel.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\Application;
6 6
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      *
65 65
      * @return Session|null
66 66
      */
67
-    public function getSession(): ?Session
67
+    public function getSession(): ? Session
68 68
     {
69 69
         return $this->session;
70 70
     }
Please login to merge, or discard this patch.