diff options
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); |