/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/PHP/ |
H A D | GlobalKeywordSniff.php | 50 * @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 D | HeredocSniff.php | 53 * @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');
|
H A D | InnerFunctionsSniff.php | 50 * @param int $stackPtr The position of the current token in the 55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 59 $function = $phpcsFile->getCondition($stackPtr, T_FUNCTION); 65 $class = $phpcsFile->getCondition($stackPtr, T_ANON_CLASS); 71 $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true); 78 $phpcsFile->addError($error, $stackPtr, 'NotAllowed');
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Strings/ |
H A D | DoubleQuoteUsageSniff.php | 53 * @param int $stackPtr The position of the current token 58 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 63 if ($tokens[$stackPtr]['code'] === $tokens[($stackPtr - 1)]['code']) { 67 $workingString = $tokens[$stackPtr]['content']; 68 $lastStringToken = $stackPtr; 70 $i = ($stackPtr + 1); 73 && $tokens[$i]['code'] === $tokens[$stackPtr]['code'] 93 if ($tokens[$stackPtr]['code'] === T_DOUBLE_QUOTED_STRING) { 99 $phpcsFile->addError($error, $stackPtr, 'ContainsVar', $data); 141 $phpcsFile->fixer->replaceToken($stackPtr, "'$innerContent'"); [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/WhiteSpace/ |
H A D | ControlStructureSpacingSniff.php | 76 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 80 if (isset($tokens[$stackPtr]['parenthesis_opener']) === true 81 && isset($tokens[$stackPtr]['parenthesis_closer']) === true 83 $parenOpener = $tokens[$stackPtr]['parenthesis_opener']; 84 $parenCloser = $tokens[$stackPtr]['parenthesis_closer']; 126 if (isset($tokens[$stackPtr]['scope_closer']) === false) { 130 $scopeOpener = $tokens[$stackPtr]['scope_opener']; 131 $scopeCloser = $tokens[$stackPtr]['scope_closer']; 246 if ($tokens[$stackPtr]['code'] === T_IF) { 253 && $tokens[$stackPtr]['code'] === T_DO [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');
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Tokenizers/ |
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 …]
|
/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 …]
|
/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 …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/CodeAnalysis/ |
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 | 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/Files/ |
H A D | LineEndingsSniff.php | 68 * @param int $stackPtr The position of the current token in 73 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 79 $phpcsFile->recordMetric($stackPtr, 'EOL char', $found);
|
H A D | LowercasedFilenameSniff.php | 46 * @param int $stackPtr The position of the current token in 51 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 66 $phpcsFile->addError($error, $stackPtr, 'NotFound', $data); 67 $phpcsFile->recordMetric($stackPtr, 'Lowercase filename', 'no'); 69 $phpcsFile->recordMetric($stackPtr, 'Lowercase filename', 'yes');
|
H A D | OneClassPerFileSniff.php | 46 * @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/Generic/Sniffs/Formatting/ |
H A D | DisallowMultipleStatementsSniff.php | 48 * @param int $stackPtr The position of the current token in 53 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 57 … = $phpcsFile->findPrevious(array(T_SEMICOLON, T_OPEN_TAG, T_OPEN_TAG_WITH_ECHO), ($stackPtr - 1)); 62 $phpcsFile->recordMetric($stackPtr, 'Multiple statements on same line', 'no'); 67 if (isset($tokens[$stackPtr]['nested_parenthesis']) === true) { 68 foreach ($tokens[$stackPtr]['nested_parenthesis'] as $bracket) { 81 if ($tokens[$prev]['line'] === $tokens[$stackPtr]['line']) { 82 $phpcsFile->recordMetric($stackPtr, 'Multiple statements on same line', 'yes'); 85 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SameLine'); 96 $phpcsFile->recordMetric($stackPtr, 'Multiple statements on same line', 'no');
|
H A D | NoSpaceAfterCastSniff.php | 50 * @param int $stackPtr The position of the current token in 55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 59 if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) { 64 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceFound'); 66 $phpcsFile->fixer->replaceToken(($stackPtr + 1), '');
|
H A D | SpaceAfterCastSniff.php | 50 * @param int $stackPtr The position of the current token in 55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 59 if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) { 61 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSpace'); 63 $phpcsFile->fixer->addContent($stackPtr, ' '); 66 $phpcsFile->recordMetric($stackPtr, 'Spacing after cast statement', 0); 70 …$phpcsFile->recordMetric($stackPtr, 'Spacing after cast statement', $tokens[($stackPtr + 1)]['leng… 72 if ($tokens[($stackPtr + 1)]['length'] !== 1) { 74 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'TooMuchSpace'); 76 $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' ');
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Metrics/ |
H A D | NestingLevelSniff.php | 62 * @param int $stackPtr The position of the current token 67 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 72 if (isset($tokens[$stackPtr]['scope_opener']) === false) { 77 $start = $tokens[$stackPtr]['scope_opener']; 78 $end = $tokens[$stackPtr]['scope_closer']; 91 $nestingLevel = ($nestingLevel - $tokens[$stackPtr]['level'] - 1); 99 $phpcsFile->addError($error, $stackPtr, 'MaxExceeded', $data); 106 $phpcsFile->addWarning($warning, $stackPtr, 'TooHigh', $data);
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/Channels/ |
H A D | UnusedSystemSniff.php | 46 * @param int $stackPtr The position of the current token in 51 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 56 $methodName = strtolower($tokens[($stackPtr + 1)]['content']); 61 $systemName = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 3), null, true); 82 $level = $tokens[$stackPtr]['level']; 83 for ($i = ($stackPtr + 1); $i < $phpcsFile->numTokens; $i++) { 89 if ($tokens[$stackPtr]['level'] === $level) { 92 $conditions = array_keys($tokens[$stackPtr]['conditions']); 147 $phpcsFile->addError($error, $stackPtr, 'Found', $data);
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/Commenting/ |
H A D | FunctionCommentSniff.php | 42 * @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);
|