Passed
Push — develop ( e333c2...b3554d )
by nguereza
02:25
created
src/Exception/TransactionException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Query/Select.php 1 patch
Braces   +8 added lines, -16 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@  discard block
 block discarded – undo
54 54
  * Class Select
55 55
  * @package Platine\Database\Query
56 56
  */
57
-class Select extends SelectStatement
58
-{
57
+class Select extends SelectStatement {
59 58
 
60 59
     /**
61 60
      * @var Connection
@@ -82,8 +81,7 @@  discard block
 block discarded – undo
82 81
      *
83 82
      * @return ResultSet
84 83
      */
85
-    public function select($columns = [])
86
-    {
84
+    public function select($columns = []) {
87 85
         parent::select($columns);
88 86
         $driver = $this->connection->getDriver();
89 87
 
@@ -98,8 +96,7 @@  discard block
 block discarded – undo
98 96
      *
99 97
      * @return mixed|false
100 98
      */
101
-    public function column($name)
102
-    {
99
+    public function column($name) {
103 100
         parent::column($name);
104 101
         return $this->getColumnResult();
105 102
     }
@@ -122,8 +119,7 @@  discard block
 block discarded – undo
122 119
      *
123 120
      * @return int|float
124 121
      */
125
-    public function avg($column, bool $distinct = false)
126
-    {
122
+    public function avg($column, bool $distinct = false) {
127 123
         parent::avg($column, $distinct);
128 124
         return $this->getColumnResult();
129 125
     }
@@ -134,8 +130,7 @@  discard block
 block discarded – undo
134 130
      *
135 131
      * @return int|float
136 132
      */
137
-    public function sum($column, bool $distinct = false)
138
-    {
133
+    public function sum($column, bool $distinct = false) {
139 134
         parent::sum($column, $distinct);
140 135
         return $this->getColumnResult();
141 136
     }
@@ -146,8 +141,7 @@  discard block
 block discarded – undo
146 141
      *
147 142
      * @return int|float
148 143
      */
149
-    public function min($column, bool $distinct = false)
150
-    {
144
+    public function min($column, bool $distinct = false) {
151 145
         parent::min($column, $distinct);
152 146
         return $this->getColumnResult();
153 147
     }
@@ -158,8 +152,7 @@  discard block
 block discarded – undo
158 152
      *
159 153
      * @return int|float
160 154
      */
161
-    public function max($column, bool $distinct = false)
162
-    {
155
+    public function max($column, bool $distinct = false) {
163 156
         parent::max($column, $distinct);
164 157
         return $this->getColumnResult();
165 158
     }
@@ -168,8 +161,7 @@  discard block
 block discarded – undo
168 161
      * Return the result set for column
169 162
      * @return mixed
170 163
      */
171
-    protected function getColumnResult()
172
-    {
164
+    protected function getColumnResult() {
173 165
         $driver = $this->connection->getDriver();
174 166
 
175 167
         return $this->connection->column(
Please login to merge, or discard this patch.
src/Connection.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@  discard block
 block discarded – undo
61 61
  * Class Connection
62 62
  * @package Platine\Database
63 63
  */
64
-class Connection
65
-{
64
+class Connection {
66 65
 
67 66
     /**
68 67
      * The PDO instance
@@ -347,8 +346,7 @@  discard block
 block discarded – undo
347 346
      * @return mixed
348 347
      * @throws QueryException
349 348
      */
350
-    public function column(string $sql, array $params = [])
351
-    {
349
+    public function column(string $sql, array $params = []) {
352 350
         $prepared = $this->prepare($sql, $params);
353 351
         $this->execute($prepared);
354 352
 
@@ -401,8 +399,7 @@  discard block
 block discarded – undo
401 399
     /**
402 400
      * {@inheritdoc}
403 401
      */
404
-    public function __sleep()
405
-    {
402
+    public function __sleep() {
406 403
         return [
407 404
             'dsn',
408 405
             'driver',
@@ -416,8 +413,7 @@  discard block
 block discarded – undo
416 413
     /**
417 414
      * {@inheritdoc}
418 415
      */
419
-    public function __wakeup()
420
-    {
416
+    public function __wakeup() {
421 417
         $this->createPDO();
422 418
     }
423 419
 
Please login to merge, or discard this patch.
src/Configuration.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
59 59
  * Class Configuration
60 60
  * @package Platine\Database
61 61
  */
62
-class Configuration extends AbstractConfiguration
63
-{
62
+class Configuration extends AbstractConfiguration {
64 63
     /**
65 64
      * The connection driver to use
66 65
      * @var string
@@ -350,8 +349,7 @@  discard block
 block discarded – undo
350 349
      *
351 350
      * @return mixed
352 351
      */
353
-    public function getAttribute(string $name, $default = null)
354
-    {
352
+    public function getAttribute(string $name, $default = null) {
355 353
         return $this->hasAttribute($name)
356 354
                        ? $this->attributes[$name]
357 355
                        : $default;
Please login to merge, or discard this patch.