/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/ |
H A D | File.php | 816 $stackPtr, argument 822 if ($stackPtr === null) { 850 $stackPtr, argument 856 if ($stackPtr === null) { 933 $stackPtr, argument 964 $stackPtr, argument 1899 $stackPtr, argument 2405 return $stackPtr; 2556 $conditions[$stackPtr] = $tokens[$stackPtr]['code']; 3189 ($stackPtr - 1), [all …]
|
H A D | Fixer.php | 350 public function getTokenContent($stackPtr) argument 357 return $this->_tokens[$stackPtr]; 410 $applied[] = $stackPtr; 416 foreach ($applied as $stackPtr) { 517 … if (trim($this->_tokens[$stackPtr]) === '' && isset($this->_tokens[($stackPtr + 1)]) === true) { 574 $this->_oldTokenValues[$stackPtr]['prev'] = $this->_oldTokenValues[$stackPtr]['curr']; 579 $this->_fixedTokens[$stackPtr] = $this->_tokens[$stackPtr]; 606 public function revertToken($stackPtr) argument 626 … if (trim($this->_tokens[$stackPtr]) === '' && isset($tokens[($stackPtr + 1)]) === true) { 634 $this->_tokens[$stackPtr] = $this->_fixedTokens[$stackPtr]; [all …]
|
H A D | Sniff.php | 82 * @param int $stackPtr The position in the PHP_CodeSniffer 91 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr); argument
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/ |
H A D | AbstractPatternSniff.php | 277 $stackPtr argument 291 $origStackPtr = $stackPtr; 295 $stackPtr--; 357 $stackPtr, 520 $stackPtr, 603 $stackPtr 618 $stackPtr 649 $stackPtr++; 695 $stackPtr, 703 $stackPtr = $next; [all …]
|
H A D | AbstractScopeSniff.php | 136 * @param int $stackPtr The position in the stack where this 142 public final function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 147 foreach ($tokens[$stackPtr]['conditions'] as $scope => $code) { 149 $this->processTokenWithinScope($phpcsFile, $stackPtr, $scope); 155 $this->processTokenOutsideScope($phpcsFile, $stackPtr); 166 * @param int $stackPtr The position in the stack where this 176 $stackPtr, argument 186 * @param int $stackPtr The position in the stack where this 193 $stackPtr argument
|
H A D | AbstractVariableSniff.php | 100 $stackPtr, argument 111 if ($stackPtr > $this->_endFunction) { 115 if ($tokens[$stackPtr]['code'] === T_FUNCTION 141 || $tokens[$stackPtr]['code'] === T_HEREDOC 176 $stackPtr argument 180 if ($tokens[$stackPtr]['code'] === T_VARIABLE) { 181 $this->processVariable($phpcsFile, $stackPtr); 183 || $tokens[$stackPtr]['code'] === T_HEREDOC 206 $stackPtr argument 221 $stackPtr argument [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Arrays/ |
H A D | DisallowLongArraySyntaxSniff.php | 46 * @param int $stackPtr The position of the current token 51 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 53 $phpcsFile->recordMetric($stackPtr, 'Short array syntax used', 'no'); 56 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Found'); 60 $opener = $tokens[$stackPtr]['parenthesis_opener']; 61 $closer = $tokens[$stackPtr]['parenthesis_closer']; 66 $phpcsFile->fixer->replaceToken($stackPtr, '[]'); 68 $phpcsFile->fixer->replaceToken($stackPtr, '');
|
H A D | DisallowShortArraySyntaxSniff.php | 46 * @param int $stackPtr The position of the current token 51 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 53 $phpcsFile->recordMetric($stackPtr, 'Short array syntax used', 'yes'); 56 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Found'); 60 $opener = $tokens[$stackPtr]['bracket_opener']; 61 $closer = $tokens[$stackPtr]['bracket_closer'];
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Classes/ |
H A D | DuplicateClassNameSniff.php | 58 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 70 $stackPtr = $phpcsFile->findNext($findTokens, ($stackPtr + 1)); 71 while ($stackPtr !== false) { 72 if ($tokens[$stackPtr]['code'] === T_CLOSE_TAG) { 79 if ($tokens[$stackPtr]['code'] === T_NAMESPACE) { 86 ($stackPtr + 1), 91 … $namespace = trim($phpcsFile->getTokensAsString(($stackPtr + 1), ($nsEnd - $stackPtr - 1))); 92 $stackPtr = $nsEnd; 94 $nameToken = $phpcsFile->findNext(T_STRING, $stackPtr); 102 $type = strtolower($tokens[$stackPtr]['content']); [all …]
|
H A D | OpeningBraceSameLineSniff.php | 57 * @param int $stackPtr The position of the current token in the 62 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 65 $scope_identifier = $phpcsFile->findNext(T_STRING, ($stackPtr + 1)); 66 …$errorData = array(strtolower($tokens[$stackPtr]['content']).' '.$tokens[$scope_identifier]… 68 if (isset($tokens[$stackPtr]['scope_opener']) === false) { 70 $phpcsFile->addWarning($error, $stackPtr, 'MissingBrace', $errorData); 74 $openingBrace = $tokens[$stackPtr]['scope_opener']; 77 $lastClassLineToken = $phpcsFile->findPrevious(T_STRING, ($openingBrace - 1), $stackPtr); 83 $phpcsFile->recordMetric($stackPtr, 'Class opening brace placement', 'new line'); 93 $phpcsFile->recordMetric($stackPtr, 'Class opening brace placement', 'same line'); [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/CodeAnalysis/ |
H A D | EmptyStatementSniff.php | 72 * @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 D | ForLoopShouldBeWhileLoopSniff.php | 60 * @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 D | ForLoopWithTestFunctionCallSniff.php | 63 * @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');
|
H A D | JumbledIncrementerSniff.php | 67 * @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 D | UnconditionalIfStatementSniff.php | 67 * @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 D | UnnecessaryFinalModifierSniff.php | 60 * @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 D | UnusedFunctionParameterSniff.php | 57 * @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;
|
H A D | UselessOverridingMethodSniff.php | 59 * @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');
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Commenting/ |
H A D | DocCommentSniff.php | 61 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 64 $commentStart = $stackPtr; 65 $commentEnd = $tokens[$stackPtr]['comment_closer']; 76 $phpcsFile->addError($error, $stackPtr, 'Empty'); 81 if ($tokens[$short]['line'] === $tokens[$stackPtr]['line']) { 86 $phpcsFile->fixer->addNewline($stackPtr); 123 $phpcsFile->addError($error, $stackPtr, 'MissingShort'); 128 if ($tokens[$short]['line'] !== ($tokens[$stackPtr]['line'] + 1)) { 133 for ($i = $stackPtr; $i < $short; $i++) { 214 $indent = str_repeat(' ', $tokens[$stackPtr]['column']); [all …]
|
H A D | FixmeSniff.php | 60 * @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 D | TodoSniff.php | 58 * @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/Generic/Sniffs/ControlStructures/ |
H A D | InlineControlStructureSniff.php | 76 * @param int $stackPtr The position of the current token in the 81 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 85 if (isset($tokens[$stackPtr]['scope_opener']) === true) { 91 if ($tokens[$stackPtr]['code'] === T_ELSE) { 92 $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true); 98 if ($tokens[$stackPtr]['code'] === T_WHILE) { 116 $lastDo = $phpcsFile->findPrevious(T_DO, ($stackPtr - 1)); 143 if (isset($tokens[$stackPtr]['parenthesis_closer']) === true) { 144 $closer = $tokens[$stackPtr]['parenthesis_closer']; 146 $closer = $stackPtr; [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Debug/ |
H A D | CSSLintSniff.php | 55 * @param int $stackPtr The position in the stack where 60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
|
H A D | ClosureLinterSniff.php | 71 * @param int $stackPtr The position in the stack where 77 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
|
H A D | ESLintSniff.php | 62 * @param int $stackPtr The position in the stack where 67 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
|