Passed
Pull Request — master (#10)
by PHPinnacle
06:17 queued 03:59
created
src/Processor.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
     public function __construct(Executor $executor = null)
40 40
     {
41 41
         $this->executor = $executor ?: new Executor\SimpleExecutor;
42
-        $this->resolver = function (string $interrupt, array $arguments) {
42
+        $this->resolver = function(string $interrupt, array $arguments) {
43 43
             if (!isset($this->interruptions[$interrupt])) {
44 44
                 throw new Exception\UnknownInterrupt($interrupt);
45 45
             }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function execute(callable $handler, array $arguments): Promise
69 69
     {
70
-        return Amp\call(function () use ($handler, $arguments) {
70
+        return Amp\call(function() use ($handler, $arguments) {
71 71
             $result = $this->executor->execute($handler, $arguments);
72 72
 
73 73
             if ($result instanceof \Generator) {
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 Amp\Promise;
14 14
 use PHPinnacle\Ensign\Dispatcher;
@@ -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.