@@ -138,26 +138,26 @@ |
||
| 138 | 138 | ); |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | - $this->server->addListener("r", function ($result, $id) { |
|
| 141 | + $this->server->addListener("r", function($result, $id) { |
|
| 142 | 142 | if (isset($this->deferred[$id])) { |
| 143 | 143 | $this->deferred[$id]->resolve($result); |
| 144 | 144 | unset($this->deferred[$id]); |
| 145 | 145 | } |
| 146 | 146 | }); |
| 147 | 147 | |
| 148 | - $this->server->addListener("e", function ($error, $id) { |
|
| 148 | + $this->server->addListener("e", function($error, $id) { |
|
| 149 | 149 | if (isset($this->deferred[$id])) { |
| 150 | 150 | $this->deferred[$id]->reject($error); |
| 151 | 151 | unset($this->deferred[$id]); |
| 152 | 152 | } |
| 153 | 153 | }); |
| 154 | 154 | |
| 155 | - $this->server->addListener("dd", function () { |
|
| 155 | + $this->server->addListener("dd", function() { |
|
| 156 | 156 | $this->server->disconnect(); |
| 157 | 157 | $this->client->disconnect(); |
| 158 | 158 | }); |
| 159 | 159 | |
| 160 | - Loop\periodic(0, function () { |
|
| 160 | + Loop\periodic(0, function() { |
|
| 161 | 161 | $this->server->tick(); |
| 162 | 162 | }); |
| 163 | 163 | } |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | */ |
| 17 | 17 | public function testInsert(array $config) |
| 18 | 18 | { |
| 19 | - Coroutine\create(function () use ($config) { |
|
| 19 | + Coroutine\create(function() use ($config) { |
|
| 20 | 20 | $factory = new ManagerFactory(); |
| 21 | 21 | $database = $factory->create($config); |
| 22 | 22 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | */ |
| 48 | 48 | private function assertEqualsAfterDelay($delay, $expected, $actual) |
| 49 | 49 | { |
| 50 | - Loop\timer($delay, function () use ($expected, $actual) { |
|
| 50 | + Loop\timer($delay, function() use ($expected, $actual) { |
|
| 51 | 51 | $this->assertEquals($expected, $actual); |
| 52 | 52 | Loop\stop(); |
| 53 | 53 | }); |