Passed
Pull Request — master (#7)
by PHPinnacle
02:31
created
src/Contract/Dispatcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
  * file that was distributed with this source code.
9 9
  */
10 10
 
11
-declare(strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace PHPinnacle\Ensign\Contract;
14 14
 
Please login to merge, or discard this patch.
src/Contract/Processor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
  * file that was distributed with this source code.
9 9
  */
10 10
 
11
-declare(strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace PHPinnacle\Ensign\Contract;
14 14
 
Please login to merge, or discard this patch.
examples/pool.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,10 +5,10 @@
 block discarded – undo
5 5
 
6 6
 require __DIR__ . '/../vendor/autoload.php';
7 7
 
8
-Amp\Loop::run(function () {
8
+Amp\Loop::run(function() {
9 9
     $processor = new Processor\ParallelProcessor();
10 10
     $dispatcher = new Dispatcher($processor);
11
-    $dispatcher->register('load', function ($url) {
11
+    $dispatcher->register('load', function($url) {
12 12
         echo "Start getting: {$url}" . \PHP_EOL;
13 13
 
14 14
         file_get_contents($url);
Please login to merge, or discard this patch.
src/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
  * file that was distributed with this source code.
9 9
  */
10 10
 
11
-declare(strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 use PHPinnacle\Ensign\Dispatcher;
14 14
 use PHPinnacle\Ensign\Action;
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             continue;
57 57
         }
58 58
 
59
-        $handler = static function (string $watcherId, int $sigNo, $sigInfo = null) use ($dispatcher, $signal) {
59
+        $handler = static function(string $watcherId, int $sigNo, $sigInfo = null) use ($dispatcher, $signal) {
60 60
             yield $dispatcher->dispatch($signal, $sigNo, $sigInfo, $watcherId);
61 61
         };
62 62
 
Please login to merge, or discard this patch.
src/Exception/ActionTimeout.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
  * file that was distributed with this source code.
9 9
  */
10 10
 
11
-declare(strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace PHPinnacle\Ensign\Exception;
14 14
 
Please login to merge, or discard this patch.
src/Exception/ActionCanceled.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
  * file that was distributed with this source code.
9 9
  */
10 10
 
11
-declare(strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace PHPinnacle\Ensign\Exception;
14 14
 
Please login to merge, or discard this patch.
src/Action.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
  * file that was distributed with this source code.
9 9
  */
10 10
 
11
-declare(strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace PHPinnacle\Ensign;
14 14
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         $deferred = new Deferred;
76 76
         $resolved = false;
77 77
 
78
-        $watcher = Loop::delay($timeout, function () use ($deferred, &$resolved) {
78
+        $watcher = Loop::delay($timeout, function() use ($deferred, &$resolved) {
79 79
             if ($resolved) {
80 80
                 return;
81 81
             }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         });
87 87
 
88 88
         $promise = $this->promise;
89
-        $promise->onResolve(function () use ($deferred, $watcher, &$resolved) {
89
+        $promise->onResolve(function() use ($deferred, $watcher, &$resolved) {
90 90
             if ($resolved) {
91 91
                 return;
92 92
             }
Please login to merge, or discard this patch.
src/Kernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         $id = UUID::random();
57 57
 
58 58
         $token   = new Token($id);
59
-        $promise = new LazyPromise(function () use ($handler, $arguments, $token) {
59
+        $promise = new LazyPromise(function() use ($handler, $arguments, $token) {
60 60
             return $this->adapt($this->processor->execute($handler, $arguments), $token);
61 61
         });
62 62
 
Please login to merge, or discard this patch.
src/Dispatcher.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
  * file that was distributed with this source code.
9 9
  */
10 10
 
11
-declare(strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace PHPinnacle\Ensign;
14 14
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     {
40 40
         $this->handlers[$signal] = $handler;
41 41
 
42
-        $this->kernel->interrupt($signal, function (...$arguments) use ($signal) {
42
+        $this->kernel->interrupt($signal, function(...$arguments) use ($signal) {
43 43
             return $this->dispatch($signal, ...$arguments);
44 44
         });
45 45
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             $signal = \get_class($signal);
58 58
         }
59 59
 
60
-        $handler = $this->handlers[$signal] ?? static function () use ($signal) {
60
+        $handler = $this->handlers[$signal] ?? static function() use ($signal) {
61 61
             throw new Exception\UnknownSignal($signal);
62 62
         };
63 63
 
Please login to merge, or discard this patch.