1
0
mirror of synced 2025-03-06 04:46:13 +03:00

Merge pull request #6889 from carusogabriel/clean-elses

Clean elses
This commit is contained in:
Michael Moravec 2017-12-16 05:30:33 +01:00 committed by GitHub
commit aacea65519
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -617,9 +617,9 @@ class Expr
return (string) $literal;
} else if (is_bool($literal)) {
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) {
return new SchemaManagerMock($conn);
} else {
return $this->_schemaManagerMock;
}
return $this->_schemaManagerMock;
}
/* MOCK API */

View File

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