Passed
Push — master ( 31b4e9...ba5ec6 )
by PHPinnacle
02:42
created
examples/timeout.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,10 +6,10 @@
 block discarded – undo
6 6
 
7 7
 require __DIR__ . '/../vendor/autoload.php';
8 8
 
9
-Amp\Loop::run(function () {
9
+Amp\Loop::run(function() {
10 10
     $dispatcher = Dispatcher::instance();
11 11
     $dispatcher
12
-        ->register('endless', function (string $sign) {
12
+        ->register('endless', function(string $sign) {
13 13
             while (true) {
14 14
                 yield new Delayed(100);
15 15
 
Please login to merge, or discard this patch.
examples/cancel.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,10 +5,10 @@  discard block
 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
     $dispatcher = Dispatcher::instance();
10 10
     $dispatcher
11
-        ->register('endless', function (string $sign) {
11
+        ->register('endless', function(string $sign) {
12 12
             while (true) {
13 13
                 yield new Delayed(100);
14 14
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     try {
21 21
         $task = $dispatcher->dispatch('endless', '.');
22 22
 
23
-        Amp\Loop::delay(500, function () use ($task) {
23
+        Amp\Loop::delay(500, function() use ($task) {
24 24
             $task->cancel();
25 25
         });
26 26
 
Please login to merge, or discard this patch.
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/UnknownSignal.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/TaskTimeout.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/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/Token.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
  * file that was distributed with this source code.
8 8
  */
9 9
 
10
-declare(strict_types = 1);
10
+declare(strict_types=1);
11 11
 
12 12
 namespace PHPinnacle\Ensign;
13 13
 
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.