Skip to content

Commit

Permalink
Merge pull request #68 from PHPCSStandards/feature/tokens-collections…
Browse files Browse the repository at this point in the history
…-add-new-property

Tokens\Collections: add new `$alternativeControlStructureSyntaxCloserTokens` property
  • Loading branch information
jrfnl committed Jan 29, 2020
2 parents e0d2035 + e76b615 commit f337ce9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions PHPCSUtils/Tokens/Collections.php
Expand Up @@ -24,6 +24,19 @@
class Collections
{

/**
* Alternative control structure syntax closer keyword tokens.
*
* @var array <int> => <int>
*/
public static $alternativeControlStructureSyntaxCloserTokens = [
\T_ENDIF => \T_ENDIF,
\T_ENDFOR => \T_ENDFOR,
\T_ENDFOREACH => \T_ENDFOREACH,
\T_ENDWHILE => \T_ENDWHILE,
\T_ENDSWITCH => \T_ENDSWITCH,
];

/**
* Tokens which are used to create arrays.
*
Expand Down

0 comments on commit f337ce9

Please sign in to comment.