@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | */ |
75 | 75 | public function first() |
76 | 76 | { |
77 | - return Coroutine\create(function () { |
|
77 | + return Coroutine\create(function() { |
|
78 | 78 | $rows = (yield $this->limit(1)->get()); |
79 | 79 | yield reset($rows); |
80 | 80 | }); |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | */ |
86 | 86 | public function get() |
87 | 87 | { |
88 | - return Coroutine\create(function () { |
|
88 | + return Coroutine\create(function() { |
|
89 | 89 | $builder = $this->applyOperationsTo($this->builder); |
90 | 90 | |
91 | 91 | yield $this->connector->query( |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | |
106 | 106 | $pattern = "/\\:([_0-9a-zA-Z]+)/"; |
107 | 107 | |
108 | - $replacement = function ($matches) use ($values) { |
|
108 | + $replacement = function($matches) use ($values) { |
|
109 | 109 | return $this->quote($values[$matches[1]]); |
110 | 110 | }; |
111 | 111 | |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | */ |
130 | 130 | public function insert(array $data) |
131 | 131 | { |
132 | - return Coroutine\create(function () use ($data) { |
|
132 | + return Coroutine\create(function() use ($data) { |
|
133 | 133 | $builder = $this->builder->insert($data); |
134 | 134 | $builder = $this->applyOperationsTo($builder); |
135 | 135 | |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | */ |
162 | 162 | public function update(array $data) |
163 | 163 | { |
164 | - return Coroutine\create(function () use ($data) { |
|
164 | + return Coroutine\create(function() use ($data) { |
|
165 | 165 | $builder = $this->builder->update($data); |
166 | 166 | $builder = $this->applyOperationsTo($builder); |
167 | 167 | |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | */ |
177 | 177 | public function delete() |
178 | 178 | { |
179 | - return Coroutine\create(function () { |
|
179 | + return Coroutine\create(function() { |
|
180 | 180 | $builder = $this->builder->delete(); |
181 | 181 | $builder = $this->applyOperationsTo($builder); |
182 | 182 |