Passed
Push — master ( f832ac...3bedb1 )
by PHPinnacle
05:03 queued 02:22
created
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.
src/Processor/SimpleProcessor.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\Processor;
14 14
 
Please login to merge, or discard this patch.
examples/parallel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@
 block discarded – undo
11 11
     exit(1);
12 12
 }
13 13
 
14
-Amp\Loop::run(function () {
14
+Amp\Loop::run(function() {
15 15
     $processor = new Processor\ParallelProcessor();
16 16
     $dispatcher = new Dispatcher(new Kernel($processor));
17
-    $dispatcher->register('load', function ($url) {
17
+    $dispatcher->register('load', function($url) {
18 18
         echo "Start getting: {$url}" . \PHP_EOL;
19 19
 
20 20
         file_get_contents($url);
Please login to merge, or discard this patch.
examples/events.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
     public function __invoke(Publish $message)
39 39
     {
40
-        $actions = \array_map(function ($listener) use ($message) {
40
+        $actions = \array_map(function($listener) use ($message) {
41 41
             return $this->kernel->execute($listener, $message->arguments);
42 42
         }, $this->listeners[$message->signal] ?? []);
43 43
 
@@ -45,25 +45,25 @@  discard block
 block discarded – undo
45 45
     }
46 46
 }
47 47
 
48
-Amp\Loop::run(function () {
48
+Amp\Loop::run(function() {
49 49
     $kernel = new Kernel();
50 50
     $publisher = new Publisher($kernel);
51 51
     $publisher
52
-        ->listen('print', function ($num) {
52
+        ->listen('print', function($num) {
53 53
             for ($i = 0; $i < $num; $i++) {
54 54
                 echo '-';
55 55
 
56 56
                 yield new Delayed(100);
57 57
             }
58 58
         })
59
-        ->listen('print', function ($num) {
59
+        ->listen('print', function($num) {
60 60
             for ($i = 0; $i < $num; $i++) {
61 61
                 echo '+';
62 62
 
63 63
                 yield new Delayed(100);
64 64
             }
65 65
         })
66
-        ->listen('print', function ($num) {
66
+        ->listen('print', function($num) {
67 67
             for ($i = 0; $i < $num; $i++) {
68 68
                 echo '*';
69 69
 
Please login to merge, or discard this patch.
src/Processor/ParallelProcessor.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\Processor;
14 14
 
Please login to merge, or discard this patch.