Home
last modified time | relevance | path

Searched refs:stackPtr (Results 176 – 200 of 219) sorted by relevance

123456789

/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/Files/
H A DEndFileNewlineSniff.php48 * @param int $stackPtr The position of the current token in
53 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
55 if ($phpcsFile->findNext(T_INLINE_HTML, ($stackPtr + 1)) !== false) {
76 $phpcsFile->recordMetric($stackPtr, 'Number of newlines at EOF', '0');
92 $phpcsFile->recordMetric($stackPtr, 'Number of newlines at EOF', $blankLines);
H A DClosingTagSniff.php48 * @param int $stackPtr The position of the current token in
53 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
89 $phpcsFile->recordMetric($stackPtr, 'PHP closing tag at end of PHP-only file', 'yes');
91 $phpcsFile->recordMetric($stackPtr, 'PHP closing tag at end of PHP-only file', 'no');
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/ControlStructures/
H A DMultiLineConditionSniff.php68 * @param int $stackPtr The position of the current token
73 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
77 if (isset($tokens[$stackPtr]['parenthesis_opener']) === false) {
81 $openBracket = $tokens[$stackPtr]['parenthesis_opener'];
82 $closeBracket = $tokens[$stackPtr]['parenthesis_closer'];
107 for ($i = ($stackPtr - 1); $i >= 0; $i--) {
108 if ($tokens[$i]['line'] !== $tokens[$stackPtr]['line']) {
227 if (isset($tokens[$stackPtr]['scope_opener']) === false) {
232 $openBrace = $tokens[$stackPtr]['scope_opener'];
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/Channels/
H A DDisallowSelfActionsSniff.php46 * @param int $stackPtr The position of the current token in
51 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
56 $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
62 $classNameToken = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
72 $classEnd = $tokens[$stackPtr]['scope_closer'];
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/Methods/
H A DFunctionClosingBraceSniff.php51 * @param int $stackPtr The position of the current token
56 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
60 if (isset($tokens[$stackPtr]['scope_closer']) === false) {
65 $closeBrace = $tokens[$stackPtr]['scope_closer'];
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/PHP/
H A DDisallowInlineIfSniff.php60 * @param int $stackPtr The position of the current token
65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
67 $phpcsFile->addError('Inline IF statements are not allowed', $stackPtr, 'Found');
H A DEvalSniff.php50 * @param int $stackPtr The position of the current token in
55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
58 $phpcsFile->addWarning($error, $stackPtr, 'Discouraged');
H A DHeredocSniff.php53 * @param int $stackPtr The position of the current token in the
58 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
61 $phpcsFile->addError($error, $stackPtr, 'NotAllowed');
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/PHP/
H A DBacktickOperatorSniff.php50 * @param int $stackPtr The position of the current token
55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
58 $phpcsFile->addError($error, $stackPtr, 'Found');
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/CSS/
H A DLowercaseStyleDefinitionSniff.php55 * @param int $stackPtr The position in the stack where
60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
63 $start = ($stackPtr + 1);
64 $end = ($tokens[$stackPtr]['bracket_closer'] - 1);
H A DOpacitySniff.php55 * @param int $stackPtr The position in the stack where
60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
64 if ($tokens[$stackPtr]['content'] !== 'opacity') {
68 $next = $phpcsFile->findNext(array(T_COLON, T_WHITESPACE), ($stackPtr + 1), null, true);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Commenting/
H A DFunctionCommentSniff.php47 * @param int $stackPtr The position of the current token
53 protected function processReturn(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $commentStart) argument
58 $methodName = $phpcsFile->getDeclarationName($stackPtr);
124 if (isset($tokens[$stackPtr]['scope_closer']) === true) {
125 $endToken = $tokens[$stackPtr]['scope_closer'];
155 if (isset($tokens[$stackPtr]['scope_closer']) === true) {
156 $endToken = $tokens[$stackPtr]['scope_closer'];
183 * @param int $stackPtr The position of the current token
252 * @param int $stackPtr The position of the current token
360 $realParams = $phpcsFile->getMethodParameters($stackPtr);
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/CodeAnalysis/
H A DJumbledIncrementerSniff.php67 * @param int $stackPtr The position of the current token
72 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
75 $token = $tokens[$stackPtr];
105 $phpcsFile->addWarning($error, $stackPtr, 'Found', $data);
H A DUnusedFunctionParameterSniff.php57 * @param int $stackPtr The position of the current token
62 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
65 $token = $tokens[$stackPtr];
73 foreach ($phpcsFile->getMethodParameters($stackPtr) as $param) {
74 $params[$param['name']] = $stackPtr;
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Files/
H A DOneInterfacePerFileSniff.php46 * @param int $stackPtr The position of the current token in
51 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
53 $nextInterface = $phpcsFile->findNext($this->register(), ($stackPtr + 1));
H A DOneTraitPerFileSniff.php46 * @param int $stackPtr The position of the current token in
51 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
53 $nextClass = $phpcsFile->findNext($this->register(), ($stackPtr + 1));
H A DOneClassPerFileSniff.php46 * @param int $stackPtr The position of the current token in
51 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
53 $nextClass = $phpcsFile->findNext($this->register(), ($stackPtr + 1));
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/Commenting/
H A DFileCommentSniff.php101 * @param int $stackPtr The position of the current token
106 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
111 $commentStart = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
131 $errorToken = ($stackPtr + 1);
142 $phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'yes');
148 $phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'no');
178 $phpcsFile->addError('Missing file doc comment', $stackPtr, 'Missing');
179 $phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'no');
183 $phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'yes');
204 $this->processTags($phpcsFile, $stackPtr, $commentStart);
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/PHP/
H A DEvalObjectFactorySniff.php46 * @param int $stackPtr The position of the current token in
51 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
60 $openBracket = $phpcsFile->findNext(T_OPEN_PARENTHESIS, ($stackPtr + 1));
117 $phpcsFile->addWarning($error, $stackPtr, 'Found');
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/Commenting/
H A DFunctionCommentSniff.php42 * @param int $stackPtr The position of the current token
47 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
49 parent::process($phpcsFile, $stackPtr);
55 $commentEnd = $phpcsFile->findPrevious($find, ($stackPtr - 1), null, true);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Objects/
H A DObjectMemberCommaSniff.php55 * @param int $stackPtr The position in the stack where
60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
64 …$prev = $phpcsFile->findPrevious(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr - 1), null, true…
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Tokenizers/
H A DJS.php727 for ($stackPtr = 0; $stackPtr < $numTokens; $stackPtr++) {
728 $token = $tokens[$stackPtr];
749 $tokens[$stackPtr]['content'] = substr(
765 $stackPtr--;
771 $stackPtr++;
773 if (isset($tokens[$stackPtr]) === false) {
831 $oldStackPtr = $stackPtr;
833 $newContent .= $tokens[$stackPtr]['content'];
834 $stackPtr++;
847 $stackPtr--;
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Functions/
H A DCallTimePassByReferenceSniff.php51 * @param int $stackPtr The position of the current token
56 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
65 $prev = $phpcsFile->findPrevious($findTokens, ($stackPtr - 1), null, true);
78 $functionName = $stackPtr;
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/Objects/
H A DCreateWidgetTypeCallbackSniff.php53 * @param int $stackPtr The position of the current token
58 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
62 $className = $phpcsFile->findPrevious(T_STRING, ($stackPtr - 1));
68 …$create = $phpcsFile->findNext(T_PROPERTY, $stackPtr, $tokens[$stackPtr]['bracket_closer'], null, …
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Functions/
H A DFunctionDeclarationArgumentSpacingSniff.php74 * @param int $stackPtr The position of the current token in the
79 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
83 if (isset($tokens[$stackPtr]['parenthesis_opener']) === false
84 || isset($tokens[$stackPtr]['parenthesis_closer']) === false
85 || $tokens[$stackPtr]['parenthesis_opener'] === null
86 || $tokens[$stackPtr]['parenthesis_closer'] === null
95 $openBracket = $tokens[$stackPtr]['parenthesis_opener'];
98 if ($tokens[$stackPtr]['code'] === T_CLOSURE) {
99 …Next(T_USE, ($tokens[$openBracket]['parenthesis_closer'] + 1), $tokens[$stackPtr]['scope_opener']);

123456789