Passed
Push — master ( c6dd2c...0efc01 )
by Maurício
02:43
created
src/UtfString.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
         $this->byteIdx = 0;
76 76
         $this->charIdx = 0;
77 77
         $this->byteLen = mb_strlen($str, '8bit');
78
-        if (! mb_check_encoding($str, 'UTF-8')) {
78
+        if (!mb_check_encoding($str, 'UTF-8')) {
79 79
             $this->charLen = 0;
80 80
         } else {
81 81
             $this->charLen = mb_strlen($str, 'UTF-8');
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
@@ -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/CaseExpression.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
                 // Handle optional AS keyword before alias
228 228
                 if ($token->type === Token::TYPE_KEYWORD
229 229
                     && $token->keyword === 'AS') {
230
-                    if ($asFound || ! empty($ret->alias)) {
230
+                    if ($asFound || !empty($ret->alias)) {
231 231
                         $parser->error('Potential duplicate alias of CASE expression.', $token);
232 232
                         break;
233 233
                     }
@@ -245,11 +245,11 @@  discard block
 block discarded – undo
245 245
 
246 246
                 if ($asFound
247 247
                     || $token->type === Token::TYPE_STRING
248
-                    || ($token->type === Token::TYPE_SYMBOL && ! $token->flags & Token::FLAG_SYMBOL_VARIABLE)
248
+                    || ($token->type === Token::TYPE_SYMBOL && !$token->flags & Token::FLAG_SYMBOL_VARIABLE)
249 249
                     || $token->type === Token::TYPE_NONE
250 250
                 ) {
251 251
                     // An alias is expected (the keyword `AS` was previously found).
252
-                    if (! empty($ret->alias)) {
252
+                    if (!empty($ret->alias)) {
253 253
                         $parser->error('An alias was previously found.', $token);
254 254
                         break;
255 255
                     }
Please login to merge, or discard this patch.
src/Components/ParameterDefinition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@
 block discarded – undo
160 160
         }
161 161
 
162 162
         $tmp = '';
163
-        if (! empty($component->inOut)) {
163
+        if (!empty($component->inOut)) {
164 164
             $tmp .= $component->inOut . ' ';
165 165
         }
166 166
 
Please login to merge, or discard this patch.
src/Utils/BufferedQuery.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
 
314 314
                 // Parsing the delimiter.
315 315
                 $delimiter = '';
316
-                while (($i < $len) && (! Context::isWhitespace($this->query[$i]))) {
316
+                while (($i < $len) && (!Context::isWhitespace($this->query[$i]))) {
317 317
                     $delimiter .= $this->query[$i++];
318 318
                 }
319 319
 
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
 
328 328
                     // Whether this statement should be returned or not.
329 329
                     $ret = '';
330
-                    if (! empty($this->options['parse_delimiter'])) {
330
+                    if (!empty($this->options['parse_delimiter'])) {
331 331
                         // Appending the `DELIMITER` statement that was just
332 332
                         // found to the current statement.
333 333
                         $ret = trim(
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
                 $ret = $this->current;
370 370
 
371 371
                 // If needed, adds a delimiter at the end of the statement.
372
-                if (! empty($this->options['add_delimiter'])) {
372
+                if (!empty($this->options['add_delimiter'])) {
373 373
                     $ret .= $this->delimiter;
374 374
                 }
375 375
 
Please login to merge, or discard this patch.
src/Translator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      */
59 59
     public static function gettext($msgid)
60 60
     {
61
-        if (! class_exists('\PhpMyAdmin\MoTranslator\Loader', true)) {
61
+        if (!class_exists('\PhpMyAdmin\MoTranslator\Loader', true)) {
62 62
             return $msgid;
63 63
         }
64 64
 
Please login to merge, or discard this patch.
src/Parser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
 
471 471
             // Checking if it is a known statement that can be parsed.
472 472
             if (empty(static::$STATEMENT_PARSERS[$token->keyword])) {
473
-                if (! isset(static::$STATEMENT_PARSERS[$token->keyword])) {
473
+                if (!isset(static::$STATEMENT_PARSERS[$token->keyword])) {
474 474
                     // A statement is considered recognized if the parser
475 475
                     // is aware that it is a statement, but it does not have
476 476
                     // a parser for it yet.
@@ -511,7 +511,7 @@  discard block
 block discarded – undo
511 511
             $prevLastIdx = $list->idx;
512 512
 
513 513
             // Handles unions.
514
-            if (! empty($unionType)
514
+            if (!empty($unionType)
515 515
                 && ($lastStatement instanceof SelectStatement)
516 516
                 && ($statement instanceof SelectStatement)
517 517
             ) {
Please login to merge, or discard this patch.
src/Utils/Routine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
             'opts' => [],
118 118
         ];
119 119
 
120
-        if (! empty($statement->parameters)) {
120
+        if (!empty($statement->parameters)) {
121 121
             $idx = 0;
122 122
             foreach ($statement->parameters as $param) {
123 123
                 $retval['dir'][$idx] = $param->inOut;
Please login to merge, or discard this patch.
src/Utils/Misc.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public static function getAliases($statement, $database)
27 27
     {
28
-        if (! ($statement instanceof SelectStatement)
28
+        if (!($statement instanceof SelectStatement)
29 29
             || empty($statement->expr)
30 30
             || empty($statement->from)
31 31
         ) {
@@ -45,28 +45,28 @@  discard block
 block discarded – undo
45 45
         $expressions = $statement->from;
46 46
 
47 47
         // Adding expressions from JOIN.
48
-        if (! empty($statement->join)) {
48
+        if (!empty($statement->join)) {
49 49
             foreach ($statement->join as $join) {
50 50
                 $expressions[] = $join->expr;
51 51
             }
52 52
         }
53 53
 
54 54
         foreach ($expressions as $expr) {
55
-            if (! isset($expr->table) || ($expr->table === '')) {
55
+            if (!isset($expr->table) || ($expr->table === '')) {
56 56
                 continue;
57 57
             }
58 58
 
59 59
             $thisDb = isset($expr->database) && ($expr->database !== '') ?
60 60
                 $expr->database : $database;
61 61
 
62
-            if (! isset($retval[$thisDb])) {
62
+            if (!isset($retval[$thisDb])) {
63 63
                 $retval[$thisDb] = [
64 64
                     'alias' => null,
65 65
                     'tables' => [],
66 66
                 ];
67 67
             }
68 68
 
69
-            if (! isset($retval[$thisDb]['tables'][$expr->table])) {
69
+            if (!isset($retval[$thisDb]['tables'][$expr->table])) {
70 70
                 $retval[$thisDb]['tables'][$expr->table] = [
71 71
                     'alias' => isset($expr->alias) && ($expr->alias !== '') ?
72 72
                         $expr->alias : null,
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
                 ];
75 75
             }
76 76
 
77
-            if (! isset($tables[$thisDb])) {
77
+            if (!isset($tables[$thisDb])) {
78 78
                 $tables[$thisDb] = [];
79 79
             }
80 80
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         }
83 83
 
84 84
         foreach ($statement->expr as $expr) {
85
-            if (! isset($expr->column, $expr->alias) || ($expr->column === '') || ($expr->alias === '')
85
+            if (!isset($expr->column, $expr->alias) || ($expr->column === '') || ($expr->alias === '')
86 86
             ) {
87 87
                 continue;
88 88
             }
Please login to merge, or discard this patch.