1
0
mirror of synced 2025-02-13 02:39:25 +03:00

Clean elses

This commit is contained in:
Gabriel Caruso 2017-12-14 05:55:54 -02:00
parent a352c214a0
commit d0d802309c
3 changed files with 6 additions and 6 deletions

View File

@ -617,9 +617,9 @@ class Expr
return (string) $literal; return (string) $literal;
} else if (is_bool($literal)) { } else if (is_bool($literal)) {
return $literal ? "true" : "false"; return $literal ? "true" : "false";
} else {
return "'" . str_replace("'", "''", $literal) . "'";
} }
return "'" . str_replace("'", "''", $literal) . "'";
} }
/** /**

View File

@ -48,9 +48,9 @@ class DriverMock implements Driver
{ {
if ($this->_schemaManagerMock == null) { if ($this->_schemaManagerMock == null) {
return new SchemaManagerMock($conn); return new SchemaManagerMock($conn);
} else {
return $this->_schemaManagerMock;
} }
return $this->_schemaManagerMock;
} }
/* MOCK API */ /* MOCK API */

View File

@ -53,9 +53,9 @@ class StatementArrayMock extends StatementMock
if ($current) { if ($current) {
next($this->_result); next($this->_result);
return reset($current); return reset($current);
} else {
return false;
} }
return false;
} }
public function rowCount() public function rowCount()