@@ -35,8 +35,7 @@ |
||
| 35 | 35 | } |
| 36 | 36 | } |
| 37 | 37 | $this->workingConditions = $conditions; |
| 38 | - } |
|
| 39 | - else { |
|
| 38 | + } else { |
|
| 40 | 39 | $this->workingConditions = $this->dirtFilterConditions; |
| 41 | 40 | } |
| 42 | 41 | } |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | use EmmetBlue\Core\Builder\BuilderFactory as Builder; |
| 12 | 12 | use EmmetBlue\Core\Factory\DatabaseConnectionFactory as DBConnectionFactory; |
| 13 | 13 | use EmmetBlue\Core\Builder\QueryBuilder\QueryBuilder as QB; |
| 14 | -use EmmetBlue\Core\Exception\SQLException; |
|
| 15 | 14 | |
| 16 | 15 | /** |
| 17 | 16 | * Class ErrorLog |
@@ -71,8 +71,7 @@ |
||
| 71 | 71 | try |
| 72 | 72 | { |
| 73 | 73 | $this->connectionObject = new \PDO("sqlsrv:Server=$server;Database=$database;ConnectionPooling=0", $username, $password); |
| 74 | - } |
|
| 75 | - catch (\PDOException $e) |
|
| 74 | + } catch (\PDOException $e) |
|
| 76 | 75 | { |
| 77 | 76 | throw new SQLException("Unable to connect to database", 400, $e); |
| 78 | 77 | } |
@@ -67,8 +67,7 @@ |
||
| 67 | 67 | try |
| 68 | 68 | { |
| 69 | 69 | $this->connectionObject = new \PDO("sqlite:$dbLocation"); |
| 70 | - } |
|
| 71 | - catch (\PDOException $e) |
|
| 70 | + } catch (\PDOException $e) |
|
| 72 | 71 | { |
| 73 | 72 | throw new SQLException("Unable to connect to database", 400, $e); |
| 74 | 73 | } |
@@ -60,8 +60,7 @@ |
||
| 60 | 60 | $lastInsertId = ($connection->query("SELECT CAST(COALESCE(SCOPE_IDENTITY(), @@IDENTITY) AS int) as id")->fetchColumn()); |
| 61 | 61 | |
| 62 | 62 | return [$result, "lastInsertId"=>$lastInsertId]; |
| 63 | - } |
|
| 64 | - catch (\PDOException $e) |
|
| 63 | + } catch (\PDOException $e) |
|
| 65 | 64 | { |
| 66 | 65 | throw new SQLException(sprintf( |
| 67 | 66 | "%s", |
@@ -66,8 +66,7 @@ |
||
| 66 | 66 | try |
| 67 | 67 | { |
| 68 | 68 | $this->connectionObject = new \PDO("mysql:host=$host;dbname=$database;", $username, $password); |
| 69 | - } |
|
| 70 | - catch (\PDOException $e) |
|
| 69 | + } catch (\PDOException $e) |
|
| 71 | 70 | { |
| 72 | 71 | throw new SQLException("Unable to connect to database", 400, $e); |
| 73 | 72 | } |