diff options
author | William Desportes <williamdes@wdes.fr> | 2019-05-28 18:02:00 +0200 |
---|---|---|
committer | William Desportes <williamdes@wdes.fr> | 2019-05-28 18:02:17 +0200 |
commit | a5b955658e642652e7b5fc4ae368a6f74ef85411 (patch) | |
tree | 9f1d32cc35a4da01b8a036571909d7089ccc0ea1 /src/Utils | |
parent | b988a6ae833e0f01627f57d6b48a2cdfeaebc5e1 (diff) | |
download | sql-parser-a5b955658e642652e7b5fc4ae368a6f74ef85411.zip sql-parser-a5b955658e642652e7b5fc4ae368a6f74ef85411.tar.gz sql-parser-a5b955658e642652e7b5fc4ae368a6f74ef85411.tar.bz2 |
Revert "Enable strict mode on PHP files"
This reverts commit 17da8a34b81442524a8e01fead7b5968fa1cc39d.
Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'src/Utils')
-rw-r--r-- | src/Utils/BufferedQuery.php | 2 | ||||
-rw-r--r-- | src/Utils/CLI.php | 2 | ||||
-rw-r--r-- | src/Utils/Error.php | 4 | ||||
-rw-r--r-- | src/Utils/Formatter.php | 6 | ||||
-rw-r--r-- | src/Utils/Misc.php | 2 | ||||
-rw-r--r-- | src/Utils/Query.php | 2 | ||||
-rw-r--r-- | src/Utils/Routine.php | 2 | ||||
-rw-r--r-- | src/Utils/Table.php | 2 | ||||
-rw-r--r-- | src/Utils/Tokens.php | 4 |
9 files changed, 13 insertions, 13 deletions
diff --git a/src/Utils/BufferedQuery.php b/src/Utils/BufferedQuery.php index 5597dcf..db9c4e5 100644 --- a/src/Utils/BufferedQuery.php +++ b/src/Utils/BufferedQuery.php @@ -1,8 +1,8 @@ <?php + /** * Buffered query utilities. */ -declare(strict_types=1); namespace PhpMyAdmin\SqlParser\Utils; diff --git a/src/Utils/CLI.php b/src/Utils/CLI.php index 07afad1..2acc81c 100644 --- a/src/Utils/CLI.php +++ b/src/Utils/CLI.php @@ -1,8 +1,8 @@ <?php + /** * CLI interface. */ -declare(strict_types=1); namespace PhpMyAdmin\SqlParser\Utils; diff --git a/src/Utils/Error.php b/src/Utils/Error.php index 1b1e65a..20310a1 100644 --- a/src/Utils/Error.php +++ b/src/Utils/Error.php @@ -1,8 +1,8 @@ <?php + /** * Error related utilities. */ -declare(strict_types=1); namespace PhpMyAdmin\SqlParser\Utils; @@ -86,7 +86,7 @@ class Error ++$i, $err[0], $err[1], - htmlspecialchars((string) $err[2]), + htmlspecialchars($err[2]), $err[3] ); } diff --git a/src/Utils/Formatter.php b/src/Utils/Formatter.php index ab92cbb..b608b73 100644 --- a/src/Utils/Formatter.php +++ b/src/Utils/Formatter.php @@ -1,8 +1,8 @@ <?php + /** * Utilities that are used for formatting queries. */ -declare(strict_types=1); namespace PhpMyAdmin\SqlParser\Utils; @@ -507,7 +507,7 @@ class Formatter // No space after . ( || ($curr->type === Token::TYPE_OPERATOR && ($curr->value === '.' || $curr->value === ',' || $curr->value === '(' || $curr->value === ')')) // No space before . , ( ) - || $curr->type === Token::TYPE_DELIMITER && mb_strlen((string) $curr->value, 'UTF-8') < 2 + || $curr->type === Token::TYPE_DELIMITER && mb_strlen($curr->value, 'UTF-8') < 2 ) ) { $ret .= ' '; @@ -713,7 +713,7 @@ class Formatter } // Keeping track of this group's length. - $length += mb_strlen((string) $list->tokens[$idx]->value, 'UTF-8'); + $length += mb_strlen($list->tokens[$idx]->value, 'UTF-8'); } return $length; diff --git a/src/Utils/Misc.php b/src/Utils/Misc.php index 0ce25d9..7e6297f 100644 --- a/src/Utils/Misc.php +++ b/src/Utils/Misc.php @@ -1,8 +1,8 @@ <?php + /** * Miscellaneous utilities. */ -declare(strict_types=1); namespace PhpMyAdmin\SqlParser\Utils; diff --git a/src/Utils/Query.php b/src/Utils/Query.php index 834e642..2e623aa 100644 --- a/src/Utils/Query.php +++ b/src/Utils/Query.php @@ -1,8 +1,8 @@ <?php + /** * Statement utilities. */ -declare(strict_types=1); namespace PhpMyAdmin\SqlParser\Utils; diff --git a/src/Utils/Routine.php b/src/Utils/Routine.php index 89ab153..9b075dc 100644 --- a/src/Utils/Routine.php +++ b/src/Utils/Routine.php @@ -1,8 +1,8 @@ <?php + /** * Routine utilities. */ -declare(strict_types=1); namespace PhpMyAdmin\SqlParser\Utils; diff --git a/src/Utils/Table.php b/src/Utils/Table.php index ad87b75..e73e430 100644 --- a/src/Utils/Table.php +++ b/src/Utils/Table.php @@ -1,8 +1,8 @@ <?php + /** * Table utilities. */ -declare(strict_types=1); namespace PhpMyAdmin\SqlParser\Utils; diff --git a/src/Utils/Tokens.php b/src/Utils/Tokens.php index 7249ca0..9166085 100644 --- a/src/Utils/Tokens.php +++ b/src/Utils/Tokens.php @@ -1,8 +1,8 @@ <?php + /** * Token utilities. */ -declare(strict_types=1); namespace PhpMyAdmin\SqlParser\Utils; @@ -44,7 +44,7 @@ class Tokens } if (isset($pattern['value_str']) - && strcasecmp($pattern['value_str'], (string) $token->value) + && strcasecmp($pattern['value_str'], $token->value) ) { return false; } |