Completed
Push — master ( d70677...ac1004 )
by Maurício
28s queued 18s
created
src/Token.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -70,12 +70,12 @@  discard block
 block discarded – undo
70 70
     /**
71 71
      * The value this token contains (i.e. token after some evaluation).
72 72
      */
73
-    public bool|float|int|string $value;
73
+    public bool | float | int | string $value;
74 74
 
75 75
     /**
76 76
      * The keyword value this token contains, always uppercase.
77 77
      */
78
-    public string|null $keyword = null;
78
+    public string | null $keyword = null;
79 79
 
80 80
     /**
81 81
      * The type of this token.
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      * The position is counted in chars, not bytes, so you should
94 94
      * use mb_* functions to properly handle utf-8 multibyte chars.
95 95
      */
96
-    public int|null $position = null;
96
+    public int | null $position = null;
97 97
 
98 98
     /**
99 99
      * @param string    $token the value of the token
@@ -113,12 +113,12 @@  discard block
 block discarded – undo
113 113
      *
114 114
      * If no processing can be done it will return the initial string.
115 115
      */
116
-    public function extract(): bool|float|int|string
116
+    public function extract(): bool | float | int | string
117 117
     {
118 118
         switch ($this->type) {
119 119
             case TokenType::Keyword:
120 120
                 $this->keyword = strtoupper($this->token);
121
-                if (! ($this->flags & self::FLAG_KEYWORD_RESERVED)) {
121
+                if (!($this->flags & self::FLAG_KEYWORD_RESERVED)) {
122 122
                     // Unreserved keywords should stay the way they are because they
123 123
                     // might represent field names.
124 124
                     return $this->token;
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
                     }
144 144
                 } elseif (($this->flags & self::FLAG_NUMBER_APPROXIMATE) || ($this->flags & self::FLAG_NUMBER_FLOAT)) {
145 145
                     $ret = (float) $ret;
146
-                } elseif (! ($this->flags & self::FLAG_NUMBER_BINARY)) {
146
+                } elseif (!($this->flags & self::FLAG_NUMBER_BINARY)) {
147 147
                     $ret = (int) $ret;
148 148
                 }
149 149
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
                     // in PHP 5.3- the `null` parameter isn't handled correctly.
179 179
                     $str = mb_substr(
180 180
                         $str,
181
-                        ! empty($str[1]) && ($str[1] === '@') ? 2 : 1,
181
+                        !empty($str[1]) && ($str[1] === '@') ? 2 : 1,
182 182
                         mb_strlen($str),
183 183
                         'UTF-8',
184 184
                     );
Please login to merge, or discard this patch.
src/Statements/PurgeStatement.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,17 +26,17 @@  discard block
 block discarded – undo
26 26
     /**
27 27
      * The type of logs
28 28
      */
29
-    public string|null $logType = null;
29
+    public string | null $logType = null;
30 30
 
31 31
     /**
32 32
      * The end option of this query.
33 33
      */
34
-    public string|null $endOption = null;
34
+    public string | null $endOption = null;
35 35
 
36 36
     /**
37 37
      * The end expr of this query.
38 38
      */
39
-    public Expression|null $endExpr = null;
39
+    public Expression | null $endExpr = null;
40 40
 
41 41
     public function build(): string
42 42
     {
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      * @param Token    $token            token to be parsed
118 118
      * @param string[] $expectedKeywords array of possibly expected keywords at this point
119 119
      */
120
-    private static function parseExpectedKeyword(Parser $parser, Token $token, array $expectedKeywords): string|null
120
+    private static function parseExpectedKeyword(Parser $parser, Token $token, array $expectedKeywords): string | null
121 121
     {
122 122
         if ($token->type === TokenType::Keyword) {
123 123
             if (in_array($token->keyword, $expectedKeywords)) {
Please login to merge, or discard this patch.