/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/Channels/ |
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/PEAR/Sniffs/NamingConventions/ |
H A D | ValidFunctionNameSniff.php | 83 * @param int $stackPtr The position where this token was 91 $methodName = $phpcsFile->getDeclarationName($stackPtr); 121 $methodProps = $phpcsFile->getMethodProperties($stackPtr); 150 $phpcsFile->addError($error, $stackPtr, 'PublicUnderscore', $data); 171 $phpcsFile->addError($error, $stackPtr, 'ScopeNotCamelCaps', $data); 174 $phpcsFile->addError($error, $stackPtr, 'NotCamelCaps', $errorData); 187 * @param int $stackPtr The position where this token was 194 $functionName = $phpcsFile->getDeclarationName($stackPtr); 243 $phpcsFile->addError($error, $stackPtr, 'FunctionNoCapital', $errorData); 251 $phpcsFile->addError($error, $stackPtr, 'FunctionInvalid', $errorData); [all …]
|
/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/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/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 | 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/Commenting/ |
H A D | ClassCommentSniff.php | 54 * @param int $stackPtr The position of the current token 59 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 65 $commentEnd = $phpcsFile->findPrevious($find, ($stackPtr - 1), null, true); 69 $phpcsFile->addError('Missing class doc comment', $stackPtr, 'Missing'); 70 $phpcsFile->recordMetric($stackPtr, 'Class has doc comment', 'no'); 74 $phpcsFile->recordMetric($stackPtr, 'Class has doc comment', 'yes'); 77 …$phpcsFile->addError('You must use "/**" style comments for a class comment', $stackPtr, 'WrongSty… 81 if ($tokens[$commentEnd]['line'] !== ($tokens[$stackPtr]['line'] - 1)) {
|
H A D | ClosingDeclarationCommentSniff.php | 59 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 63 if ($tokens[$stackPtr]['code'] === T_FUNCTION) { 64 $methodProps = $phpcsFile->getMethodProperties($stackPtr); 78 if ($phpcsFile->hasCondition($stackPtr, T_INTERFACE) === true) { 82 if (isset($tokens[$stackPtr]['scope_closer']) === false) { 84 $phpcsFile->addWarning($error, $stackPtr, 'Abstract'); 88 $decName = $phpcsFile->getDeclarationName($stackPtr); 90 } else if ($tokens[$stackPtr]['code'] === T_CLASS) { 96 if (isset($tokens[$stackPtr]['scope_closer']) === false) { 98 $data = array($tokens[$stackPtr]['content']); [all …]
|
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);
|
H A D | FunctionCommentThrowTagSniff.php | 55 * @param int $stackPtr The position where the token was found. 60 … protected function processTokenWithinScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $currScope) argument 64 $previousThrow = $phpcsFile->findPrevious(T_THROW, ($stackPtr - 1), $currScope); 91 $currPos = $stackPtr;
|
/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/Squiz/Sniffs/Functions/ |
H A D | FunctionDeclarationArgumentSpacingSniff.php | 74 * @param int $stackPtr The position of the current token in the 79 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 83 if (isset($tokens[$stackPtr]['parenthesis_opener']) === false 84 || isset($tokens[$stackPtr]['parenthesis_closer']) === false 85 || $tokens[$stackPtr]['parenthesis_opener'] === null 86 || $tokens[$stackPtr]['parenthesis_closer'] === null 95 $openBracket = $tokens[$stackPtr]['parenthesis_opener']; 98 if ($tokens[$stackPtr]['code'] === T_CLOSURE) { 99 …Next(T_USE, ($tokens[$openBracket]['parenthesis_closer'] + 1), $tokens[$stackPtr]['scope_opener']);
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Objects/ |
H A D | ObjectMemberCommaSniff.php | 55 * @param int $stackPtr The position in the stack where 60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 64 …$prev = $phpcsFile->findPrevious(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr - 1), null, true…
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/PHP/ |
H A D | CommentedOutCodeSniff.php | 67 * @param int $stackPtr The position of the current token 72 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 77 if ($stackPtr > 0 && $tokens[$stackPtr]['code'] === $tokens[($stackPtr - 1)]['code']) { 82 if (substr($tokens[$stackPtr]['content'], 0, 6) === '//end ') { 91 for ($i = $stackPtr; $i < $phpcsFile->numTokens; $i++) { 92 if ($tokens[$stackPtr]['code'] !== $tokens[$i]['code']) { 231 $phpcsFile->addWarning($error, $stackPtr, 'Found', $data);
|
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');
|
H A D | EmbeddedPhpSniff.php | 61 $closeTag = $phpcsFile->findNext(T_CLOSE_TAG, $stackPtr); 65 $this->_validateInlineEmbeddedPhp($phpcsFile, $stackPtr); 91 $closingTag = $phpcsFile->findNext(T_CLOSE_TAG, $stackPtr); 105 for ($i = $stackPtr; $i <= $closingTag; $i++) { 123 $phpcsFile->fixer->addNewline($stackPtr); 135 $i = $stackPtr; 205 for ($first = ($stackPtr - 1); $first > 0; $first--) { 224 $found = ($tokens[$stackPtr]['column'] - 1); 332 for ($i = $stackPtr; $i <= $closeTag; $i++) { 344 if ($tokens[($stackPtr + 1)]['code'] === T_WHITESPACE) { [all …]
|
H A D | LowercasePHPFunctionsSniff.php | 69 * @param int $stackPtr The position of the current token in 74 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 79 $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true); 90 … $prev = $phpcsFile->findPrevious(array(T_WHITESPACE, T_BITWISE_AND), ($stackPtr - 1), null, true); 119 $content = $tokens[$stackPtr]['content']; 131 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'CallUppercase', $data); 133 $phpcsFile->fixer->replaceToken($stackPtr, strtolower($content));
|
H A D | NonExecutableCodeSniff.php | 62 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 74 for ($i = ($stackPtr - 1); $i > 0; $i--) { 92 if ($tokens[$stackPtr]['code'] === T_RETURN) { 110 if (isset($tokens[$stackPtr]['scope_opener']) === true) { 111 $owner = $tokens[$stackPtr]['scope_condition']; 116 $end = $phpcsFile->findEndOfStatement($stackPtr); 128 for ($i = ($stackPtr + 1); $i < $next; $i++) { 180 && $tokens[$stackPtr]['code'] === T_BREAK 191 for ($i = ($stackPtr + 1); $i < $closer; $i++) { 209 if ($tokens[$stackPtr]['code'] === T_BREAK) { [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Scope/ |
H A D | MemberVarScopeSniff.php | 40 * @param int $stackPtr The position where the token was found. 44 protected function processMemberVar(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 49 for ($i = ($stackPtr - 1); $i > 0; $i--) { 50 if ($tokens[$i]['line'] < $tokens[$stackPtr]['line']) { 60 $data = array($tokens[$stackPtr]['content']); 61 $phpcsFile->addError($error, $stackPtr, 'Missing', $data); 71 * @param int $stackPtr The position where the token was found. 75 protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 88 * @param int $stackPtr The position where the token was found. 92 protected function processVariableInString(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
|
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/Squiz/Sniffs/Strings/ |
H A D | EchoedStringsSniff.php | 51 * @param int $stackPtr The position of the current token in the 56 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 60 $firstContent = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true); 63 $phpcsFile->recordMetric($stackPtr, 'Brackets around echoed strings', 'no'); 67 $end = $phpcsFile->findNext(array(T_SEMICOLON, T_CLOSE_TAG), $stackPtr, null, false); 72 $phpcsFile->recordMetric($stackPtr, 'Brackets around echoed strings', 'no'); 78 $phpcsFile->recordMetric($stackPtr, 'Brackets around echoed strings', 'no'); 82 $phpcsFile->recordMetric($stackPtr, 'Brackets around echoed strings', 'yes'); 84 …if (($phpcsFile->findNext(PHP_CodeSniffer_Tokens::$operators, $stackPtr, $end, false)) === false) { 87 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'HasBracket');
|
/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 | FunctionClosingBraceSpaceSniff.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_closer']) === false) { 77 $closeBrace = $tokens[$stackPtr]['scope_closer']; 84 if ($tokens[$stackPtr]['scope_closer'] !== ($tokens[$stackPtr]['scope_opener'] + 1)) { 89 for ($i = ($tokens[$stackPtr]['scope_opener'] + 1); $i < $closeBrace; $i++) { 101 if ($phpcsFile->hasCondition($stackPtr, T_FUNCTION) === true 102 || $phpcsFile->hasCondition($stackPtr, T_CLOSURE) === true 103 || isset($tokens[$stackPtr]['nested_parenthesis']) === true 112 $afterKeyword = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true); [all …]
|