/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/WhiteSpace/ |
H A D | FunctionOpeningBraceSpaceSniff.php | 63 * @param int $stackPtr The position of the current token 68 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 72 if (isset($tokens[$stackPtr]['scope_opener']) === false) { 77 $openBrace = $tokens[$stackPtr]['scope_opener']; 80 if ($nextContent === $tokens[$stackPtr]['scope_closer']) {
|
H A D | FunctionSpacingSniff.php | 57 * @param int $stackPtr The position of the current token 62 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 72 if (isset($tokens[$stackPtr]['scope_closer']) === false) { 74 $closer = $phpcsFile->findNext(T_SEMICOLON, $stackPtr); 76 $closer = $tokens[$stackPtr]['scope_closer']; 138 for ($i = $stackPtr; $i > 0; $i--) { 153 $currentLine = $tokens[$stackPtr]['line']; 173 $i = ($stackPtr - 1); 215 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Before', $data); 220 $nextSpace = $phpcsFile->findNext(T_WHITESPACE, ($prevContent + 1), $stackPtr); [all …]
|
H A D | LanguageConstructSpacingSniff.php | 60 * @param int $stackPtr The position of the current token in 65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 69 if ($tokens[($stackPtr + 1)]['code'] === T_SEMICOLON) { 74 if ($tokens[($stackPtr + 1)]['code'] === T_WHITESPACE) { 75 $content = $tokens[($stackPtr + 1)]['content']; 82 $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' '); 85 } else if ($tokens[($stackPtr + 1)]['code'] !== T_OPEN_PARENTHESIS) { 88 $tokens[$stackPtr]['content'].' '.$tokens[($stackPtr + 1)]['content'], 89 $tokens[$stackPtr]['content'].$tokens[($stackPtr + 1)]['content'], 91 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Incorrect', $data); [all …]
|
H A D | LogicalOperatorSpacingSniff.php | 65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 70 if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE) { 74 $phpcsFile->fixer->addContentBefore($stackPtr, ' '); 78 if ($tokens[$stackPtr]['line'] === $tokens[$prev]['line'] 79 && strlen($tokens[($stackPtr - 1)]['content']) !== 1 81 $found = strlen($tokens[($stackPtr - 1)]['content']); 92 if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) { 96 $phpcsFile->fixer->addContent($stackPtr, ' '); 100 if ($tokens[$stackPtr]['line'] === $tokens[$next]['line'] 101 && strlen($tokens[($stackPtr + 1)]['content']) !== 1 [all …]
|
H A D | MemberVarSpacingSniff.php | 40 * @param int $stackPtr The position where the token was found. 44 protected function processMemberVar(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 52 $start = $stackPtr; 53 $prev = $phpcsFile->findPrevious($ignore, ($stackPtr - 1), null, true); 72 for ($i = ($prev + 1); $i <= $stackPtr; $i++) { 73 if ($tokens[$i]['line'] === $tokens[$stackPtr]['line']) { 90 if ($start === $stackPtr) { 111 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Incorrect', $data); 137 * @param int $stackPtr The position where the token was found. 141 protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument [all …]
|
H A D | ObjectOperatorSpacingSniff.php | 62 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 65 if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE) { 68 if ($tokens[($stackPtr - 2)]['line'] !== $tokens[$stackPtr]['line']) { 71 $before = $tokens[($stackPtr - 1)]['length']; 75 if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) { 78 if ($tokens[($stackPtr + 2)]['line'] !== $tokens[$stackPtr]['line']) { 81 $after = $tokens[($stackPtr + 1)]['length']; 88 $this->checkSpacingBeforeOperator($phpcsFile, $stackPtr, $before); 89 $this->checkSpacingAfterOperator($phpcsFile, $stackPtr, $after); 113 $phpcsFile->fixer->replaceToken(($stackPtr - 1), ''); [all …]
|
H A D | OperatorSpacingSniff.php | 88 if ($tokens[$stackPtr]['code'] === T_EQUAL 89 || $tokens[$stackPtr]['code'] === T_MINUS 106 if ($tokens[$stackPtr]['code'] === T_EQUAL) { 108 if (isset($tokens[($stackPtr + 1)]) === true 141 if ($tokens[($stackPtr - 2)]['line'] !== $tokens[$stackPtr]['line']) { 170 if ($tokens[($stackPtr + 2)]['line'] !== $tokens[$stackPtr]['line']) { 192 if ($tokens[$stackPtr]['code'] === T_MINUS || $tokens[$stackPtr]['code'] === T_PLUS) { 241 $operator = $tokens[$stackPtr]['content']; 254 if ($tokens[($stackPtr - 2)]['line'] !== $tokens[$stackPtr]['line']) { 273 $i = ($stackPtr - 2); [all …]
|
H A D | PropertyLabelSpacingSniff.php | 59 * @param int $stackPtr The position of the current token 64 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 68 $colon = $phpcsFile->findNext(T_COLON, ($stackPtr + 1)); 70 if ($colon !== ($stackPtr + 1)) { 72 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Before'); 74 $phpcsFile->fixer->replaceToken(($stackPtr + 1), ''); 80 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'After');
|
H A D | ScopeClosingBraceSniff.php | 50 * @param int $stackPtr The position of the current token in the 55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 61 if (isset($tokens[$stackPtr]['scope_closer']) === false) { 69 … $lineStart = $phpcsFile->findFirstOnLine(array(T_WHITESPACE, T_INLINE_HTML), $stackPtr, true); 72 $scopeStart = $tokens[$stackPtr]['scope_opener']; 73 $scopeEnd = $tokens[$stackPtr]['scope_closer']; 90 if ($tokens[$stackPtr]['code'] !== T_DEFAULT 91 && $tokens[$stackPtr]['code'] !== T_CASE
|
H A D | ScopeKeywordSpacingSniff.php | 52 * @param int $stackPtr The position of the current token 57 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 61 $prevToken = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true); 62 $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true); 64 if ($tokens[$stackPtr]['code'] === T_STATIC 77 $nextToken = $tokens[($stackPtr + 1)]; 82 $data = array($tokens[$stackPtr]['content']); 83 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Incorrect', $data); 85 $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' ');
|
H A D | SemicolonSpacingSniff.php | 60 * @param int $stackPtr The position of the current token 65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 69 $prevType = $tokens[($stackPtr - 1)]['code']; 74 …$nonSpace = $phpcsFile->findPrevious(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr - 2), null, … 81 $found = $phpcsFile->getTokensAsString($nonSpace, ($stackPtr - $nonSpace)).';'; 88 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Incorrect', $data); 91 $i = ($stackPtr - 1); 98 $phpcsFile->fixer->replaceToken($stackPtr, '');
|
H A D | SuperfluousWhitespaceSniff.php | 103 $stackPtr = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true); 107 if ($stackPtr === 0) { 164 $stackPtr--; 201 && $tokens[($stackPtr + 1)]['line'] === $tokens[$stackPtr]['line'] 208 && $tokens[($stackPtr - 1)]['line'] !== $tokens[$stackPtr]['line'] 221 … } else if ($tokens[($stackPtr - 1)]['content'] !== rtrim($tokens[($stackPtr - 1)]['content']) 222 && $tokens[($stackPtr - 1)]['line'] === $tokens[$stackPtr]['line'] 226 … $phpcsFile->fixer->replaceToken(($stackPtr - 1), rtrim($tokens[($stackPtr - 1)]['content'])); 236 && $tokens[($stackPtr - 1)]['line'] < $tokens[$stackPtr]['line'] 237 && $tokens[($stackPtr - 2)]['line'] === $tokens[($stackPtr - 1)]['line'] [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Zend/Sniffs/Debug/ |
H A D | CodeAnalyzerSniff.php | 50 * @param int $stackPtr The position in the stack where 55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Zend/Sniffs/Files/ |
H A D | ClosingTagSniff.php | 50 * @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/Zend/Sniffs/NamingConventions/ |
H A D | ValidVariableNameSniff.php | 52 * @param int $stackPtr The position of the current token in the 57 protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 60 $varName = ltrim($tokens[$stackPtr]['content'], '$'); 136 $phpcsFile->addError($error, $stackPtr, 'NotCamelCaps', $data); 140 $phpcsFile->addWarning($warning, $stackPtr, 'ContainsNumbers', $data); 150 * @param int $stackPtr The position of the current token in the 155 protected function processMemberVar(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 158 $varName = ltrim($tokens[$stackPtr]['content'], '$'); 159 $memberProps = $phpcsFile->getMemberProperties($stackPtr); 185 $phpcsFile->addError($error, $stackPtr, 'MemberVarNotCamelCaps', $data); [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Tokenizers/ |
H A D | CSS.php | 79 for ($stackPtr = 1; $stackPtr < $numTokens; $stackPtr++) { 80 $token = $tokens[$stackPtr]; 108 for ($stackPtr = ($stackPtr + 3); $stackPtr < $numTokens; $stackPtr++) { 114 $stackPtr += 2; 248 $stackPtr--; 277 for ($stackPtr = 0; $stackPtr < $numTokens; $stackPtr++) { 278 $token = $finalTokens[$stackPtr]; 357 … $finalTokens[($stackPtr + 1)]['content'] = '-'.$finalTokens[($stackPtr + 1)]['content']; 433 $stackPtr = $i; 455 …$newContent = $finalTokens[($stackPtr - 1)]['content'].$finalTokens[$stackPtr]['content'].$finalTo… [all …]
|
H A D | Comment.php | 60 $tokens[$stackPtr] = array( 67 $openPtr = $stackPtr; 68 $stackPtr++; 111 $tokens[$stackPtr] = $space; 112 $stackPtr++; 131 $tokens[$stackPtr] = array( 137 $stackPtr++; 147 $tokens[$stackPtr] = $lineToken; 158 $stackPtr++; 162 $tokens[$stackPtr] = $closeTag; [all …]
|
H A D | JS.php | 727 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 …]
|
H A D | PHP.php | 338 for ($stackPtr = 0; $stackPtr < $numTokens; $stackPtr++) { 392 $tokens[($stackPtr + 1)][1] = substr($tokens[($stackPtr + 1)][1], 1); 462 $stackPtr = $i; 544 $stackPtr = $i; 610 $stackPtr += 2; 632 $stackPtr++; 655 $stackPtr++; 685 $stackPtr++; 713 $stackPtr++; 756 if ($stackPtr > 1 [all …]
|