Passed
Branch master (1f9550)
by compolom
01:42
created
src/Parts/Where.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     /**
48 48
      * @param string $field
49 49
      * @param string $cond
50
-     * @param mixed $value
50
+     * @param integer $value
51 51
      * @return $this
52 52
      */
53 53
     public function add(string $field, string $cond, $value): Where
Please login to merge, or discard this 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/Magic.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.
src/System/Traits/Order.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 $order;
10 10
 
11
-    public function order(?string $field = null, string $type = 'asc'): Porder
11
+    public function order(?string $field = null, string $type = 'asc') : Porder
12 12
     {
13 13
         $this->order = new Porder($field, $type);
14 14
         $this->order->base($this);
Please login to merge, or discard this patch.
src/System/Traits/Group.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 $group;
10 10
 
11
-    public function group(?string $field = null): PGroup
11
+    public function group(?string $field = null) : PGroup
12 12
     {
13 13
         $this->group = new Pgroup($field);
14 14
         $this->group->base($this);
Please login to merge, or discard this patch.
src/System/Placeholders.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;
4 4
 
Please login to merge, or discard this patch.
src/System/Fields.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;
4 4
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         $this->fields = $return;
28 28
     }
29 29
 
30
-    public function count(string $field = '*', ?string $alias = null): void
30
+    public function count(string $field = '*', ?string $alias = null) : void
31 31
     {
32 32
         if ($field != '*') {
33 33
             $field = $this->escapeField($field);
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
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         return $this->fields->result();
34 34
     }
35 35
 
36
-    public function join(string $table, ?array $on = null, ?string $alias = null, string $joinType = 'left'): Select
36
+    public function join(string $table, ? array $on = null, ?string $alias = null, string $joinType = 'left') : Select
37 37
     {
38 38
         $this->join = new Join($table, $on, $alias, $joinType);
39 39
         $this->join->setParentTable($this->table());
Please login to merge, or discard this patch.
src/Parts/Update.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
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             . (count($this->values)
42 42
                 ? implode(',', $this->values)
43 43
                 : (count($this->fields) & !count($this->values)
44
-                    ? implode(',', array_map(function ($field) {
44
+                    ? implode(',', array_map(function($field) {
45 45
                         return $this->escapeField($field) . ' = ?';
46 46
                     ;}, $this->fields))
47 47
                     : '')
Please login to merge, or discard this patch.
src/Parts/Join.php 1 patch
Spacing   +3 added lines, -3 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
 
26 26
     private $joinTypes = ['left', 'right', 'cross', 'inner'];
27 27
 
28
-    public function __construct(string $table, ?array $on = null, ?string $alias = null, string $joinType = 'left')
28
+    public function __construct(string $table, ? array $on = null, ?string $alias = null, string $joinType = 'left')
29 29
     {
30 30
         $this->table = $table;
31 31
         if (!is_null($on)) {
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     private function onMap(array $array): string
64 64
     {
65
-        return ' ON ' . $this->concatWhere(array_map(function ($item) {
65
+        return ' ON ' . $this->concatWhere(array_map(function($item) {
66 66
             return $this->parentTable . '.' . $this->escapeField($item[0]) . ' = ' . $this->getTable() . '.' . $this->escapeField($item[1]);
67 67
         }, $array));
68 68
     }
Please login to merge, or discard this patch.