/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR1/Sniffs/Classes/ |
H A D | ClassDeclarationSniff.php | 58 * @param integer $stackPtr The position of the current token in 63 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 73 if (isset($tokens[$stackPtr]['scope_closer']) === false) { 77 $errorData = array(strtolower($tokens[$stackPtr]['content'])); 79 …$nextClass = $phpcsFile->findNext(array(T_CLASS, T_INTERFACE, T_TRAIT), ($tokens[$stackPtr]['scope… 83 $phpcsFile->recordMetric($stackPtr, 'One class per file', 'no'); 85 $phpcsFile->recordMetric($stackPtr, 'One class per file', 'yes'); 92 $phpcsFile->addError($error, $stackPtr, 'MissingNamespace', $errorData); 93 $phpcsFile->recordMetric($stackPtr, 'Class defined in namespace', 'no'); 95 $phpcsFile->recordMetric($stackPtr, 'Class defined in namespace', 'yes');
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR1/Sniffs/Files/ |
H A D | SideEffectsSniff.php | 49 * @param int $stackPtr The position of the current token in 54 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 66 $phpcsFile->recordMetric($stackPtr, 'Declarations and side effects mixed', 'yes'); 68 $phpcsFile->recordMetric($stackPtr, 'Declarations and side effects mixed', 'no');
|
/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/Standards/PSR2/Sniffs/Classes/ |
H A D | ClassDeclarationSniff.php | 49 parent::process($phpcsFile, $stackPtr); 57 $this->processOpen($phpcsFile, $stackPtr); 58 $this->processClose($phpcsFile, $stackPtr); 79 $prevContent = $tokens[($stackPtr - 1)]['content']; 101 || $tokens[($stackPtr - 2)]['code'] === T_FINAL 119 for ($i = ($stackPtr - 1); $i > 0; $i--) { 135 $gap = $tokens[($stackPtr + 1)]['content']; 169 $openingBrace = $tokens[$stackPtr]['scope_opener']; 214 if ($tokens[$stackPtr]['code'] === T_INTERFACE) { 417 $closeBrace = $tokens[$stackPtr]['scope_closer']; [all …]
|
H A D | PropertyDeclarationSniff.php | 38 * @param int $stackPtr The position where the token was found. 42 protected function processMemberVar(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 46 if ($tokens[$stackPtr]['content'][1] === '_') { 48 $data = array($tokens[$stackPtr]['content']); 49 $phpcsFile->addWarning($error, $stackPtr, 'Underscore', $data); 57 $prev = $phpcsFile->findPrevious($find, ($stackPtr - 1)); 64 $phpcsFile->addError($error, $stackPtr, 'VarUsed'); 70 $phpcsFile->addError($error, $stackPtr, 'Multiple'); 76 $data = array($tokens[$stackPtr]['content']); 77 $phpcsFile->addError($error, $stackPtr, 'ScopeMissing', $data); [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/ControlStructures/ |
H A D | ControlStructureSpacingSniff.php | 74 * @param int $stackPtr The position of the current token 79 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 85 if (isset($tokens[$stackPtr]['parenthesis_opener']) === false 86 || isset($tokens[$stackPtr]['parenthesis_closer']) === false 91 $parenOpener = $tokens[$stackPtr]['parenthesis_opener']; 92 $parenCloser = $tokens[$stackPtr]['parenthesis_closer']; 102 …$phpcsFile->recordMetric($stackPtr, 'Spaces after control structure open parenthesis', $spaceAfter… 129 …$phpcsFile->recordMetric($stackPtr, 'Spaces before control structure close parenthesis', $spaceBef…
|
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 60 if ($tokens[$stackPtr]['code'] === T_ELSEIF) { 61 $phpcsFile->recordMetric($stackPtr, 'Use of ELSE IF or ELSEIF', 'elseif'); 65 $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true); 67 $phpcsFile->recordMetric($stackPtr, 'Use of ELSE IF or ELSEIF', 'else if'); 69 $fix = $phpcsFile->addFixableWarning($error, $stackPtr, 'NotAllowed'); 73 $phpcsFile->fixer->replaceToken($stackPtr, 'elseif'); 74 for ($i = ($stackPtr + 1); $i <= $next; $i++) {
|
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/PSR2/Sniffs/Files/ |
H A D | ClosingTagSniff.php | 48 * @param int $stackPtr The position of the current token in 53 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 89 $phpcsFile->recordMetric($stackPtr, 'PHP closing tag at end of PHP-only file', 'yes'); 91 $phpcsFile->recordMetric($stackPtr, 'PHP closing tag at end of PHP-only file', 'no');
|
H A D | EndFileNewlineSniff.php | 48 * @param int $stackPtr The position of the current token in 53 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 55 if ($phpcsFile->findNext(T_INLINE_HTML, ($stackPtr + 1)) !== false) { 76 $phpcsFile->recordMetric($stackPtr, 'Number of newlines at EOF', '0'); 92 $phpcsFile->recordMetric($stackPtr, 'Number of newlines at EOF', $blankLines);
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/Methods/ |
H A D | FunctionCallSignatureSniff.php | 41 * @param int $stackPtr The position of the current token 50 … public function isMultiLineCall(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $openBracket, $tokens) argument 55 if ($tokens[$next]['line'] !== $tokens[$stackPtr]['line']) {
|
H A D | FunctionClosingBraceSniff.php | 51 * @param int $stackPtr The position of the current token 56 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 60 if (isset($tokens[$stackPtr]['scope_closer']) === false) { 65 $closeBrace = $tokens[$stackPtr]['scope_closer'];
|
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/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');
|
H A D | UseDeclarationSniff.php | 48 * @param int $stackPtr The position of the current token in 53 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 55 if ($this->_shouldIgnoreUse($phpcsFile, $stackPtr) === true) { 62 if ($tokens[($stackPtr + 1)]['content'] !== ' ') { 66 $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' '); 79 … $baseUse = rtrim($phpcsFile->getTokensAsString($stackPtr, ($next - $stackPtr))); 85 for ($i = $stackPtr; $i <= $next; $i++) { 127 $prev = $phpcsFile->findPrevious(T_NAMESPACE, ($stackPtr - 1)); 132 $phpcsFile->addError($error, $stackPtr, 'UseAfterNamespace'); 137 $nextUse = $phpcsFile->findNext(T_USE, ($stackPtr + 1)); [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Arrays/ |
H A D | ArrayBracketSpacingSniff.php | 58 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 65 if ($tokens[$stackPtr]['code'] === T_OPEN_SQUARE_BRACKET) { 66 $openBracket = $stackPtr; 68 if (isset($tokens[$stackPtr]['bracket_opener']) === false) { 72 $openBracket = $tokens[$stackPtr]['bracket_opener']; 81 $prevType = $tokens[($stackPtr - 1)]['code']; 85 …$found = $phpcsFile->getTokensAsString($nonSpace, ($stackPtr - $nonSpace)).$tokens[$stackPtr]['… 93 $phpcsFile->fixer->replaceToken(($stackPtr - 1), ''); 98 if ($tokens[$stackPtr]['code'] === T_OPEN_SQUARE_BRACKET) { 99 $nextType = $tokens[($stackPtr + 1)]['code']; [all …]
|
H A D | ArrayDeclarationSniff.php | 60 if ($tokens[$stackPtr]['code'] === T_ARRAY) { 64 if ($tokens[$stackPtr]['content'] !== strtolower($tokens[$stackPtr]['content'])) { 65 if ($tokens[$stackPtr]['content'] === strtoupper($tokens[$stackPtr]['content'])) { 72 $data = array($tokens[$stackPtr]['content']); 88 if ($arrayStart !== ($stackPtr + 1)) { 103 $arrayStart = $stackPtr; 104 $arrayEnd = $tokens[$stackPtr]['bracket_closer']; 317 $keywordStart = $tokens[$stackPtr]['column']; 352 if ($tokens[$stackPtr]['code'] === T_ARRAY) { 355 $lastToken = $stackPtr; [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/CSS/ |
H A D | ClassDefinitionClosingBraceSpaceSniff.php | 55 * @param int $stackPtr The position in the stack where 60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 64 $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true); 70 $found = (($tokens[$next]['line'] - $tokens[$stackPtr]['line']) - 1); 78 $phpcsFile->fixer->addNewline($stackPtr); 82 for ($i = ($stackPtr + 1); $i < ($nextContent - 1); $i++) { 98 ($stackPtr - 1), 99 $tokens[$stackPtr]['bracket_opener'] 111 if ($tokens[$prev]['line'] === $tokens[$stackPtr]['line']) { 113 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'ContentBeforeClose'); [all …]
|
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 | ClassDefinitionOpeningBraceSpaceSniff.php | 61 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 65 if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE) { 69 $phpcsFile->fixer->addContentBefore($stackPtr, ' '); 72 $content = $tokens[($stackPtr - 1)]['content']; 74 if ($tokens[($stackPtr - 1)]['line'] < $tokens[$stackPtr]['line']) { 101 ($stackPtr + 1), 102 $tokens[$stackPtr]['bracket_closer'] 109 if ($tokens[$next]['line'] === $tokens[$stackPtr]['line']) { 113 $phpcsFile->fixer->addNewline($stackPtr); 125 $phpcsFile->fixer->addNewline($stackPtr); [all …]
|
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 …]
|
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 | DisallowMultipleStyleDefinitionsSniff.php | 55 * @param int $stackPtr The position in the stack where 60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 63 $next = $phpcsFile->findNext(T_STYLE, ($stackPtr + 1)); 73 if ($tokens[$next]['line'] === $tokens[$stackPtr]['line']) {
|
H A D | DuplicateClassDefinitionSniff.php | 55 * @param int $stackPtr The position in the stack where 60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 66 $next = $phpcsFile->findNext(T_OPEN_CURLY_BRACKET, ($stackPtr + 1));
|
H A D | DuplicateStyleDefinitionSniff.php | 55 * @param int $stackPtr The position in the stack where 60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 67 $next = $stackPtr; 68 $end = $tokens[$stackPtr]['bracket_closer'];
|