Skip to content

Commit e3c4cd4

Browse files
committed
Misc: Fixed coding style.
1 parent 422b3e3 commit e3c4cd4

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/Components/Condition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public static function parse(Parser $parser, TokensList $list, array $options =
185185
$expr->expr .= $token->token;
186186
if (($token->type === Token::TYPE_NONE)
187187
|| (($token->type === Token::TYPE_KEYWORD)
188-
&& (!($token->flags & Token::FLAG_KEYWORD_RESERVED)))
188+
&& (!($token->flags & Token::FLAG_KEYWORD_RESERVED)))
189189
|| ($token->type === Token::TYPE_STRING)
190190
|| ($token->type === Token::TYPE_SYMBOL)
191191
) {

src/Components/Expression.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public static function parse(Parser $parser, TokensList $list, array $options =
237237
&& (($prev[1]->type === Token::TYPE_NONE)
238238
|| ($prev[1]->type === Token::TYPE_SYMBOL)
239239
|| (($prev[1]->type === Token::TYPE_KEYWORD)
240-
&& ($prev[1]->flags & Token::FLAG_KEYWORD_FUNCTION)))
240+
&& ($prev[1]->flags & Token::FLAG_KEYWORD_FUNCTION)))
241241
) {
242242
$ret->function = $prev[1]->value;
243243
}

src/Components/SetOperation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public static function parse(Parser $parser, TokensList $list, array $options =
9292
if ($state === 0) {
9393
if ($token->token === '=') {
9494
$state = 1;
95-
} else if ($token->value !== ',') {
95+
} elseif ($token->value !== ',') {
9696
$expr->column .= $token->token;
9797
}
9898
} elseif ($state === 1) {

src/Statements/AlterStatement.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ public function parse(Parser $parser, TokensList $list)
7676
$parser,
7777
$list,
7878
array(
79-
'noAlias' => true,
80-
'noBrackets' => true,
79+
'noAlias' => true,
80+
'noBrackets' => true,
8181
)
8282
);
8383
++$list->idx; // Skipping field.

src/Utils/Formatter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,8 @@ public function formatList($list)
305305
&& (!$formattedOptions)
306306
&& (empty(self::$INLINE_CLAUSES[$lastClause]))
307307
&& (($curr->type !== Token::TYPE_KEYWORD)
308-
|| (($curr->type === Token::TYPE_KEYWORD)
309-
&& ($curr->flags & Token::FLAG_KEYWORD_FUNCTION)))
308+
|| (($curr->type === Token::TYPE_KEYWORD)
309+
&& ($curr->flags & Token::FLAG_KEYWORD_FUNCTION)))
310310
) {
311311
$formattedOptions = true;
312312
$lineEnded = true;

0 commit comments

Comments
 (0)