Code formatting
This commit is contained in:
@@ -55,8 +55,9 @@ class Database
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get the PDO connection from an
|
// Get the PDO connection from an
|
||||||
if ($connection instanceof ConnectionWrapper)
|
if ($connection instanceof ConnectionWrapper) {
|
||||||
$connection = $connection->getWrappedConnection();
|
$connection = $connection->getWrappedConnection();
|
||||||
|
}
|
||||||
|
|
||||||
if (!$connection instanceof \PDO) {
|
if (!$connection instanceof \PDO) {
|
||||||
throw new \InvalidArgumentException("A PDO connection shoud be provided");
|
throw new \InvalidArgumentException("A PDO connection shoud be provided");
|
||||||
@@ -108,7 +109,8 @@ class Database
|
|||||||
* @param string $sql SQL query
|
* @param string $sql SQL query
|
||||||
* @param array $args SQL request parameters (PDO style)
|
* @param array $args SQL request parameters (PDO style)
|
||||||
*/
|
*/
|
||||||
public function execute($sql, $args = array()) {
|
public function execute($sql, $args = array())
|
||||||
|
{
|
||||||
$this->connection->query($sql, $args);
|
$this->connection->query($sql, $args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user