/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Arrays/ |
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/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
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Files/ |
H A D | ByteOrderMarkSniff.php | 63 * @param int $stackPtr The position of the current token in 68 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 71 if ($stackPtr !== 0) { 79 $htmlBomHex = bin2hex(substr($tokens[$stackPtr]['content'], 0, $bomByteLength)); 83 $phpcsFile->addError($error, $stackPtr, 'Found', $errorData); 84 $phpcsFile->recordMetric($stackPtr, 'Using byte order mark', 'yes'); 89 $phpcsFile->recordMetric($stackPtr, 'Using byte order mark', 'no');
|
H A D | EndFileNewlineSniff.php | 59 * @param int $stackPtr The position of the current token in 64 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 68 $stackPtr = ($phpcsFile->numTokens - 1); 70 if ($tokens[$stackPtr]['content'] === '') { 71 $stackPtr--; 75 $lastChars = substr($tokens[$stackPtr]['content'], ($eolCharLen * -1)); 77 $phpcsFile->recordMetric($stackPtr, 'Newline at EOF', 'no'); 80 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NotFound'); 82 $phpcsFile->fixer->addNewline($stackPtr); 85 $phpcsFile->recordMetric($stackPtr, 'Newline at EOF', 'yes');
|
H A D | LineLengthSniff.php | 102 $stackPtr--; 104 if ($tokens[$stackPtr]['column'] === 1 105 && $tokens[$stackPtr]['length'] === 0 111 if ($tokens[$stackPtr]['column'] !== 1 114 $stackPtr--; 117 $lineLength = ($tokens[$stackPtr]['column'] + $tokens[$stackPtr]['length'] - 1); 135 && ($tokens[$stackPtr]['code'] === T_COMMENT 136 || $tokens[$stackPtr]['code'] === T_DOC_COMMENT_STRING) 138 $oldLength = strlen($tokens[$stackPtr]['content']); 142 $nonBreakingLength = $tokens[$stackPtr]['length']; [all …]
|
H A D | OneInterfacePerFileSniff.php | 46 * @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 D | OneTraitPerFileSniff.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 | MultipleStatementAlignmentSniff.php | 80 * @param int $stackPtr The position of the current token 85 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 90 if (isset($tokens[$stackPtr]['nested_parenthesis']) === true) { 98 $lastAssign = $this->checkAlignment($phpcsFile, $stackPtr); 108 * @param int $stackPtr The position of the current token 113 public function checkAlignment(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 119 $lastLine = $tokens[$stackPtr]['line']; 122 $lastCode = $stackPtr; 160 if ($assign !== $stackPtr) { 188 if ($assign !== $stackPtr) { [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/PHP/ |
H A D | DisallowShortOpenTagSniff.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 …if (isset($tokens[($stackPtr + 1)]) === true && $tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE)… 81 $phpcsFile->fixer->replaceToken($stackPtr, $correctOpening); 99 if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) { 100 $phpcsFile->fixer->replaceToken($stackPtr, '<?php echo '); 102 $phpcsFile->fixer->replaceToken($stackPtr, '<?php echo'); 118 for ($i = $stackPtr; $i < $phpcsFile->numTokens; $i++) { 125 if ($i !== $stackPtr) { [all …]
|
H A D | ForbiddenFunctionsSniff.php | 117 * @param int $stackPtr The position of the current token in 122 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 141 $prevToken = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true); 158 $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true); 164 …if ($tokens[$stackPtr]['code'] === T_STRING && $tokens[$nextToken]['code'] !== T_OPEN_PARENTHESIS)… 169 $function = strtolower($tokens[$stackPtr]['content']); 194 $this->addError($phpcsFile, $stackPtr, $tokens[$stackPtr]['content'], $pattern); 203 * @param int $stackPtr The position of the forbidden function 210 protected function addError($phpcsFile, $stackPtr, $function, $pattern=null) argument 235 $phpcsFile->addError($error, $stackPtr, $type, $data); [all …]
|
H A D | LowerCaseConstantSniff.php | 64 * @param int $stackPtr The position of the current token in the 69 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 72 $keyword = $tokens[$stackPtr]['content']; 76 $phpcsFile->recordMetric($stackPtr, 'PHP constant case', 'upper'); 78 $phpcsFile->recordMetric($stackPtr, 'PHP constant case', 'mixed'); 87 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Found', $data); 89 $phpcsFile->fixer->replaceToken($stackPtr, $expected); 92 $phpcsFile->recordMetric($stackPtr, 'PHP constant case', 'lower');
|
H A D | LowerCaseKeywordSniff.php | 115 * @param int $stackPtr The position of the current token in the 120 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 123 $keyword = $tokens[$stackPtr]['content']; 126 $phpcsFile->recordMetric($stackPtr, 'PHP keyword case', 'upper'); 128 $phpcsFile->recordMetric($stackPtr, 'PHP keyword case', 'mixed'); 137 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Found', $data); 139 $phpcsFile->fixer->replaceToken($stackPtr, strtolower($keyword)); 142 $phpcsFile->recordMetric($stackPtr, 'PHP keyword case', 'lower');
|
H A D | NoSilencedErrorsSniff.php | 60 * @param int $stackPtr The position of the current token 65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 70 $phpcsFile->addError($error, $stackPtr, 'Forbidden'); 73 $phpcsFile->addWarning($error, $stackPtr, 'Discouraged');
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Strings/ |
H A D | UnnecessaryStringConcatSniff.php | 79 * @param int $stackPtr The position of the current token 84 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 88 if ($tokens[$stackPtr]['code'] === T_STRING_CONCAT) { 98 $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true); 99 $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true); 128 $phpcsFile->addError($error, $stackPtr, 'Found'); 130 $phpcsFile->addWarning($error, $stackPtr, 'Found');
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/Classes/ |
H A D | ClassDeclarationSniff.php | 61 * @param integer $stackPtr The position of the current token in the 66 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 69 $errorData = array(strtolower($tokens[$stackPtr]['content'])); 71 if (isset($tokens[$stackPtr]['scope_opener']) === false) { 73 $phpcsFile->addWarning($error, $stackPtr, 'MissingBrace', $errorData); 77 $curlyBrace = $tokens[$stackPtr]['scope_opener']; 82 $phpcsFile->recordMetric($stackPtr, 'Class opening brace placement', 'same line'); 97 $phpcsFile->recordMetric($stackPtr, 'Class opening brace placement', 'new line'); 102 $tokens[$stackPtr]['content'], 103 $tokens[$stackPtr]['content'], [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/Commenting/ |
H A D | ClassCommentSniff.php | 52 * @param int $stackPtr The position of the current token 57 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 62 $type = strtolower($tokens[$stackPtr]['content']); 68 $commentEnd = $phpcsFile->findPrevious($find, ($stackPtr - 1), null, true); 72 $phpcsFile->addError('Missing class doc comment', $stackPtr, 'Missing'); 73 $phpcsFile->recordMetric($stackPtr, 'Class has doc comment', 'no'); 77 $phpcsFile->recordMetric($stackPtr, 'Class has doc comment', 'yes'); 80 …$phpcsFile->addError('You must use "/**" style comments for a class comment', $stackPtr, 'WrongSty… 85 $this->processTags($phpcsFile, $stackPtr, $tokens[$commentEnd]['comment_opener']);
|
H A D | FunctionCommentSniff.php | 48 * @param int $stackPtr The position of the current token 53 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 59 $commentEnd = $phpcsFile->findPrevious($find, ($stackPtr - 1), null, true); 75 $phpcsFile->recordMetric($stackPtr, 'Function has doc comment', 'no'); 78 $phpcsFile->recordMetric($stackPtr, 'Function has doc comment', 'yes'); 86 if ($tokens[$commentEnd]['line'] !== ($tokens[$stackPtr]['line'] - 1)) { 103 $this->processReturn($phpcsFile, $stackPtr, $commentStart); 104 $this->processThrows($phpcsFile, $stackPtr, $commentStart); 105 $this->processParams($phpcsFile, $stackPtr, $commentStart); 125 $methodName = $phpcsFile->getDeclarationName($stackPtr); [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/ControlStructures/ |
H A D | SwitchDeclarationSniff.php | 55 * @param int $stackPtr The position of the current token in the 60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 65 if (isset($tokens[$stackPtr]['scope_opener']) === false 66 || isset($tokens[$stackPtr]['scope_closer']) === false 71 $switch = $tokens[$stackPtr]; 72 $nextCase = $stackPtr; 225 * @param int $stackPtr The position to start looking at. 233 …while (($stackPtr = $phpcsFile->findNext(array(T_CASE, T_DEFAULT, T_SWITCH), $stackPtr, $end)) !==… 235 if ($tokens[$stackPtr]['code'] === T_SWITCH) { 236 $stackPtr = $tokens[$stackPtr]['scope_closer']; [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/CSS/ |
H A D | ClassDefinitionNameSpacingSniff.php | 55 * @param int $stackPtr The position in the stack where 60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 65 …$nested = $phpcsFile->findNext(T_OPEN_CURLY_BRACKET, ($stackPtr + 1), $tokens[$stackPtr]['bracket_… 79 …$prev = $phpcsFile->findPrevious(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr - 1), null, true… 83 for ($i = ($stackPtr - 1); $i >= 0; $i--) {
|
H A D | ColonSpacingSniff.php | 55 * @param int $stackPtr The position in the stack where 60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 75 if ($tokens[($stackPtr - 1)]['code'] === T_WHITESPACE) { 77 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Before'); 79 $phpcsFile->fixer->replaceToken(($stackPtr - 1), ''); 83 if ($tokens[($stackPtr + 1)]['code'] === T_SEMICOLON) { 88 if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) { 92 $phpcsFile->fixer->addContent($stackPtr, ' '); 95 $content = $tokens[($stackPtr + 1)]['content']; 103 $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' '); [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Functions/ |
H A D | FunctionDuplicateArgumentSniff.php | 50 * @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/Squiz/Sniffs/NamingConventions/ |
H A D | ValidFunctionNameSniff.php | 43 * @param int $stackPtr The position where this token was 48 protected function processTokenOutsideScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 50 $functionName = $phpcsFile->getDeclarationName($stackPtr); 60 $phpcsFile->addError($error, $stackPtr, 'DoubleUnderscore', $errorData); 66 $phpcsFile->addError($error, $stackPtr, 'NotCamelCaps', $errorData);
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Operators/ |
H A D | IncrementDecrementUsageSniff.php | 66 if ($tokens[$stackPtr]['code'] === T_INC || $tokens[$stackPtr]['code'] === T_DEC) { 67 $this->processIncDec($phpcsFile, $stackPtr); 90 if ($tokens[($stackPtr - 1)]['code'] === T_VARIABLE 94 $start = ($stackPtr + 1); 96 $start = ($stackPtr + 2); 154 if ($tokens[$stackPtr]['code'] !== T_EQUAL) { 161 if ($tokens[$stackPtr]['code'] === T_EQUAL) { 162 $nextVar = ($stackPtr + 1); 163 $previousVariable = ($stackPtr + 1); 182 $nextNumber = ($stackPtr + 1); [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/PHP/ |
H A D | DisallowMultipleAssignmentsSniff.php | 51 * @param int $stackPtr The position of the current token in the 56 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 61 …$function = $phpcsFile->findPrevious(array(T_FUNCTION, T_CLOSURE), ($stackPtr - 1), null, false, n… 65 if ($opener < $stackPtr && $closer > $stackPtr) { 78 for ($varToken = ($stackPtr - 1); $varToken >= 0; $varToken--) { 179 $phpcsFile->addError($error, $stackPtr, 'Found');
|