Passed
Push — master ( 31b4e9...ba5ec6 )
by PHPinnacle
02:42
created
examples/pcntl.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,15 +2,15 @@
 block discarded – undo
2 2
 
3 3
 require __DIR__ . '/../vendor/autoload.php';
4 4
 
5
-Amp\Loop::run(function () {
6
-    \ensign_signal('wow', function ($sigNo) {
5
+Amp\Loop::run(function() {
6
+    \ensign_signal('wow', function($sigNo) {
7 7
         echo \sprintf('System signal "%d" received.' . \PHP_EOL, $sigNo);
8 8
     });
9 9
 
10 10
     $signals = \pcntl_signal_list(['SIGINT']);
11 11
 
12 12
     foreach ($signals as $signal) {
13
-        \ensign_signal($signal, function ($sigNo) {
13
+        \ensign_signal($signal, function($sigNo) {
14 14
             yield 'wow' => $sigNo;
15 15
         });
16 16
     }
Please login to merge, or discard this patch.
src/Exception/TaskCanceled.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/Dispatcher.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
 namespace PHPinnacle\Ensign;
14 14
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     {
60 60
         $this->handlers[$signal] = $handler instanceof Handler ? $handler : Handler::recognize($handler);
61 61
 
62
-        $this->processor->interrupt($signal, function (...$arguments) use ($signal) {
62
+        $this->processor->interrupt($signal, function(...$arguments) use ($signal) {
63 63
             return $this->dispatch($signal, ...$arguments);
64 64
         });
65 65
 
Please login to merge, or discard this patch.
src/Handler.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
 namespace PHPinnacle\Ensign;
14 14
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public static function error(\Throwable $error): self
55 55
     {
56
-        return new self(function () use ($error) {
56
+        return new self(function() use ($error) {
57 57
             throw $error;
58 58
         });
59 59
     }
Please login to merge, or discard this patch.