Test Failed
Branch master (7ddde4)
by Janis
02:30
created
Category
src/Dms/MySQL/QueryBuilder/Traits/ColumnTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      * @return $this
19 19
      * @throws QueryBuilderException
20 20
      */
21
-    public function column($column, bool $clearAll = false)
21
+    public function column ($column, bool $clearAll = false)
22 22
     {
23 23
         if (empty($column)) {
24 24
             throw new QueryBuilderException('You must pass $column to column method!');
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     /**
41 41
      * @return string
42 42
      */
43
-    protected function buildColumnQueryPart(): string
43
+    protected function buildColumnQueryPart (): string
44 44
     {
45 45
         return empty($this->column) ? '*' : \implode(', ', $this->column);
46 46
     }
Please login to merge, or discard this patch.
src/Dms/MySQL/QueryBuilder/Traits/HavingTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      * @return $this
20 20
      * @throws QueryBuilderException
21 21
      */
22
-    public function having(string $condition, array $bind = [])
22
+    public function having (string $condition, array $bind = [])
23 23
     {
24 24
         if (!$condition) {
25 25
             throw new QueryBuilderException('You must pass $condition to having function!');
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     /**
38 38
      * @return null|string
39 39
      */
40
-    protected function buildHavingQueryPart(): ?string
40
+    protected function buildHavingQueryPart (): ?string
41 41
     {
42 42
         return empty($this->having)
43 43
             ? null
Please login to merge, or discard this patch.
src/Dms/MySQL/QueryBuilder/Traits/TableTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      * @return $this
20 20
      * @throws QueryBuilderException
21 21
      */
22
-    public function table($table, bool $clearAll = false)
22
+    public function table ($table, bool $clearAll = false)
23 23
     {
24 24
         if (empty($table)) {
25 25
             throw new QueryBuilderException('You must pass $table to table method!');
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     /**
42 42
      * @return null|string
43 43
      */
44
-    protected function buildTableQueryPart(): ?string
44
+    protected function buildTableQueryPart (): ?string
45 45
     {
46 46
         return \reset($this->table) ?: null;
47 47
     }
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     /**
50 50
      * @return null|string
51 51
      */
52
-    protected function buildFromQueryPart(): ?string
52
+    protected function buildFromQueryPart (): ?string
53 53
     {
54 54
         return empty($this->table)
55 55
             ? null
Please login to merge, or discard this patch.
src/Dms/MySQL/QueryBuilder/Traits/UnionTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      * @return $this
20 20
      * @throws QueryBuilderException
21 21
      */
22
-    public function unionAll(QueryBuilderInterface $queryBuilder)
22
+    public function unionAll (QueryBuilderInterface $queryBuilder)
23 23
     {
24 24
         if (CommandEnum::SELECT != $queryBuilder->commandData()) {
25 25
             throw new QueryBuilderException(\sprintf(
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * @return null|string
40 40
      */
41
-    protected function buildUnionAllQueryPart(): ?string
41
+    protected function buildUnionAllQueryPart (): ?string
42 42
     {
43 43
         return empty($this->unionAll) ? null : \implode(' UNION ALL ', $this->unionAll);
44 44
     }
Please login to merge, or discard this patch.
src/Dms/MySQL/QueryBuilder/Traits/GroupByTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      * @return $this
19 19
      * @throws QueryBuilderException
20 20
      */
21
-    public function groupBy($groupBy)
21
+    public function groupBy ($groupBy)
22 22
     {
23 23
         if (empty($groupBy)) {
24 24
             throw new QueryBuilderException('You must pass $groupBy to groupBy method!');
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * @return null|string
38 38
      */
39
-    protected function buildGroupByQueryPart(): ?string
39
+    protected function buildGroupByQueryPart (): ?string
40 40
     {
41 41
         return empty($this->groupBy)
42 42
             ? null
Please login to merge, or discard this patch.
src/Dms/MySQL/QueryBuilder/Traits/LimitOffsetTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      * @return $this
24 24
      * @throws QueryBuilderException
25 25
      */
26
-    public function limit(int $limit)
26
+    public function limit (int $limit)
27 27
     {
28 28
         if (0 >= $limit) {
29 29
             throw new QueryBuilderException('You must pass $limit to limit method!');
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      * @return $this
41 41
      * @throws QueryBuilderException
42 42
      */
43
-    public function offset(int $offset)
43
+    public function offset (int $offset)
44 44
     {
45 45
         if (0 > $offset) {
46 46
             throw new QueryBuilderException('You must pass $offset to offset method!');
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      *
62 62
      * @return $this
63 63
      */
64
-    public function limitWithOffset(int $limit, int $offset)
64
+    public function limitWithOffset (int $limit, int $offset)
65 65
     {
66 66
         return $this->limit($limit)->offset($offset);
67 67
     }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     /**
70 70
      * @return null|string
71 71
      */
72
-    protected function buildLimitQueryPart(): ?string
72
+    protected function buildLimitQueryPart (): ?string
73 73
     {
74 74
         return empty($this->limit) ? null : \sprintf('%s %d', ConditionEnum::LIMIT, $this->limit);
75 75
     }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     /**
78 78
      * @return null|string
79 79
      */
80
-    protected function buildOffsetQueryPart(): ?string
80
+    protected function buildOffsetQueryPart (): ?string
81 81
     {
82 82
         return empty($this->offset) ? null : \sprintf('%s %d', ConditionEnum::OFFSET, $this->offset);
83 83
     }
Please login to merge, or discard this patch.
src/Dms/MySQL/QueryBuilder/Traits/SetTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      *
18 18
      * @return $this
19 19
      */
20
-    public function set(string $column, $value)
20
+    public function set (string $column, $value)
21 21
     {
22 22
         $columnNormalised = \sprintf(
23 23
             '%s_Update',
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     /**
44 44
      * @return null|string
45 45
      */
46
-    protected function buildSetQueryPart(): ?string
46
+    protected function buildSetQueryPart (): ?string
47 47
     {
48 48
         return empty($this->set)
49 49
             ? null
Please login to merge, or discard this patch.
src/Dms/MySQL/QueryBuilder/Traits/Interfaces/CommandTraitInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@
 block discarded – undo
9 9
      *
10 10
      * @return $this
11 11
      */
12
-    public function command(string $command);
12
+    public function command (string $command);
13 13
 
14 14
     /**
15 15
      * @return string
16 16
      */
17
-    public function commandData(): string;
17
+    public function commandData (): string;
18 18
 }
Please login to merge, or discard this patch.
src/Dms/MySQL/QueryBuilder/Traits/Interfaces/UnionTraitInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,5 +11,5 @@
 block discarded – undo
11 11
      *
12 12
      * @return $this
13 13
      */
14
-    public function unionAll(QueryBuilderInterface $queryBuilder);
14
+    public function unionAll (QueryBuilderInterface $queryBuilder);
15 15
 }
Please login to merge, or discard this patch.