@@ -55,8 +55,7 @@ discard block |
||
| 55 | 55 | * Class QueryBuilder |
| 56 | 56 | * @package Platine\Database |
| 57 | 57 | */ |
| 58 | -class QueryBuilder |
|
| 59 | -{ |
|
| 58 | +class QueryBuilder { |
|
| 60 | 59 | |
| 61 | 60 | /** |
| 62 | 61 | * The Connection instance |
@@ -74,8 +73,7 @@ discard block |
||
| 74 | 73 | * Class constructor |
| 75 | 74 | * @param Connection $connection |
| 76 | 75 | */ |
| 77 | - public function __construct(Connection $connection) |
|
| 78 | - { |
|
| 76 | + public function __construct(Connection $connection) { |
|
| 79 | 77 | $this->connection = $connection; |
| 80 | 78 | $this->schema = $this->connection->getSchema(); |
| 81 | 79 | } |
@@ -114,8 +112,7 @@ discard block |
||
| 114 | 112 | * @param callable $callback |
| 115 | 113 | * @return mixed |
| 116 | 114 | */ |
| 117 | - public function transaction(callable $callback) |
|
| 118 | - { |
|
| 115 | + public function transaction(callable $callback) { |
|
| 119 | 116 | return $this->connection->transaction($callback, $this); |
| 120 | 117 | } |
| 121 | 118 | |
@@ -38,7 +38,6 @@ |
||
| 38 | 38 | * Class QueryException |
| 39 | 39 | * @package Platine\Database\Exception |
| 40 | 40 | */ |
| 41 | -class QueryException extends RuntimeException |
|
| 42 | -{ |
|
| 41 | +class QueryException extends RuntimeException { |
|
| 43 | 42 | |
| 44 | 43 | } |
@@ -38,7 +38,6 @@ |
||
| 38 | 38 | * Class QueryPrepareException |
| 39 | 39 | * @package Platine\Database\Exception |
| 40 | 40 | */ |
| 41 | -class QueryPrepareException extends RuntimeException |
|
| 42 | -{ |
|
| 41 | +class QueryPrepareException extends RuntimeException { |
|
| 43 | 42 | |
| 44 | 43 | } |
@@ -38,7 +38,6 @@ |
||
| 38 | 38 | * Class TransactionException |
| 39 | 39 | * @package Platine\Database\Exception |
| 40 | 40 | */ |
| 41 | -class TransactionException extends RuntimeException |
|
| 42 | -{ |
|
| 41 | +class TransactionException extends RuntimeException { |
|
| 43 | 42 | |
| 44 | 43 | } |