Remove the last of the one line if statements
This commit is contained in:
parent
61112ffc03
commit
c0674d5faa
@ -584,7 +584,10 @@ abstract class AbstractDriver extends \PDO implements DriverInterface {
|
||||
public function insert_batch($table, $data=array())
|
||||
{
|
||||
$first_row = current($data);
|
||||
if ( ! is_array($first_row)) return NULL;
|
||||
if ( ! is_array($first_row))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// Values for insertion
|
||||
$vals = array();
|
||||
|
@ -221,7 +221,10 @@ final class ConnectionManager {
|
||||
*/
|
||||
private function create_dsn($dbtype, \stdClass $params)
|
||||
{
|
||||
if (strtolower($dbtype) === 'pdo_firebird') $dbtype = 'firebird';
|
||||
if (strtolower($dbtype) === 'pdo_firebird')
|
||||
{
|
||||
$dbtype = 'firebird';
|
||||
}
|
||||
|
||||
$pairs = array();
|
||||
|
||||
|
@ -186,7 +186,10 @@ class Driver extends \Query\AbstractDriver {
|
||||
public function query($sql = '')
|
||||
{
|
||||
|
||||
if (empty($sql)) throw new \PDOException("Query method requires an sql query!", 0, NULL);
|
||||
if (empty($sql))
|
||||
{
|
||||
throw new \PDOException("Query method requires an sql query!", 0, NULL);
|
||||
}
|
||||
|
||||
$this->statement_link = (isset($this->trans))
|
||||
? \fbird_query($this->trans, $sql)
|
||||
|
Loading…
Reference in New Issue
Block a user