/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 | 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'];
|
/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 | 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 | 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);
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Classes/ |
H A D | ClassDeclarationSniff.php | 48 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 51 parent::process($phpcsFile, $stackPtr); 77 parent::processOpen($phpcsFile, $stackPtr); 81 if ($tokens[($stackPtr - 1)]['code'] === T_WHITESPACE) { 82 $prevContent = $tokens[($stackPtr - 1)]['content']; 87 if ($tokens[($stackPtr - 2)]['code'] !== T_ABSTRACT 88 && $tokens[($stackPtr - 2)]['code'] !== T_FINAL 122 if (isset($tokens[$stackPtr]['scope_closer']) === false) { 126 $closeBrace = $tokens[$stackPtr]['scope_closer']; 156 $data = array($tokens[$stackPtr]['content']); [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Commenting/ |
H A D | BlockCommentSniff.php | 114 $phpcsFile->fixer->replaceToken($stackPtr, '/*'); 117 $end = $tokens[$stackPtr]['comment_closer']; 129 $commentLines = array($stackPtr); 130 $nextComment = $stackPtr; 131 $lastLine = $tokens[$stackPtr]['line']; 132 $commentString = $tokens[$stackPtr]['content']; 161 $phpcsFile->fixer->replaceToken($stackPtr, ''); 184 $content = trim($tokens[$stackPtr]['content']); 201 $tokens[$stackPtr]['content'], 210 $starColumn = ($tokens[$stackPtr]['column'] + 3); [all …]
|
H A D | EmptyCatchCommentSniff.php | 50 * @param int $stackPtr The position of the current token in the 55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 59 $scopeStart = $tokens[$stackPtr]['scope_opener']; 60 …$firstContent = $phpcsFile->findNext(T_WHITESPACE, ($scopeStart + 1), $tokens[$stackPtr]['scope_cl…
|
H A D | FunctionCommentSniff.php | 47 * @param int $stackPtr The position of the current token 53 protected function processReturn(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $commentStart) argument 58 $methodName = $phpcsFile->getDeclarationName($stackPtr); 124 if (isset($tokens[$stackPtr]['scope_closer']) === true) { 125 $endToken = $tokens[$stackPtr]['scope_closer']; 155 if (isset($tokens[$stackPtr]['scope_closer']) === true) { 156 $endToken = $tokens[$stackPtr]['scope_closer']; 183 * @param int $stackPtr The position of the current token 252 * @param int $stackPtr The position of the current token 360 $realParams = $phpcsFile->getMethodParameters($stackPtr); [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/ControlStructures/ |
H A D | ForEachLoopDeclarationSniff.php | 65 * @param int $stackPtr The position of the current token in the 70 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 76 $openingBracket = $phpcsFile->findNext(T_OPEN_PARENTHESIS, $stackPtr); 79 $phpcsFile->addWarning($error, $stackPtr, 'MissingOpenParenthesis'); 85 $phpcsFile->addWarning($error, $stackPtr, 'MissingCloseParenthesis'); 93 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceAfterOpen'); 123 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceBeforeClose'); 154 $phpcsFile->addWarning($error, $stackPtr, 'MissingAs'); 196 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSpaceAfterArrow'); 215 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSpaceBeforeAs'); [all …]
|
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));
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Debug/ |
H A D | JSLintSniff.php | 55 * @param int $stackPtr The position in the stack where 61 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Formatting/ |
H A D | OperatorBracketSniff.php | 65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 77 … if ($tokens[$stackPtr]['code'] === T_BITWISE_AND && $phpcsFile->isReference($stackPtr) === true) { 83 if ($tokens[$stackPtr]['code'] === T_MINUS) { 101 if (($number - $stackPtr) !== 1) { 151 if (isset($tokens[$stackPtr]['nested_parenthesis']) === true) { 211 if ($endBracket < $stackPtr) { 223 $this->addMissingBracketsError($phpcsFile, $stackPtr); 227 $this->addMissingBracketsError($phpcsFile, $stackPtr); 242 $this->addMissingBracketsError($phpcsFile, $stackPtr); 251 $this->addMissingBracketsError($phpcsFile, $stackPtr); [all …]
|
/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/Standards/Squiz/Sniffs/Operators/ |
H A D | ComparisonOperatorUsageSniff.php | 122 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 127 if ($tokens[$stackPtr]['code'] === T_INLINE_THEN) { 163 } else if ($tokens[$stackPtr]['code'] === T_FOR) { 164 if (isset($tokens[$stackPtr]['parenthesis_opener']) === false) { 168 $openingBracket = $tokens[$stackPtr]['parenthesis_opener']; 169 $closingBracket = $tokens[$stackPtr]['parenthesis_closer']; 177 if (isset($tokens[$stackPtr]['parenthesis_opener']) === false) { 181 $start = $tokens[$stackPtr]['parenthesis_opener']; 182 $end = $tokens[$stackPtr]['parenthesis_closer']; 225 $phpcsFile->addError($error, $stackPtr, 'ImplicitTrue'); [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/PHP/ |
H A D | DisallowBooleanStatementSniff.php | 48 * @param int $stackPtr The position of the current token 53 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 56 if (isset($tokens[$stackPtr]['nested_parenthesis']) === true) { 58 foreach ($tokens[$stackPtr]['nested_parenthesis'] as $open => $close) { 67 $phpcsFile->addError($error, $stackPtr, 'Found');
|
H A D | DisallowComparisonAssignmentSniff.php | 48 * @param int $stackPtr The position of the current token 53 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 58 $function = $phpcsFile->findPrevious(T_FUNCTION, ($stackPtr - 1), null, false, null, true); 62 if ($opener < $stackPtr && $closer > $stackPtr) { 70 ($stackPtr + 1), 88 $next = $phpcsFile->findNext($ignore, ($stackPtr + 1), null, true); 97 $endStatement = $phpcsFile->findNext(T_SEMICOLON, ($stackPtr + 1)); 98 if ($tokens[$stackPtr]['conditions'] !== $tokens[$endStatement]['conditions']) { 104 for ($i = ($stackPtr + 1); $i < $endStatement; $i++) { 109 $phpcsFile->addError($error, $stackPtr, 'AssignedComparison'); [all …]
|
H A D | DisallowSizeFunctionsInLoopsSniff.php | 75 * @param int $stackPtr The position of the current token 80 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 84 $openBracket = $tokens[$stackPtr]['parenthesis_opener']; 85 $closeBracket = $tokens[$stackPtr]['parenthesis_closer']; 87 if ($tokens[$stackPtr]['code'] === T_FOR) {
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/WhiteSpace/ |
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']) {
|
H A D | FunctionSpacingSniff.php | 57 * @param int $stackPtr The position of the current token 62 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 72 if (isset($tokens[$stackPtr]['scope_closer']) === false) { 74 $closer = $phpcsFile->findNext(T_SEMICOLON, $stackPtr); 76 $closer = $tokens[$stackPtr]['scope_closer']; 138 for ($i = $stackPtr; $i > 0; $i--) { 153 $currentLine = $tokens[$stackPtr]['line']; 173 $i = ($stackPtr - 1); 215 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Before', $data); 220 $nextSpace = $phpcsFile->findNext(T_WHITESPACE, ($prevContent + 1), $stackPtr); [all …]
|
H A D | OperatorSpacingSniff.php | 88 if ($tokens[$stackPtr]['code'] === T_EQUAL 89 || $tokens[$stackPtr]['code'] === T_MINUS 106 if ($tokens[$stackPtr]['code'] === T_EQUAL) { 108 if (isset($tokens[($stackPtr + 1)]) === true 141 if ($tokens[($stackPtr - 2)]['line'] !== $tokens[$stackPtr]['line']) { 170 if ($tokens[($stackPtr + 2)]['line'] !== $tokens[$stackPtr]['line']) { 192 if ($tokens[$stackPtr]['code'] === T_MINUS || $tokens[$stackPtr]['code'] === T_PLUS) { 241 $operator = $tokens[$stackPtr]['content']; 254 if ($tokens[($stackPtr - 2)]['line'] !== $tokens[$stackPtr]['line']) { 273 $i = ($stackPtr - 2); [all …]
|
H A D | SuperfluousWhitespaceSniff.php | 103 $stackPtr = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true); 107 if ($stackPtr === 0) { 164 $stackPtr--; 201 && $tokens[($stackPtr + 1)]['line'] === $tokens[$stackPtr]['line'] 208 && $tokens[($stackPtr - 1)]['line'] !== $tokens[$stackPtr]['line'] 221 … } else if ($tokens[($stackPtr - 1)]['content'] !== rtrim($tokens[($stackPtr - 1)]['content']) 222 && $tokens[($stackPtr - 1)]['line'] === $tokens[$stackPtr]['line'] 226 … $phpcsFile->fixer->replaceToken(($stackPtr - 1), rtrim($tokens[($stackPtr - 1)]['content'])); 236 && $tokens[($stackPtr - 1)]['line'] < $tokens[$stackPtr]['line'] 237 && $tokens[($stackPtr - 2)]['line'] === $tokens[($stackPtr - 1)]['line'] [all …]
|