Completed
Push — master ( cea07d...f59d63 )
by Christopher
04:21 queued 01:08
created
src/Connector/MySQLConnector.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             $this->connection,
87 87
         ];
88 88
 
89
-        $outer = Loop\periodic($this->poll, function () use (&$outer, $links, $errors, $rejects, $query, $deferred) {
89
+        $outer = Loop\periodic($this->poll, function() use (&$outer, $links, $errors, $rejects, $query, $deferred) {
90 90
             if ($this->ready) {
91 91
                 $this->ready = false;
92 92
                 $outer->stop();
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                     return $deferred->reject($this->connection->error);
99 99
                 }
100 100
 
101
-                $inner = Loop\periodic($this->poll, function () use (&$inner, $links, $errors, $rejects, $deferred) {
101
+                $inner = Loop\periodic($this->poll, function() use (&$inner, $links, $errors, $rejects, $deferred) {
102 102
                     if (mysqli_poll($links, $errors, $rejects, $this->poll)) {
103 103
                         $inner->stop();
104 104
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
      *
131 131
      * @param mixed $value
132 132
      *
133
-     * @return mixed
133
+     * @return string
134 134
      */
135 135
     public function escape($value)
136 136
     {
Please login to merge, or discard this patch.
src/Manager.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function first()
50 50
     {
51
-        return Coroutine\create(function () {
51
+        return Coroutine\create(function() {
52 52
             $rows = (yield $this->limit(1)->get());
53 53
             yield reset($rows);
54 54
         });
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function get()
61 61
     {
62
-        return Coroutine\create(function () {
62
+        return Coroutine\create(function() {
63 63
             yield $this->connector->query(
64 64
                 $this->interpolate($this->builder->build())
65 65
             );
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     {
76 76
         list($statement, $values) = $build;
77 77
 
78
-        return preg_replace_callback("/\\:([_0-9a-zA-Z]+)/", function ($matches) use ($values) {
78
+        return preg_replace_callback("/\\:([_0-9a-zA-Z]+)/", function($matches) use ($values) {
79 79
             return "'" . $this->connector->escape($values[$matches[1]]) . "'";
80 80
         }, $statement);
81 81
     }
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      */
88 88
     public function insert(array $data)
89 89
     {
90
-        return Coroutine\create(function () use ($data) {
90
+        return Coroutine\create(function() use ($data) {
91 91
             yield $this->connector->query(
92 92
                 $this->interpolate($this->builder->insert($data)->build())
93 93
             );
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public function update(array $data)
103 103
     {
104
-        return Coroutine\create(function () use ($data) {
104
+        return Coroutine\create(function() use ($data) {
105 105
             yield $this->connector->query(
106 106
                 $this->interpolate($this->builder->update($data)->build())
107 107
             );
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public function delete()
115 115
     {
116
-        return Coroutine\create(function () {
116
+        return Coroutine\create(function() {
117 117
             yield $this->connector->query(
118 118
                 $this->interpolate($this->builder->delete()->build())
119 119
             );
Please login to merge, or discard this patch.