Skip to content

Commit 5cd30e0

Browse files
committed
Added new static var to represent tokens that open blocks of code.
git-svn-id: http://svn.php.net/repository/pear/packages/PHP_CodeSniffer/trunk@225352 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent f093d00 commit 5cd30e0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

CodeSniffer/Tokens.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,16 @@ final class PHP_CodeSniffer_Tokens
215215
T_BITWISE_OR,
216216
);
217217

218+
/**
219+
* Tokens that perform operations.
220+
*
221+
* @var array(int)
222+
*/
223+
public static $blockOpeners = array(
224+
T_OPEN_CURLY_BRACKET,
225+
T_OPEN_SQUARE_BRACKET,
226+
T_OPEN_PARENTHESIS,
227+
);
218228

219229
/**
220230
* Tokens that don't represent code.

0 commit comments

Comments
 (0)