Test Failed
Push — master ( d72e88...1b7e37 )
by Maksim
02:00
created
src/Database/Sqlite/Adapter.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -178,11 +178,14 @@  discard block
 block discarded – undo
178 178
     {
179 179
         if ($value instanceof \DateTime) {
180 180
             $value = $value->format($format);
181
-        } elseif ($value === null) {
181
+        }
182
+        elseif ($value === null) {
182 183
             $value = date($format);
183
-        } elseif (is_numeric($value)) {
184
+        }
185
+        elseif (is_numeric($value)) {
184 186
             $value = date($format, $value);
185
-        } elseif (is_string($value)) {
187
+        }
188
+        elseif (is_string($value)) {
186 189
             $value = date($format, strtotime($value));
187 190
         }
188 191
         return (string)$value;
@@ -219,7 +222,8 @@  discard block
 block discarded – undo
219 222
                 $sql .= ' OFFSET ' . $offset;
220 223
             }
221 224
             return ' ' . $sql;
222
-        } elseif ($this->hasOffset($offset)) {
225
+        }
226
+        elseif ($this->hasOffset($offset)) {
223 227
             // limit is not optional in SQLite
224 228
             // http://www.sqlite.org/syntaxdiagrams.html#select-stmt
225 229
             // If the LIMIT expression evaluates to a negative value, then there
Please login to merge, or discard this patch.