fix some CS

This commit is contained in:
Manuel Raynaud
2013-01-09 09:13:25 +01:00
parent a168082d54
commit 4e21c25867
26 changed files with 422 additions and 346 deletions

View File

@@ -4,7 +4,8 @@ namespace Thelia\Database\NotORM;
class Result extends \NotORM_Result
{
protected function query($query, $parameters) {
protected function query($query, $parameters)
{
if ($this->notORM->debug) {
if (!is_callable($this->notORM->debug)) {
$debug = "$query;";
@@ -22,9 +23,8 @@ class Result extends \NotORM_Result
return false;
}
}
if($this->notORM->logger !== false)
{
if ($this->notORM->logger !== false) {
$this->notORM->logger->debug($query);
$this->notORM->logger->debug($parameters);
}
@@ -34,8 +34,10 @@ class Result extends \NotORM_Result
$this->notORM->logger->fatal($this->notORM->errorCode());
$this->notORM->logger->fatal(print_r($this->notORM->errorInfo(), true));
$this->notORM->logger->fatal(print_r($return->errorInfo(), true));
return false;
}
return $return;
}
}
}