Skip to content

Commit 685d802

Browse files
committed
Coding style fixes.
1 parent cb3d540 commit 685d802

8 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/Components/JoinKeyword.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public static function parse(Parser $parser, TokensList $list, array $options =
7171
{
7272
$ret = array();
7373

74-
$expr = new JoinKeyword();;
74+
$expr = new JoinKeyword();
7575

7676
/**
7777
* The state of the parser.

src/Components/OptionsArray.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ public static function parse(Parser $parser, TokensList $list, array $options =
5555
{
5656
$ret = new OptionsArray();
5757

58-
/**
59-
* The ID that will be assigned to duplicate options.
60-
* @var int $lastAssignedId
61-
*/
58+
/**
59+
* The ID that will be assigned to duplicate options.
60+
* @var int $lastAssignedId
61+
*/
6262
$lastAssignedId = count($options) + 1;
6363

6464
/**

src/Lexer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ public function parseComment()
506506
while ((++$this->last < $this->len) && ($this->str[$this->last] !== "\n")) {
507507
$token .= $this->str[$this->last];
508508
}
509-
$token .= "\n"; // Adding the line ending.
509+
$token .= "\n"; // Adding the line ending.
510510
return new Token($token, Token::TYPE_COMMENT, Token::FLAG_COMMENT_BASH);
511511
}
512512

src/Parser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ class Parser
303303
/**
304304
* Constructor.
305305
*
306-
* @param mixed $list The list of tokens to be parsed.
307-
* @param bool $strict Whether strict mode should be enabled or not.
306+
* @param string|UtfString|TokensList $list The list of tokens to be parsed.
307+
* @param bool $strict Whether strict mode should be enabled or not.
308308
*/
309309
public function __construct($list = null, $strict = false)
310310
{

src/Statements/AlterStatement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function build()
131131
$tmp[] = $altered::build($altered);
132132
}
133133

134-
return 'ALTER ' . OptionsArray::build($this->options)
134+
return 'ALTER ' . OptionsArray::build($this->options)
135135
. ' TABLE ' . Expression::build($this->table)
136136
. ' ' . implode(', ', $tmp);
137137
}

src/Token.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Token
5555

5656
/**
5757
* Spaces, tabs, new lines, etc.
58-
*
58+
*
5959
* @var int
6060
*/
6161
const TYPE_WHITESPACE = 3;

src/Utils/BufferedQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public function extract($end = false)
180180
*/
181181
$loopLen = $end ? $len : $len - 16;
182182

183-
for (; $i < $loopLen; ++$i) {
183+
for (; $i < $loopLen; ++$i) {
184184

185185
/*
186186
* Handling special parses statuses.

src/Utils/Query.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Query
5151
* @var array
5252
*/
5353
public static $FUNCTIONS = array(
54-
'SUM','AVG','STD','STDDEV','MIN','MAX','BIT_OR','BIT_AND'
54+
'SUM', 'AVG', 'STD', 'STDDEV', 'MIN', 'MAX', 'BIT_OR', 'BIT_AND'
5555
);
5656

5757
/**
@@ -572,10 +572,10 @@ public static function getClause($statement, $list, $clause, $type = 0, $skipFir
572572
} elseif (is_string($type)) {
573573
if ($clauses[$type] > $clauseIdx) {
574574
$firstClauseIdx = $clauseIdx + 1;
575-
$lastClauseIdx = $clauses[$type] - 1 ;
575+
$lastClauseIdx = $clauses[$type] - 1;
576576
} else {
577577
$firstClauseIdx = $clauses[$type] + 1;
578-
$lastClauseIdx = $clauseIdx - 1 ;
578+
$lastClauseIdx = $clauseIdx - 1;
579579
}
580580
}
581581

0 commit comments

Comments
 (0)