Completed
Push — master ( eb8c08...b0465b )
by Christopher
02:02
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/DoormanConnectorHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,11 +59,11 @@
 block discarded – undo
59 59
             new PDO($this->newConnectionString($config), $config["username"], $config["password"])
60 60
         );
61 61
 
62
-        $server->addListener("q", function ($query, $values, $id) use ($client, $connection) {
62
+        $server->addListener("q", function($query, $values, $id) use ($client, $connection) {
63 63
             $client->emit("r", [$connection->fetchAll($query, $values), $id]);
64 64
         });
65 65
 
66
-        Loop\periodic(0, function () use ($server) {
66
+        Loop\periodic(0, function() use ($server) {
67 67
             $server->tick();
68 68
         });
69 69
 
Please login to merge, or discard this patch.
src/Connector/DoormanConnector.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,21 +65,21 @@
 block discarded – undo
65 65
         $this->validate($config);
66 66
         $this->connectRemit($config);
67 67
 
68
-        $this->server->addListener("r", function ($result, $id) {
68
+        $this->server->addListener("r", function($result, $id) {
69 69
             if (isset($this->deferred[$id])) {
70 70
                 $this->deferred[$id]->resolve($result);
71 71
                 unset($this->deferred[$id]);
72 72
             }
73 73
         });
74 74
 
75
-        $this->server->addListener("e", function ($error, $id) {
75
+        $this->server->addListener("e", function($error, $id) {
76 76
             if (isset($this->deferred[$id])) {
77 77
                 $this->deferred[$id]->reject($error);
78 78
                 unset($this->deferred[$id]);
79 79
             }
80 80
         });
81 81
 
82
-        Loop\periodic(0, function () {
82
+        Loop\periodic(0, function() {
83 83
             $this->server->tick();
84 84
         });
85 85
 
Please login to merge, or discard this patch.