/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/Debug/ |
H A D | DebugCodeSniff.php | 46 * @param int $stackPtr The position of the current token in 51 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 55 $className = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true); 57 $method = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true); 60 $phpcsFile->addError($error, $stackPtr, 'Found', $data);
|
H A D | FirebugConsoleSniff.php | 58 * @param int $stackPtr The position of the current token 63 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 67 if (strtolower($tokens[$stackPtr]['content']) === 'console') { 69 $phpcsFile->addError($error, $stackPtr, 'ConflictFound');
|
/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/WhiteSpace/ |
H A D | CastSpacingSniff.php | 50 * @param int $stackPtr The position of the current token in the 55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 59 $content = $tokens[$stackPtr]['content']; 70 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'ContainsWhiteSpace', $data); 72 $phpcsFile->fixer->replaceToken($stackPtr, $expected);
|
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']) {
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/Methods/ |
H A D | MethodDeclarationSniff.php | 50 * @param int $stackPtr The position where the token was found. 55 … protected function processTokenWithinScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $currScope) argument 59 $methodName = $phpcsFile->getDeclarationName($stackPtr); 68 $phpcsFile->addWarning($error, $stackPtr, 'Underscore', $data); 78 $prev = $phpcsFile->findPrevious($find, ($stackPtr - 1), null, true); 80 $prefix = $stackPtr; 145 foreach ($fixes as $stackPtr => $content) { 146 $phpcsFile->fixer->replaceToken($stackPtr, $content);
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Commenting/ |
H A D | DocCommentAlignmentSniff.php | 60 * @param int $stackPtr The position of the current token 65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 77 $nextToken = $phpcsFile->findNext($ignore, ($stackPtr + 1), null, true); 95 …$prevToken = $phpcsFile->findPrevious(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr - 1), null,… 103 $requiredColumn = ($tokens[$stackPtr]['column'] + 1); 104 $endComment = $tokens[$stackPtr]['comment_closer']; 105 for ($i = ($stackPtr + 1); $i <= $endComment; $i++) { 114 … $prev = $phpcsFile->findPrevious(T_DOC_COMMENT_WHITESPACE, ($i - 1), $stackPtr, true);
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/PHP/ |
H A D | SAPIUsageSniff.php | 48 * @param int $stackPtr The position of the current token in 53 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 64 $prevToken = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true); 70 $function = strtolower($tokens[$stackPtr]['content']); 73 $phpcsFile->addError($error, $stackPtr, 'FunctionFound');
|
H A D | ClosingPHPTagSniff.php | 46 * @param int $stackPtr The position of the current token in 51 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 53 $closeTag = $phpcsFile->findNext(T_CLOSE_TAG, $stackPtr); 56 $phpcsFile->addError($error, $stackPtr, 'NotFound');
|
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/NamingConventions/ |
H A D | ConstructorNameSniff.php | 66 * @param int $stackPtr The position of the current token 74 $stackPtr, argument 83 $methodName = $phpcsFile->getDeclarationName($stackPtr); 88 $phpcsFile->addError($error, $stackPtr, 'OldStyle'); 103 if (isset($tokens[$stackPtr]['scope_closer']) === false) { 107 $endFunctionIndex = $tokens[$stackPtr]['scope_closer']; 108 $startIndex = $stackPtr;
|
/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--) {
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/Functions/ |
H A D | ValidDefaultValueSniff.php | 54 * @param int $stackPtr The position of the current token in the 59 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 63 $argStart = $tokens[$stackPtr]['parenthesis_opener']; 64 $argEnd = $tokens[$stackPtr]['parenthesis_closer']; 70 $params = $phpcsFile->getMethodParameters($stackPtr);
|
H A D | FunctionCallSignatureSniff.php | 86 * @param int $stackPtr The position of the current token 91 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 113 $previous = $phpcsFile->findPrevious($search, ($stackPtr - 1), null, true); 121 if (($stackPtr + 1) !== $openBracket) { 127 for ($i = ($stackPtr + 1); $i < $openBracket; $i++) { 159 $this->processMultiLineCall($phpcsFile, $stackPtr, $openBracket, $tokens); 161 $this->processSingleLineCall($phpcsFile, $stackPtr, $openBracket, $tokens); 171 * @param int $stackPtr The position of the current token 196 * @param int $stackPtr The position of the current token 316 * @param int $stackPtr The position of the current token [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Classes/ |
H A D | LowercaseClassKeywordsSniff.php | 60 * @param int $stackPtr The position of the current token in 65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 69 $content = $tokens[$stackPtr]['content']; 78 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'FoundUppercase', $data); 80 $phpcsFile->fixer->replaceToken($stackPtr, strtolower($content));
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/ControlStructures/ |
H A D | LowercaseDeclarationSniff.php | 61 * @param int $stackPtr The position of the current token in 66 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 70 $content = $tokens[$stackPtr]['content']; 79 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'FoundUppercase', $data); 81 $phpcsFile->fixer->replaceToken($stackPtr, strtolower($content));
|
H A D | SwitchDeclarationSniff.php | 68 * @param int $stackPtr The position of the current token in the 73 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 78 if (isset($tokens[$stackPtr]['scope_opener']) === false 79 || isset($tokens[$stackPtr]['scope_closer']) === false 84 $switch = $tokens[$stackPtr]; 85 $nextCase = $stackPtr; 192 … $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($nextBreak - 1), $stackPtr, true); 198 $nextLine = $tokens[$tokens[$stackPtr]['scope_closer']]['line']; 200 for ($i = ($semicolon + 1); $i < $tokens[$stackPtr]['scope_closer']; $i++) { 303 $phpcsFile->addError($error, $stackPtr, 'MissingDefault'); [all …]
|
H A D | ElseIfDeclarationSniff.php | 51 * @param int $stackPtr The position of the current token in the 56 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 59 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NotAllowed'); 61 $phpcsFile->fixer->replaceToken($stackPtr, 'else if');
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/Strings/ |
H A D | JoinStringsSniff.php | 53 * @param integer $stackPtr The position of the current token 58 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 62 if ($tokens[$stackPtr]['content'] !== 'join') { 66 …$prev = $phpcsFile->findPrevious(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr - 1), null, true… 79 $phpcsFile->addError($error, $stackPtr, 'ArrayNotAllowed');
|
/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');
|
H A D | DisallowObEndFlushSniff.php | 50 * @param int $stackPtr The position of the current token in the 55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 59 if ($tokens[$stackPtr]['content'] === 'ob_end_flush') { 60 …end_flush() is not allowed; use ob_get_contents() and ob_end_clean() instead', $stackPtr, 'Found');
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/PHP/ |
H A D | GetRequestDataSniff.php | 46 * @param int $stackPtr The position of the current token in 51 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 55 $varName = $tokens[$stackPtr]['content']; 67 foreach ($tokens[$stackPtr]['conditions'] as $i => $type) { 95 $openBracket = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true); 112 $phpcsFile->addError($error, $stackPtr, $type, $data);
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/Objects/ |
H A D | AssignThisSniff.php | 53 * @param int $stackPtr The position of the current token 58 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 64 $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true); 66 if ($tokens[$next]['line'] === $tokens[$stackPtr]['line']) { 72 $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Files/ |
H A D | InlineHTMLSniff.php | 49 * @param int $stackPtr The position of the current token in 54 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 58 if (substr($tokens[$stackPtr]['content'], 0, 2) === '#!') { 63 $phpcsFile->addError($error, $stackPtr, 'Found');
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/Namespaces/ |
H A D | NamespaceDeclarationSniff.php | 48 * @param int $stackPtr The position of the current token in 53 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 57 for ($i = ($stackPtr + 1); $i < ($phpcsFile->numTokens - 1); $i++) { 58 if ($tokens[$i]['line'] === $tokens[$stackPtr]['line']) { 82 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'BlankLineAfter');
|