/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Functions/ |
H A D | MultiLineFunctionDeclarationSniff.php | 51 * @param int $stackPtr The position of the current token 62 $bracketsToCheck = array($stackPtr => $openBracket); 65 if ($tokens[$stackPtr]['code'] === T_CLOSURE) { 75 foreach ($bracketsToCheck as $stackPtr => $openBracket) { 79 if ($tokens[$next]['line'] !== $tokens[$stackPtr]['line']) { 118 * @param int $stackPtr The position of the current token 125 public function processMultiLineDeclaration(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $tokens) argument 128 parent::processMultiLineDeclaration($phpcsFile, $stackPtr, $tokens); 130 $openBracket = $tokens[$stackPtr]['parenthesis_opener']; 133 if ($tokens[$stackPtr]['code'] !== T_CLOSURE) { [all …]
|
/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 | 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/Standards/PSR1/Sniffs/Methods/ |
H A D | CamelCapsMethodNameSniff.php | 40 * @param int $stackPtr The position where this token was 46 … protected function processTokenWithinScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $currScope) argument 48 $methodName = $phpcsFile->getDeclarationName($stackPtr); 69 $phpcsFile->addError($error, $stackPtr, 'NotCamelCaps', $errorData); 70 $phpcsFile->recordMetric($stackPtr, 'CamelCase method name', 'no'); 72 $phpcsFile->recordMetric($stackPtr, 'CamelCase method name', 'yes'); 82 * @param int $stackPtr The position where this token was 87 protected function processTokenOutsideScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
|
/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/Squiz/Sniffs/ControlStructures/ |
H A D | ForLoopDeclarationSniff.php | 74 * @param int $stackPtr The position of the current token in the 79 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 85 $openingBracket = $phpcsFile->findNext(T_OPEN_PARENTHESIS, $stackPtr); 88 $phpcsFile->addWarning($error, $stackPtr, 'NoOpenBracket'); 96 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingAfterOpen'); 112 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingAfterOpen', $data); 126 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingBeforeClose'); 160 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingBeforeFirst'); 170 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSpaceAfterFirst'); 193 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingBeforeSecond'); [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/ |
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
|
/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');
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/WhiteSpace/ |
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 | 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
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Files/ |
H A D | FileExtensionSniff.php | 50 * @param int $stackPtr The position of the current token in the 55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 60 $nextClass = $phpcsFile->findNext(array(T_CLASS, T_INTERFACE, T_TRAIT), $stackPtr); 63 $phpcsFile->recordMetric($stackPtr, 'File extension for class files', $extension); 67 $phpcsFile->addError($error, $stackPtr, 'ClassFound', $data); 70 $phpcsFile->recordMetric($stackPtr, 'File extension for non-class files', $extension); 73 $phpcsFile->addError($error, $stackPtr, 'NoClass');
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/PHP/ |
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 | 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');
|
/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/Squiz/Sniffs/Commenting/ |
H A D | PostStatementCommentSniff.php | 60 * @param int $stackPtr The position of the current token in the 65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 69 if (substr($tokens[$stackPtr]['content'], 0, 2) !== '//') { 73 $commentLine = $tokens[$stackPtr]['line']; 74 $lastContent = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true); 95 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Found'); 97 $phpcsFile->fixer->addNewlineBefore($stackPtr);
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Scope/ |
H A D | MethodScopeSniff.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); 65 if ($phpcsFile->hasCondition($stackPtr, T_FUNCTION) === true) { 71 for ($i = ($stackPtr - 1); $i > 0; $i--) { 72 if ($tokens[$i]['line'] < $tokens[$stackPtr]['line']) { 83 $phpcsFile->addError($error, $stackPtr, 'Missing', $data);
|
H A D | StaticThisUsageSniff.php | 53 * @param int $stackPtr The position of the current token in the 59 public function processTokenWithinScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $currScope) argument 62 $function = $tokens[($stackPtr + 2)]; 72 $methodProps = $phpcsFile->getMethodProperties($stackPtr); 75 if (isset($tokens[$stackPtr]['scope_closer']) === false) { 81 $thisUsage = $stackPtr; 82 …ge = $phpcsFile->findNext(array(T_VARIABLE), ($thisUsage + 1), $tokens[$stackPtr]['scope_closer'],…
|
/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);
|
H A D | IncludeOwnSystemSniff.php | 46 * @param int $stackPtr The position of the current token in 51 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 63 … $typeName = $phpcsFile->findNext(T_CONSTANT_ENCAPSED_STRING, ($stackPtr + 2), null, false, true); 65 switch (strtolower($tokens[($stackPtr + 1)]['content'])) { 82 $phpcsFile->addError($error, $stackPtr, 'NotRequired', $data); 93 * @param int $stackPtr The position in the tokens array of the 101 $stackPtr argument
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/CSS/ |
H A D | NamedColoursSniff.php | 83 * @param int $stackPtr The position in the stack where 88 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 92 if ($tokens[($stackPtr - 1)]['code'] === T_HASH 93 || $tokens[($stackPtr - 1)]['code'] === T_STRING_CONCAT 99 if (isset($this->colourNames[strtolower($tokens[$stackPtr]['content'])]) === true) { 101 $phpcsFile->addError($error, $stackPtr, 'Forbidden');
|
H A D | ColourDefinitionSniff.php | 55 * @param int $stackPtr The position in the stack where 60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 63 $colour = $tokens[$stackPtr]['content']; 73 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NotUpper', $data); 75 $phpcsFile->fixer->replaceToken($stackPtr, $expected); 92 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Shorthand', $data); 94 $phpcsFile->fixer->replaceToken($stackPtr, $expected);
|
H A D | ShorthandSizeSniff.php | 71 * @param int $stackPtr The position in the stack where 76 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 81 $style = strtolower($tokens[$stackPtr]['content']); 87 $end = $phpcsFile->findNext(T_SEMICOLON, ($stackPtr + 1)); 88 $origContent = $phpcsFile->getTokensAsString(($stackPtr + 1), ($end - $stackPtr - 1)); 127 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NotAllowed', $data); 135 $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 2), null, true); 172 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NotUsed', $data); 179 $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 2), null, true);
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/WhiteSpace/ |
H A D | ObjectOperatorIndentSniff.php | 56 * @param int $stackPtr The position of the current token 61 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 66 $varToken = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true); 74 ($stackPtr + 1), 103 if (isset($tokens[$stackPtr]['nested_parenthesis']) === true) { 104 $origBrackets = $tokens[$stackPtr]['nested_parenthesis']; 108 if (isset($tokens[$stackPtr]['conditions']) === true) { 109 $origConditions = $tokens[$stackPtr]['conditions']; 115 if ($tokens[$stackPtr]['line'] > $tokens[$varToken]['line']) { 116 $next = $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 …]
|