Passed
Branch develop (217e3f)
by compolom
02:04
created
src/Parts/Update.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
 
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     public function set(array $values): string
26 26
     {
27 27
         return $this->concat(
28
-            array_map(function ($field, $value) {
28
+            array_map(function($field, $value) {
29 29
                 return $field . ' = ' . $value;
30 30
             },
31 31
                 $this->escapeField($this->fields), $this->preSet($values, 'u')));
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
         return 'UPDATE ' . $this->table() . ' SET '
47 47
             . (!is_null($this->values)
48 48
                 ? $this->values
49
-                : $this->concat(array_map(function ($field) {
50
-                    return $this->escapeField($field) . ' = ?';;
49
+                : $this->concat(array_map(function($field) {
50
+                    return $this->escapeField($field) . ' = ?'; ;
51 51
                 }, $this->fields))
52 52
             )
53 53
             . $this->getParts();
Please login to merge, or discard this patch.
src/Parts/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\Parts;
4 4
 
@@ -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/Parts/Select.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.