Passed
Branch master (c716e1)
by compolom
01:46
created
src/Parts/Order.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Compolomus\LSQLQueryBuilder\Parts;
4 4
 
Please login to merge, or discard this patch.
src/Parts/Limit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Compolomus\LSQLQueryBuilder\Parts;
4 4
 
Please login to merge, or discard this patch.
src/Parts/Count.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Compolomus\LSQLQueryBuilder\Parts;
4 4
 
Please login to merge, or discard this patch.
src/Parts/Group.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Compolomus\LSQLQueryBuilder\Parts;
4 4
 
Please login to merge, or discard this patch.
src/Parts/Insert.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Compolomus\LSQLQueryBuilder\Parts;
4 4
 
Please login to merge, or discard this patch.
src/Parts/Delete.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Compolomus\LSQLQueryBuilder\Parts;
4 4
 
Please login to merge, or discard this patch.
src/System/Traits/Join.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Compolomus\LSQLQueryBuilder\System\Traits;
4 4
 
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 {
9 9
     private $join;
10 10
 
11
-    public function join(string $table, ?string $alias = null, array $onPairs = [], string $joinType = 'left'): Pjoin
11
+    public function join(string $table, ?string $alias = null, array $onPairs = [], string $joinType = 'left') : Pjoin
12 12
     {
13 13
         $this->join = new Pjoin($table, $alias, $onPairs, $joinType);
14 14
         $this->join->base($this);
Please login to merge, or discard this patch.
src/Parts/Join.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Compolomus\LSQLQueryBuilder\Parts;
4 4
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         $this->join($table, $alias, $onPairs, $joinType);
31 31
     }
32 32
 
33
-    public function join(string $table, ?string $alias = null, array $onPairs = [], string $joinType = 'left'): Join
33
+    public function join(string $table, ?string $alias = null, array $onPairs = [], string $joinType = 'left') : Join
34 34
     {
35 35
         $this->counter++;
36 36
         $this->table[$this->counter] = $table;
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         return $this;
50 50
     }
51 51
 
52
-    public function setAlias(?string $alias): Join
52
+    public function setAlias(?string $alias) : Join
53 53
     {
54 54
         if (!is_null($alias)) {
55 55
             $this->alias[$this->counter] = $alias;
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         if (!empty($this->onPairs)) {
82 82
             $result = [];
83 83
             foreach ($this->table as $counter => $join) {
84
-                $result[] = $this->concatWhere(array_map(function ($item) use ($join) {
84
+                $result[] = $this->concatWhere(array_map(function($item) use ($join) {
85 85
                     return $this->base->table() . '.' . $this->escapeField($item[0]) . ' = ' . $this->escapeField($join) . '.' . $this->escapeField($item[1]);
86 86
                 }, $this->onPairs[$counter]));
87 87
             }
Please login to merge, or discard this patch.
src/System/Traits/Order.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Compolomus\LSQLQueryBuilder\System\Traits;
4 4
 
Please login to merge, or discard this patch.