diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Components/JoinKeyword.php | 2 | ||||
-rw-r--r-- | src/Components/OptionsArray.php | 8 | ||||
-rw-r--r-- | src/Lexer.php | 2 | ||||
-rw-r--r-- | src/Parser.php | 4 | ||||
-rw-r--r-- | src/Statements/AlterStatement.php | 2 | ||||
-rw-r--r-- | src/Token.php | 2 | ||||
-rw-r--r-- | src/Utils/BufferedQuery.php | 2 | ||||
-rw-r--r-- | src/Utils/Query.php | 6 |
8 files changed, 14 insertions, 14 deletions
diff --git a/src/Components/JoinKeyword.php b/src/Components/JoinKeyword.php index a647dcd..171ad98 100644 --- a/src/Components/JoinKeyword.php +++ b/src/Components/JoinKeyword.php @@ -71,7 +71,7 @@ class JoinKeyword extends Component { $ret = array(); - $expr = new JoinKeyword();; + $expr = new JoinKeyword(); /** * The state of the parser. diff --git a/src/Components/OptionsArray.php b/src/Components/OptionsArray.php index 0e86326..da2ec8d 100644 --- a/src/Components/OptionsArray.php +++ b/src/Components/OptionsArray.php @@ -55,10 +55,10 @@ class OptionsArray extends Component { $ret = new OptionsArray(); - /** - * The ID that will be assigned to duplicate options. - * @var int $lastAssignedId - */ + /** + * The ID that will be assigned to duplicate options. + * @var int $lastAssignedId + */ $lastAssignedId = count($options) + 1; /** diff --git a/src/Lexer.php b/src/Lexer.php index 82385e3..b969a19 100644 --- a/src/Lexer.php +++ b/src/Lexer.php @@ -506,7 +506,7 @@ namespace SqlParser { while ((++$this->last < $this->len) && ($this->str[$this->last] !== "\n")) { $token .= $this->str[$this->last]; } - $token .= "\n"; // Adding the line ending. + $token .= "\n"; // Adding the line ending. return new Token($token, Token::TYPE_COMMENT, Token::FLAG_COMMENT_BASH); } diff --git a/src/Parser.php b/src/Parser.php index 3b5a40a..d6d391b 100644 --- a/src/Parser.php +++ b/src/Parser.php @@ -303,8 +303,8 @@ namespace SqlParser { /** * Constructor. * - * @param mixed $list The list of tokens to be parsed. - * @param bool $strict Whether strict mode should be enabled or not. + * @param string|UtfString|TokensList $list The list of tokens to be parsed. + * @param bool $strict Whether strict mode should be enabled or not. */ public function __construct($list = null, $strict = false) { diff --git a/src/Statements/AlterStatement.php b/src/Statements/AlterStatement.php index 0dfee2c..2c48181 100644 --- a/src/Statements/AlterStatement.php +++ b/src/Statements/AlterStatement.php @@ -131,7 +131,7 @@ class AlterStatement extends Statement $tmp[] = $altered::build($altered); } - return 'ALTER ' . OptionsArray::build($this->options) + return 'ALTER ' . OptionsArray::build($this->options) . ' TABLE ' . Expression::build($this->table) . ' ' . implode(', ', $tmp); } diff --git a/src/Token.php b/src/Token.php index 99d239b..3c36d1c 100644 --- a/src/Token.php +++ b/src/Token.php @@ -55,7 +55,7 @@ class Token /** * Spaces, tabs, new lines, etc. - * + * * @var int */ const TYPE_WHITESPACE = 3; diff --git a/src/Utils/BufferedQuery.php b/src/Utils/BufferedQuery.php index e983188..e308fb2 100644 --- a/src/Utils/BufferedQuery.php +++ b/src/Utils/BufferedQuery.php @@ -180,7 +180,7 @@ class BufferedQuery */ $loopLen = $end ? $len : $len - 16; - for (; $i < $loopLen; ++$i) { + for (; $i < $loopLen; ++$i) { /* * Handling special parses statuses. diff --git a/src/Utils/Query.php b/src/Utils/Query.php index 4a9ea01..6aff11d 100644 --- a/src/Utils/Query.php +++ b/src/Utils/Query.php @@ -51,7 +51,7 @@ class Query * @var array */ public static $FUNCTIONS = array( - 'SUM','AVG','STD','STDDEV','MIN','MAX','BIT_OR','BIT_AND' + 'SUM', 'AVG', 'STD', 'STDDEV', 'MIN', 'MAX', 'BIT_OR', 'BIT_AND' ); /** @@ -572,10 +572,10 @@ class Query } elseif (is_string($type)) { if ($clauses[$type] > $clauseIdx) { $firstClauseIdx = $clauseIdx + 1; - $lastClauseIdx = $clauses[$type] - 1 ; + $lastClauseIdx = $clauses[$type] - 1; } else { $firstClauseIdx = $clauses[$type] + 1; - $lastClauseIdx = $clauseIdx - 1 ; + $lastClauseIdx = $clauseIdx - 1; } } |