Home
last modified time | relevance | path

Searched refs:stackPtr (Results 151 – 175 of 219) sorted by relevance

123456789

/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/PHP/
H A DGlobalKeywordSniff.php50 * @param int $stackPtr The position of the current token in the
55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
59 $nextVar = $tokens[$phpcsFile->findNext(array(T_VARIABLE), $stackPtr)];
63 $phpcsFile->addError($error, $stackPtr, 'NotAllowed', $data);
H A DDisallowSizeFunctionsInLoopsSniff.php75 * @param int $stackPtr The position of the current token
80 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
84 $openBracket = $tokens[$stackPtr]['parenthesis_opener'];
85 $closeBracket = $tokens[$stackPtr]['parenthesis_closer'];
87 if ($tokens[$stackPtr]['code'] === T_FOR) {
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Commenting/
H A DEmptyCatchCommentSniff.php50 * @param int $stackPtr The position of the current token in the
55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
59 $scopeStart = $tokens[$stackPtr]['scope_opener'];
60 …$firstContent = $phpcsFile->findNext(T_WHITESPACE, ($scopeStart + 1), $tokens[$stackPtr]['scope_cl…
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Operators/
H A DValidLogicalOperatorsSniff.php54 * @param int $stackPtr The position of the current token in the
59 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
68 $operator = strtolower($tokens[$stackPtr]['content']);
78 $phpcsFile->addError($error, $stackPtr, 'NotAllowed', $data);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/CSS/
H A DEmptyClassDefinitionSniff.php55 * @param int $stackPtr The position in the stack where
60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
63 … $next = $phpcsFile->findNext(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr + 1), null, true);
67 $phpcsFile->addError($error, $stackPtr, 'Found');
H A DDisallowMultipleStyleDefinitionsSniff.php55 * @param int $stackPtr The position in the stack where
60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
63 $next = $phpcsFile->findNext(T_STYLE, ($stackPtr + 1));
73 if ($tokens[$next]['line'] === $tokens[$stackPtr]['line']) {
H A DDuplicateStyleDefinitionSniff.php55 * @param int $stackPtr The position in the stack where
60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
67 $next = $stackPtr;
68 $end = $tokens[$stackPtr]['bracket_closer'];
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Functions/
H A DLowercaseFunctionKeywordsSniff.php56 * @param int $stackPtr The position of the current token in
61 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
65 $content = $tokens[$stackPtr]['content'];
73 $phpcsFile->addError($error, $stackPtr, 'FoundUppercase', $data);
H A DFunctionDuplicateArgumentSniff.php50 * @param int $stackPtr The position of the current token
55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
59 $openBracket = $tokens[$stackPtr]['parenthesis_opener'];
60 $closeBracket = $tokens[$stackPtr]['parenthesis_closer'];
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/Objects/
H A DDisallowNewWidgetSniff.php46 * @param int $stackPtr The position of the current token
51 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
55 $className = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
64 $phpcsFile->addError($error, $stackPtr, 'Found', $data);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Commenting/
H A DFixmeSniff.php60 * @param int $stackPtr The position of the current token
65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
69 $content = $tokens[$stackPtr]['content'];
85 $phpcsFile->addError($error, $stackPtr, $type, $data);
H A DTodoSniff.php58 * @param int $stackPtr The position of the current token
63 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
67 $content = $tokens[$stackPtr]['content'];
83 $phpcsFile->addWarning($error, $stackPtr, $type, $data);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Zend/Sniffs/Files/
H A DClosingTagSniff.php50 * @param int $stackPtr The position of the current token in
55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
72 $phpcsFile->recordMetric($stackPtr, 'PHP closing tag at EOF', 'yes');
74 $phpcsFile->recordMetric($stackPtr, 'PHP closing tag at EOF', 'no');
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/CodeAnalysis/
H A DUnnecessaryFinalModifierSniff.php60 * @param int $stackPtr The position of the current token
65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
68 $token = $tokens[$stackPtr];
76 …$prev = $phpcsFile->findPrevious(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr - 1), null, true…
H A DUselessOverridingMethodSniff.php59 * @param int $stackPtr The position of the current token
64 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
67 $token = $tokens[$stackPtr];
75 $methodName = $phpcsFile->getDeclarationName($stackPtr);
79 foreach ($phpcsFile->getMethodParameters($stackPtr) as $param) {
166 … $phpcsFile->addWarning('Possible useless method overriding detected', $stackPtr, 'Found');
H A DForLoopShouldBeWhileLoopSniff.php60 * @param int $stackPtr The position of the current token
65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
68 $token = $tokens[$stackPtr];
96 $phpcsFile->addWarning($error, $stackPtr, 'CanSimplify');
H A DUnconditionalIfStatementSniff.php67 * @param int $stackPtr The position of the current token
72 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
75 $token = $tokens[$stackPtr];
98 $phpcsFile->addWarning($error, $stackPtr, 'Found');
H A DEmptyStatementSniff.php72 * @param int $stackPtr The position of the current token
77 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
80 $token = $tokens[$stackPtr];
101 $phpcsFile->addError($error, $stackPtr, 'Detected'.$name, array($name));
H A DForLoopWithTestFunctionCallSniff.php63 * @param int $stackPtr The position of the current token
68 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
71 $token = $tokens[$stackPtr];
103 $phpcsFile->addWarning($error, $stackPtr, 'NotAllowed');
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/VersionControl/
H A DSubversionPropertiesSniff.php62 * @param int $stackPtr The position of the current token
67 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
73 $prevOpenTag = $phpcsFile->findPrevious(T_OPEN_TAG, ($stackPtr - 1));
95 $phpcsFile->addError($error, $stackPtr, 'Unexpected', $data);
107 $phpcsFile->addError($error, $stackPtr, 'Missing', $data);
120 $phpcsFile->addError($error, $stackPtr, 'NoMatch', $data);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Objects/
H A DObjectInstantiationSniff.php50 * @param int $stackPtr The position in the stack where
55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
62 $prev = $phpcsFile->findPrevious($allowedTokens, ($stackPtr - 1), null, true);
75 $phpcsFile->addError($error, $stackPtr, 'NotAssigned');
H A DDisallowObjectStringIndexSniff.php53 * @param int $stackPtr The position of the current token
58 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
63 $index = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
87 $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/PHP/
H A DReturnFunctionValueSniff.php46 * @param int $stackPtr The position of the current token in
51 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
55 $functionName = $phpcsFile->findNext(T_STRING, ($stackPtr + 1), null, false, null, true);
67 $phpcsFile->addWarning($error, $stackPtr, 'NotAssigned');
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/CSS/
H A DBrowserSpecificStylesSniff.php72 * @param int $stackPtr The position in the stack where
77 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
90 $content = $tokens[$stackPtr]['content'];
94 $phpcsFile->addError($error, $stackPtr, 'ForbiddenStyle');
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/PHP/
H A DDeprecatedFunctionsSniff.php73 * @param int $stackPtr The position of the forbidden function
80 protected function addError($phpcsFile, $stackPtr, $function, $pattern=null) argument
87 $phpcsFile->addError($error, $stackPtr, $type, $data);
89 $phpcsFile->addWarning($error, $stackPtr, $type, $data);

123456789