Lines Matching +full:github +full:- +full:token
11 * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
12 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
19 * A sniff registers what token types it wishes to listen for, then, when
20 * PHP_CodeSniffer encounters that token, the sniff is invoked and passed
21 * information about where the token was found in the stack, and the
22 * PHP_CodeSniffer file in which the token was found.
28 * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
29 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
58 * Called when one of the token types that this sniff is listening for
61 * The stackPtr variable indicates where in the stack the token was found.
62 * A sniff can acquire information this token, along with all the other
63 * tokens within the stack by first acquiring the token stack:
66 * $tokens = $phpcsFile->getTokens();
67 * echo 'Encountered a '.$tokens[$stackPtr]['type'].' token';
68 * echo 'token information: ';
74 * message and the position of the offending token:
77 * $phpcsFile->addError('Encountered an error', $stackPtr);
81 * token was found.
83 * file's token stack where the token