| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 2 | Features | 2 |
| 1 | <?php |
||
| 65 | public function get() |
||
| 66 | { |
||
| 67 | return Coroutine\create(function () { |
||
| 68 | list($statement, $values) = $this->builder->build(); |
||
| 69 | |||
| 70 | $query = preg_replace_callback("/\\:([_0-9a-zA-Z]+)/", function($matches) use ($values) { |
||
| 71 | return "'" . $this->connector->escape($values[$matches[1]]) . "'"; |
||
| 72 | }, $statement); |
||
| 73 | |||
| 74 | yield $this->connector->query($query); |
||
| 75 | }); |
||
| 76 | } |
||
| 77 | |||
| 86 |