summaryrefslogtreecommitdiffstats
path: root/src/Lexer.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Lexer.php')
-rw-r--r--src/Lexer.php16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/Lexer.php b/src/Lexer.php
index 895cb2b..2479410 100644
--- a/src/Lexer.php
+++ b/src/Lexer.php
@@ -1,5 +1,4 @@
<?php
-
/**
* Defines the lexer of the library.
*
@@ -7,6 +6,7 @@
*
* Depends on context to extract lexemes.
*/
+declare(strict_types=1);
namespace PhpMyAdmin\SqlParser;
@@ -33,10 +33,6 @@ if (! defined('USE_UTF_STRINGS')) {
*
* The output of the lexer is affected by the context of the SQL statement.
*
- * @category Lexer
- *
- * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+
- *
* @see Context
*/
class Lexer extends Core
@@ -46,7 +42,7 @@ class Lexer extends Core
*
* @var array
*/
- public static $PARSER_METHODS = array(
+ public static $PARSER_METHODS = [
// It is best to put the parsers in order of their complexity
// (ascending) and their occurrence rate (descending).
//
@@ -80,8 +76,8 @@ class Lexer extends Core
'parseSymbol',
'parseKeyword',
'parseLabel',
- 'parseUnknown'
- );
+ 'parseUnknown',
+ ];
/**
* The string to be parsed.
@@ -158,8 +154,6 @@ class Lexer extends Core
}
/**
- * Constructor.
- *
* @param string|UtfString $str the query to be lexed
* @param bool $strict whether strict mode should be
* enabled or not
@@ -353,7 +347,7 @@ class Lexer extends Core
* @param int $pos the position of the character
* @param int $code the code of the error
*
- * @throws LexerException throws the exception, if strict mode is enabled
+ * @throws LexerException throws the exception, if strict mode is enabled.
*/
public function error($msg, $str = '', $pos = 0, $code = 0)
{