Completed
Push — master ( c64d25...ac7c6c )
by Christopher
19:43 queued 17:08
created
tests/ManagerFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 {
15 15
     public function testInsert()
16 16
     {
17
-        Coroutine\create(function () {
17
+        Coroutine\create(function() {
18 18
             $factory = new ManagerFactory();
19 19
 
20 20
             $manager = $factory->create([
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     private function assertEqualsAfterDelay($delay, $expected, $actual)
54 54
     {
55
-        Loop\timer($delay, function () use ($expected, $actual) {
55
+        Loop\timer($delay, function() use ($expected, $actual) {
56 56
             $this->assertEquals($expected, $actual);
57 57
             Loop\stop();
58 58
         });
Please login to merge, or discard this patch.
src/Manager.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     public function first()
87 87
     {
88
-        return Coroutine\create(function () {
88
+        return Coroutine\create(function() {
89 89
             $rows = (yield $this->limit(1)->get());
90 90
             yield reset($rows);
91 91
         });
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      */
97 97
     public function get()
98 98
     {
99
-        return Coroutine\create(function () {
99
+        return Coroutine\create(function() {
100 100
             $builder = $this->applyOperationsTo($this->builder);
101 101
 
102 102
             list($statement, $values) = $builder->build();
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      */
112 112
     public function insert(array $data)
113 113
     {
114
-        return Coroutine\create(function () use ($data) {
114
+        return Coroutine\create(function() use ($data) {
115 115
             $builder = $this->builder->insert($data);
116 116
             $builder = $this->applyOperationsTo($builder);
117 117
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     public function update(array $data)
144 144
     {
145
-        return Coroutine\create(function () use ($data) {
145
+        return Coroutine\create(function() use ($data) {
146 146
             $builder = $this->builder->update($data);
147 147
             $builder = $this->applyOperationsTo($builder);
148 148
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      */
157 157
     public function delete()
158 158
     {
159
-        return Coroutine\create(function () {
159
+        return Coroutine\create(function() {
160 160
             $builder = $this->builder->delete();
161 161
             $builder = $this->applyOperationsTo($builder);
162 162
 
Please login to merge, or discard this patch.
src/Connector/DoormanConnector.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -62,21 +62,21 @@  discard block
 block discarded – undo
62 62
         $this->connectRemit($config);
63 63
         $this->connectDoorman($config);
64 64
 
65
-        $this->server->addListener("r", function ($result, $id) {
65
+        $this->server->addListener("r", function($result, $id) {
66 66
             if (isset($this->deferred[$id])) {
67 67
                 $this->deferred[$id]->resolve($result);
68 68
                 unset($this->deferred[$id]);
69 69
             }
70 70
         });
71 71
 
72
-        $this->server->addListener("e", function ($error, $id) {
72
+        $this->server->addListener("e", function($error, $id) {
73 73
             if (isset($this->deferred[$id])) {
74 74
                 $this->deferred[$id]->reject($error);
75 75
                 unset($this->deferred[$id]);
76 76
             }
77 77
         });
78 78
 
79
-        Loop\periodic(0, function () {
79
+        Loop\periodic(0, function() {
80 80
             $this->server->tick();
81 81
         });
82 82
 
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
         $client = $config["remit"]["client"];
162 162
 
163 163
         if ($config["remit"]["driver"] === "zeromq") {
164
-            $task = new ProcessCallbackTask(function () use ($config, $server, $client) {
164
+            $task = new ProcessCallbackTask(function() use ($config, $server, $client) {
165 165
                 $config = array_merge([
166 166
                     "host" => "127.0.0.1",
167 167
                     "port" => 3306,
@@ -202,11 +202,11 @@  discard block
 block discarded – undo
202 202
                     )
203 203
                 );
204 204
 
205
-                $remitServer->addListener("q", function ($query, $values, $id) use ($remitClient, $connection) {
205
+                $remitServer->addListener("q", function($query, $values, $id) use ($remitClient, $connection) {
206 206
                     $remitClient->emit("r", [$connection->fetchAll($query, $values), $id]);
207 207
                 });
208 208
 
209
-                Loop\periodic(0, function () use ($remitServer) {
209
+                Loop\periodic(0, function() use ($remitServer) {
210 210
                     $remitServer->tick();
211 211
                 });
212 212
 
Please login to merge, or discard this patch.