Skip to content

Commit

Permalink
Fix tabs → spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed May 16, 2017
1 parent 47357f2 commit fdf18de
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions test/Loop/UvLoopDestructShutdown.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ include __DIR__.'/../../vendor/autoload.php';

use Amp\Loop;

Loop::run(function() {
Loop::setState('test', new class {
private $handle;
function __construct() {
$this->handle = Loop::repeat(10, function() {});
}
function __destruct() {
Loop::cancel($this->handle);
print "ok";
}
});
Loop::delay(0, [Loop::class, "stop"]);
Loop::run(function () {
Loop::setState('test', new class {
private $handle;
public function __construct() {
$this->handle = Loop::repeat(10, function () {});
}
public function __destruct() {
Loop::cancel($this->handle);
print "ok";
}
});
Loop::delay(0, [Loop::class, "stop"]);
});

?>
Expand Down

0 comments on commit fdf18de

Please sign in to comment.