Passed
Push — develop ( fe1a17...a3aa5d )
by nguereza
03:43
created
src/Query/UpdateStatement.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@  discard block
 block discarded – undo
50 50
  * Class UpdateStatement
51 51
  * @package Platine\Database\Query
52 52
  */
53
-class UpdateStatement extends BaseStatement
54
-{
53
+class UpdateStatement extends BaseStatement {
55 54
 
56 55
     /**
57 56
      * The Query statement instance
@@ -64,8 +63,7 @@  discard block
 block discarded – undo
64 63
      * @param string|array $table
65 64
      * @param QueryStatement|null $queryStatement
66 65
      */
67
-    public function __construct($table, QueryStatement $queryStatement = null)
68
-    {
66
+    public function __construct($table, QueryStatement $queryStatement = null) {
69 67
         parent::__construct($queryStatement);
70 68
 
71 69
         if (!is_array($table)) {
Please login to merge, or discard this patch.
src/Query/Expression.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,7 @@
 block discarded – undo
52 52
  * Class Expression
53 53
  * @package Platine\Database\Query
54 54
  */
55
-class Expression
56
-{
55
+class Expression {
57 56
 
58 57
     /**
59 58
      * The list of expression
Please login to merge, or discard this patch.
src/Query/Update.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -125,11 +125,11 @@
 block discarded – undo
125 125
 
126 126
         foreach ($columns as $k => $v) {
127 127
             if (is_numeric($k)) {
128
-                $values[$k] = function (Expression $expr) use ($sign, $v, $value) {
128
+                $values[$k] = function(Expression $expr) use ($sign, $v, $value) {
129 129
                     $expr->column($v)->op($sign)->value($value);
130 130
                 };
131 131
             } else {
132
-                $values[$k] = function (Expression $expr) use ($sign, $k, $v) {
132
+                $values[$k] = function(Expression $expr) use ($sign, $k, $v) {
133 133
                     $expr->column($k)->op($sign)->value($v);
134 134
                 };
135 135
             }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,8 +52,7 @@  discard block
 block discarded – undo
52 52
  * Class Update
53 53
  * @package Platine\Database\Query
54 54
  */
55
-class Update extends UpdateStatement
56
-{
55
+class Update extends UpdateStatement {
57 56
 
58 57
     /**
59 58
      * @var Connection
@@ -66,8 +65,7 @@  discard block
 block discarded – undo
66 65
      * @param string|array $table
67 66
      * @param QueryStatement|null $queryStatement
68 67
      */
69
-    public function __construct(Connection $connection, $table, QueryStatement $queryStatement = null)
70
-    {
68
+    public function __construct(Connection $connection, $table, QueryStatement $queryStatement = null) {
71 69
         parent::__construct($table, $queryStatement);
72 70
 
73 71
         $this->connection = $connection;
Please login to merge, or discard this patch.
src/Query/InsertStatement.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@  discard block
 block discarded – undo
50 50
  * Class InsertStatement
51 51
  * @package Platine\Database\Query
52 52
  */
53
-class InsertStatement
54
-{
53
+class InsertStatement {
55 54
 
56 55
     /**
57 56
      * The Query statement instance
@@ -63,8 +62,7 @@  discard block
 block discarded – undo
63 62
      * InsertStatement constructor.
64 63
      * @param QueryStatement|null $queryStatement
65 64
      */
66
-    public function __construct(QueryStatement $queryStatement = null)
67
-    {
65
+    public function __construct(QueryStatement $queryStatement = null) {
68 66
         if ($queryStatement === null) {
69 67
             $queryStatement = new QueryStatement();
70 68
         }
@@ -106,8 +104,7 @@  discard block
 block discarded – undo
106 104
     /**
107 105
      * @inheritDoc
108 106
      */
109
-    public function __clone()
110
-    {
107
+    public function __clone() {
111 108
         $this->queryStatement = clone $this->queryStatement;
112 109
     }
113 110
 }
Please login to merge, or discard this patch.
src/Query/Where.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -287,7 +287,7 @@
 block discarded – undo
287 287
     protected function addCondition($value, string $operator, bool $isColumn = false): WhereStatement
288 288
     {
289 289
         if ($isColumn && is_string($value)) {
290
-            $value = function (Expression $expr) use ($value) {
290
+            $value = function(Expression $expr) use ($value) {
291 291
                 return $expr->column($value);
292 292
             };
293 293
         }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@  discard block
 block discarded – undo
50 50
  * Class Where
51 51
  * @package Platine\Database\Query
52 52
  */
53
-class Where
54
-{
53
+class Where {
55 54
 
56 55
     /**
57 56
      * @var string|Expression
@@ -269,8 +268,7 @@  discard block
 block discarded – undo
269 268
     /**
270 269
      * @inheritDoc
271 270
      */
272
-    public function __clone()
273
-    {
271
+    public function __clone() {
274 272
         if ($this->column instanceof Expression) {
275 273
             $this->column = clone $this->column;
276 274
         }
Please login to merge, or discard this patch.
src/Query/QueryStatement.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@  discard block
 block discarded – undo
53 53
  *
54 54
  * @package Platine\Database\Query
55 55
  */
56
-class QueryStatement
57
-{
56
+class QueryStatement {
58 57
 
59 58
     /**
60 59
      * The where SQL parts
@@ -632,8 +631,7 @@  discard block
 block discarded – undo
632 631
      *
633 632
      * @return mixed|Expression
634 633
      */
635
-    protected function closureToExpression($value)
636
-    {
634
+    protected function closureToExpression($value) {
637 635
         if ($value instanceof Closure) {
638 636
             return Expression::fromClosure($value);
639 637
         }
Please login to merge, or discard this patch.
src/Query/Insert.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,8 +52,7 @@  discard block
 block discarded – undo
52 52
  * Class Insert
53 53
  * @package Platine\Database\Query
54 54
  */
55
-class Insert extends InsertStatement
56
-{
55
+class Insert extends InsertStatement {
57 56
 
58 57
     /**
59 58
      * @var Connection
@@ -65,8 +64,7 @@  discard block
 block discarded – undo
65 64
      * @param Connection $connection
66 65
      * @param QueryStatement|null $queryStatement
67 66
      */
68
-    public function __construct(Connection $connection, QueryStatement $queryStatement = null)
69
-    {
67
+    public function __construct(Connection $connection, QueryStatement $queryStatement = null) {
70 68
         parent::__construct($queryStatement);
71 69
 
72 70
         $this->connection = $connection;
Please login to merge, or discard this patch.
src/Query/Join.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
  * Class Join
51 51
  * @package Platine\Database\Query
52 52
  */
53
-class Join
54
-{
53
+class Join {
55 54
 
56 55
     /**
57 56
      * The Join conditions
Please login to merge, or discard this patch.
src/Query/Delete.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@  discard block
 block discarded – undo
53 53
  * Class Delete
54 54
  * @package Platine\Database\Query
55 55
  */
56
-class Delete extends DeleteStatement
57
-{
56
+class Delete extends DeleteStatement {
58 57
 
59 58
     /**
60 59
      * @var Connection
@@ -67,8 +66,7 @@  discard block
 block discarded – undo
67 66
      * @param string|array $from
68 67
      * @param QueryStatement|null $queryStatement
69 68
      */
70
-    public function __construct(Connection $connection, $from, QueryStatement $queryStatement = null)
71
-    {
69
+    public function __construct(Connection $connection, $from, QueryStatement $queryStatement = null) {
72 70
         parent::__construct($from, $queryStatement);
73 71
 
74 72
         $this->connection = $connection;
Please login to merge, or discard this patch.