Passed
Push — master ( 2d6ed9...31b4e9 )
by PHPinnacle
05:04
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.