diff options
author | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2019-01-08 21:32:02 -0200 |
---|---|---|
committer | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2019-01-16 17:21:25 -0200 |
commit | 86c5baebda24c1721fb6881df8671a3c7df60e8b (patch) | |
tree | 0a76d58ea229d1008e169b1c5b25ce90dde91808 /src/Components/GroupKeyword.php | |
parent | 28427543566b6dd32fe44db704ea41368ba55c0e (diff) | |
download | sql-parser-86c5baebda24c1721fb6881df8671a3c7df60e8b.zip sql-parser-86c5baebda24c1721fb6881df8671a3c7df60e8b.tar.gz sql-parser-86c5baebda24c1721fb6881df8671a3c7df60e8b.tar.bz2 |
Apply phpmyadmin/coding-standard
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'src/Components/GroupKeyword.php')
-rw-r--r-- | src/Components/GroupKeyword.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Components/GroupKeyword.php b/src/Components/GroupKeyword.php index 314201b..86de663 100644 --- a/src/Components/GroupKeyword.php +++ b/src/Components/GroupKeyword.php @@ -44,9 +44,9 @@ class GroupKeyword extends Component * * @return GroupKeyword[] */ - public static function parse(Parser $parser, TokensList $list, array $options = array()) + public static function parse(Parser $parser, TokensList $list, array $options = []) { - $ret = array(); + $ret = []; $expr = new self(); @@ -93,7 +93,7 @@ class GroupKeyword extends Component } elseif (($token->type === Token::TYPE_OPERATOR) && ($token->value === ',') ) { - if (!empty($expr->expr)) { + if (! empty($expr->expr)) { $ret[] = $expr; } $expr = new self(); @@ -105,7 +105,7 @@ class GroupKeyword extends Component } // Last iteration was not processed. - if (!empty($expr->expr)) { + if (! empty($expr->expr)) { $ret[] = $expr; } @@ -120,7 +120,7 @@ class GroupKeyword extends Component * * @return string */ - public static function build($component, array $options = array()) + public static function build($component, array $options = []) { if (is_array($component)) { return implode(', ', $component); |