From c0674d5faa1ca16775611331181bc8446efb97ce Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Wed, 11 Nov 2015 15:44:24 -0500 Subject: [PATCH] Remove the last of the one line if statements --- src/Query/AbstractDriver.php | 5 ++++- src/Query/ConnectionManager.php | 5 ++++- src/Query/Drivers/Firebird/Driver.php | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/Query/AbstractDriver.php b/src/Query/AbstractDriver.php index d3a0ba4..3746b1e 100644 --- a/src/Query/AbstractDriver.php +++ b/src/Query/AbstractDriver.php @@ -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(); diff --git a/src/Query/ConnectionManager.php b/src/Query/ConnectionManager.php index 73ad086..a305179 100644 --- a/src/Query/ConnectionManager.php +++ b/src/Query/ConnectionManager.php @@ -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(); diff --git a/src/Query/Drivers/Firebird/Driver.php b/src/Query/Drivers/Firebird/Driver.php index 4fac9e7..9e6b605 100644 --- a/src/Query/Drivers/Firebird/Driver.php +++ b/src/Query/Drivers/Firebird/Driver.php @@ -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)