Completed
Push — master ( 578d3a...04a929 )
by Maurício
34s queued 14s
created
tests/Components/GroupKeywordTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 
55 55
     /** @param GroupKeyword|array<GroupKeyword> $component */
56 56
     #[DataProvider('provideExpressions')]
57
-    public function testBuild(GroupKeyword|array $component, string $expected): void
57
+    public function testBuild(GroupKeyword | array $component, string $expected): void
58 58
     {
59 59
         if (is_array($component)) {
60 60
             $this->assertSame($expected, GroupKeywords::buildAll($component));
Please login to merge, or discard this patch.
src/Components/OrderKeyword.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      * @param Expression $expr the expression that we are sorting by
30 30
      * @param string     $type the sorting type
31 31
      */
32
-    public function __construct(Expression|null $expr = null, string $type = 'ASC')
32
+    public function __construct(Expression | null $expr = null, string $type = 'ASC')
33 33
     {
34 34
         $this->expr = $expr;
35 35
         $this->type = $type;
Please login to merge, or discard this patch.
src/Components/Condition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     public $expr;
33 33
 
34 34
     /** @param string $expr the condition or the operator */
35
-    public function __construct(string|null $expr = null)
35
+    public function __construct(string | null $expr = null)
36 36
     {
37 37
         $this->expr = trim((string) $expr);
38 38
     }
Please login to merge, or discard this patch.
src/Components/JoinKeyword.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -74,10 +74,10 @@  discard block
 block discarded – undo
74 74
      * @param ArrayObj    $using columns joined
75 75
      */
76 76
     public function __construct(
77
-        string|null $type = null,
78
-        Expression|null $expr = null,
79
-        array|null $on = null,
80
-        ArrayObj|null $using = null,
77
+        string | null $type = null,
78
+        Expression | null $expr = null,
79
+        array | null $on = null,
80
+        ArrayObj | null $using = null,
81 81
     ) {
82 82
         $this->type = $type;
83 83
         $this->expr = $expr;
@@ -88,8 +88,8 @@  discard block
 block discarded – undo
88 88
     public function build(): string
89 89
     {
90 90
         return array_search($this->type, self::JOINS) . ' ' . $this->expr
91
-            . (! empty($this->on) ? ' ON ' . Conditions::buildAll($this->on) : '')
92
-            . (! empty($this->using) ? ' USING ' . $this->using->build() : '');
91
+            . (!empty($this->on) ? ' ON ' . Conditions::buildAll($this->on) : '')
92
+            . (!empty($this->using) ? ' USING ' . $this->using->build() : '');
93 93
     }
94 94
 
95 95
     public function __toString(): string
Please login to merge, or discard this patch.
src/Components/RenameOperation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      * @param Expression $old old expression
30 30
      * @param Expression $new new expression containing new name
31 31
      */
32
-    public function __construct(Expression|null $old = null, Expression|null $new = null)
32
+    public function __construct(Expression | null $old = null, Expression | null $new = null)
33 33
     {
34 34
         $this->old = $old;
35 35
         $this->new = $new;
Please login to merge, or discard this patch.
src/Components/Parsers/JoinKeywords.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
             }
122 122
         }
123 123
 
124
-        if (! empty($expr->type)) {
124
+        if (!empty($expr->type)) {
125 125
             $ret[] = $expr;
126 126
         }
127 127
 
Please login to merge, or discard this patch.
src/Components/Parsers/GroupKeywords.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                 ) {
89 89
                     $expr->type = $token->keyword;
90 90
                 } elseif (($token->type === TokenType::Operator) && ($token->value === ',')) {
91
-                    if (! empty($expr->expr)) {
91
+                    if (!empty($expr->expr)) {
92 92
                         $ret[] = $expr;
93 93
                     }
94 94
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         }
102 102
 
103 103
         // Last iteration was not processed.
104
-        if (! empty($expr->expr)) {
104
+        if (!empty($expr->expr)) {
105 105
             $ret[] = $expr;
106 106
         }
107 107
 
Please login to merge, or discard this patch.
src/Components/Parsers/RenameOperations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@
 block discarded – undo
156 156
         }
157 157
 
158 158
         // Last iteration was not saved.
159
-        if (! empty($expr->old)) {
159
+        if (!empty($expr->old)) {
160 160
             $ret[] = $expr;
161 161
         }
162 162
 
Please login to merge, or discard this patch.
src/Components/Parsers/OrderKeywords.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                 ) {
89 89
                     $expr->type = $token->keyword;
90 90
                 } elseif (($token->type === TokenType::Operator) && ($token->value === ',')) {
91
-                    if (! empty($expr->expr)) {
91
+                    if (!empty($expr->expr)) {
92 92
                         $ret[] = $expr;
93 93
                     }
94 94
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         }
102 102
 
103 103
         // Last iteration was not processed.
104
-        if (! empty($expr->expr)) {
104
+        if (!empty($expr->expr)) {
105 105
             $ret[] = $expr;
106 106
         }
107 107
 
Please login to merge, or discard this patch.