1
0
mirror of synced 2025-03-11 07:16:05 +03:00

Merge pull request 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
lib/Doctrine/ORM/Query
tests/Doctrine/Tests/Mocks

@ -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) . "'";
}
/**

@ -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 */

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