Completed
Pull Request — master (#125)
by
unknown
01:27
created
src/Drivers/ConnectionBase.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
         } elseif (is_float($value)) {
143 143
             // Convert to non-locale aware float to prevent possible commas
144 144
             return sprintf('%F', $value);
145
-        }  elseif (is_array($value)) {
145
+        } elseif (is_array($value)) {
146 146
             // Supports MVA attributes
147 147
             return '('.implode(',', $this->quoteArr($value)).')';
148 148
         }
Please login to merge, or discard this patch.
src/Drivers/MultiResultSetBase.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      * (PHP 5 &gt;= 5.0.0)<br/>
125 125
      * Return the key of the current element
126 126
      * @link http://php.net/manual/en/iterator.key.php
127
-     * @return mixed scalar on success, or null on failure.
127
+     * @return integer scalar on success, or null on failure.
128 128
      */
129 129
     public function key()
130 130
     {
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      * (PHP 5 &gt;= 5.0.0)<br/>
181 181
      * Return the current element
182 182
      * @link http://php.net/manual/en/iterator.current.php
183
-     * @return mixed Can return any type.
183
+     * @return ResultSetInterface|null Can return any type.
184 184
      */
185 185
     public function current()
186 186
     {
Please login to merge, or discard this patch.
src/Drivers/Pdo/Connection.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      * @param string $query The query string
29 29
      *
30 30
      * @throws DatabaseException
31
-     * @return array|int The result array or number of rows affected
31
+     * @return ResultSet The result array or number of rows affected
32 32
      */
33 33
     public function query($query)
34 34
     {
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,8 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         try{
40 40
             $stm->execute();
41
-        }
42
-        catch(\PDOException $exception){
41
+        } catch(\PDOException $exception){
43 42
             throw new DatabaseException($exception->getMessage() . ' [' . $query . ']');
44 43
         }
45 44
 
@@ -118,8 +117,7 @@  discard block
 block discarded – undo
118 117
             }
119 118
 
120 119
             return MultiResultSet::make($statement);
121
-        }
122
-        else
120
+        } else
123 121
         {
124 122
             foreach($queue as $sql)
125 123
             {
Please login to merge, or discard this patch.
src/Drivers/ResultSetBase.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@
 block discarded – undo
182 182
      * (PHP 5 &gt;= 5.0.0)<br/>
183 183
      * Return the key of the current element
184 184
      * @link http://php.net/manual/en/iterator.key.php
185
-     * @return mixed scalar on success, or null on failure.
185
+     * @return integer scalar on success, or null on failure.
186 186
      */
187 187
     public function key()
188 188
     {
Please login to merge, or discard this patch.