/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/Debug/ |
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/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);
|
H A D | CreateWidgetTypeCallbackSniff.php | 53 * @param int $stackPtr The position of the current token 58 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 62 $className = $phpcsFile->findPrevious(T_STRING, ($stackPtr - 1)); 68 …$create = $phpcsFile->findNext(T_PROPERTY, $stackPtr, $tokens[$stackPtr]['bracket_closer'], null, …
|
H A D | DisallowNewWidgetSniff.php | 46 * @param int $stackPtr The position of the current token 51 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 55 $className = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true); 64 $phpcsFile->addError($error, $stackPtr, 'Found', $data);
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/PHP/ |
H A D | AjaxNullComparisonSniff.php | 49 * @param int $stackPtr The position of the current token in 54 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 59 $commentEnd = $phpcsFile->findPrevious(T_DOC_COMMENT_CLOSE_TAG, $stackPtr); 69 $open = $tokens[$stackPtr]['parenthesis_opener']; 70 $close = $tokens[$stackPtr]['parenthesis_closer']; 81 $start = $tokens[$stackPtr]['scope_opener']; 82 $end = $tokens[$stackPtr]['scope_closer'];
|
H A D | EvalObjectFactorySniff.php | 46 * @param int $stackPtr The position of the current token in 51 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 60 $openBracket = $phpcsFile->findNext(T_OPEN_PARENTHESIS, ($stackPtr + 1)); 117 $phpcsFile->addWarning($error, $stackPtr, 'Found');
|
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);
|
H A D | ReturnFunctionValueSniff.php | 46 * @param int $stackPtr The position of the current token in 51 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 55 $functionName = $phpcsFile->findNext(T_STRING, ($stackPtr + 1), null, false, null, true); 67 $phpcsFile->addWarning($error, $stackPtr, 'NotAssigned');
|
/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/PEAR/Sniffs/Classes/ |
H A D | ClassDeclarationSniff.php | 61 * @param integer $stackPtr The position of the current token in the 66 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 69 $errorData = array(strtolower($tokens[$stackPtr]['content'])); 71 if (isset($tokens[$stackPtr]['scope_opener']) === false) { 73 $phpcsFile->addWarning($error, $stackPtr, 'MissingBrace', $errorData); 77 $curlyBrace = $tokens[$stackPtr]['scope_opener']; 82 $phpcsFile->recordMetric($stackPtr, 'Class opening brace placement', 'same line'); 97 $phpcsFile->recordMetric($stackPtr, 'Class opening brace placement', 'new line'); 102 $tokens[$stackPtr]['content'], 103 $tokens[$stackPtr]['content'], [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/Commenting/ |
H A D | ClassCommentSniff.php | 52 * @param int $stackPtr The position of the current token 57 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 62 $type = strtolower($tokens[$stackPtr]['content']); 68 $commentEnd = $phpcsFile->findPrevious($find, ($stackPtr - 1), null, true); 72 $phpcsFile->addError('Missing class doc comment', $stackPtr, 'Missing'); 73 $phpcsFile->recordMetric($stackPtr, 'Class has doc comment', 'no'); 77 $phpcsFile->recordMetric($stackPtr, 'Class has doc comment', 'yes'); 80 …$phpcsFile->addError('You must use "/**" style comments for a class comment', $stackPtr, 'WrongSty… 85 $this->processTags($phpcsFile, $stackPtr, $tokens[$commentEnd]['comment_opener']);
|
H A D | FileCommentSniff.php | 101 * @param int $stackPtr The position of the current token 106 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 111 $commentStart = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true); 131 $errorToken = ($stackPtr + 1); 142 $phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'yes'); 148 $phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'no'); 178 $phpcsFile->addError('Missing file doc comment', $stackPtr, 'Missing'); 179 $phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'no'); 183 $phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'yes'); 204 $this->processTags($phpcsFile, $stackPtr, $commentStart); [all …]
|
H A D | FunctionCommentSniff.php | 48 * @param int $stackPtr The position of the current token 53 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 59 $commentEnd = $phpcsFile->findPrevious($find, ($stackPtr - 1), null, true); 75 $phpcsFile->recordMetric($stackPtr, 'Function has doc comment', 'no'); 78 $phpcsFile->recordMetric($stackPtr, 'Function has doc comment', 'yes'); 86 if ($tokens[$commentEnd]['line'] !== ($tokens[$stackPtr]['line'] - 1)) { 103 $this->processReturn($phpcsFile, $stackPtr, $commentStart); 104 $this->processThrows($phpcsFile, $stackPtr, $commentStart); 105 $this->processParams($phpcsFile, $stackPtr, $commentStart); 125 $methodName = $phpcsFile->getDeclarationName($stackPtr); [all …]
|
H A D | InlineCommentSniff.php | 50 * @param int $stackPtr The position of the current token 55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 59 if ($tokens[$stackPtr]['content']{0} === '#') { 60 $phpcsFile->recordMetric($stackPtr, 'Inline comment style', '# ...'); 66 $newComment = ltrim($tokens[$stackPtr]['content'], '# '); 68 $phpcsFile->fixer->replaceToken($stackPtr, $newComment); 70 } else if ($tokens[$stackPtr]['content']{0} === '/' 71 && $tokens[$stackPtr]['content']{1} === '/' 73 $phpcsFile->recordMetric($stackPtr, 'Inline comment style', '// ...'); 74 } else if ($tokens[$stackPtr]['content']{0} === '/' [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/ControlStructures/ |
H A D | MultiLineConditionSniff.php | 68 * @param int $stackPtr The position of the current token 73 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 77 if (isset($tokens[$stackPtr]['parenthesis_opener']) === false) { 81 $openBracket = $tokens[$stackPtr]['parenthesis_opener']; 82 $closeBracket = $tokens[$stackPtr]['parenthesis_closer']; 107 for ($i = ($stackPtr - 1); $i >= 0; $i--) { 108 if ($tokens[$i]['line'] !== $tokens[$stackPtr]['line']) { 227 if (isset($tokens[$stackPtr]['scope_opener']) === false) { 232 $openBrace = $tokens[$stackPtr]['scope_opener'];
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/Files/ |
H A D | IncludingFileSniff.php | 57 * @param int $stackPtr The position of the current token in the 62 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 69 $data = array($tokens[$stackPtr]['content']); 84 if (count($tokens[$stackPtr]['conditions']) !== 0) { 93 if (isset($tokens[$stackPtr]['nested_parenthesis']) === true) { 94 foreach ($tokens[$stackPtr]['nested_parenthesis'] as $left => $right) { 110 $tokenCode = $tokens[$stackPtr]['code']; 118 $phpcsFile->fixer->replaceToken($stackPtr, 'include_once'); 125 $phpcsFile->fixer->replaceToken($stackPtr, 'include'); 135 $phpcsFile->fixer->replaceToken($stackPtr, 'require_once'); [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/Formatting/ |
H A D | MultiLineAssignmentSniff.php | 55 * @param int $stackPtr The position of the current token 60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 65 $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true); 71 if ($tokens[$next]['line'] !== $tokens[$stackPtr]['line']) { 73 $phpcsFile->addError($error, $stackPtr, 'EqualSignLine'); 78 $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), false, true); 84 if ($tokens[$prev]['line'] === $tokens[$stackPtr]['line']) { 103 $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1)); 113 $phpcsFile->addError($error, $stackPtr, 'Indent', $data);
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/Functions/ |
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 …]
|
H A D | FunctionDeclarationSniff.php | 69 || $tokens[$stackPtr]['parenthesis_opener'] === null 70 || $tokens[$stackPtr]['parenthesis_closer'] === null 75 $openBracket = $tokens[$stackPtr]['parenthesis_opener']; 103 if ($tokens[$stackPtr]['code'] === T_FUNCTION) { 123 if ($tokens[$stackPtr]['code'] === T_CLOSURE) { 200 if ($tokens[$stackPtr]['code'] === T_CLOSURE) { 233 if ($tokens[$stackPtr]['code'] === T_CLOSURE) { 248 $sniff->process($phpcsFile, $stackPtr); 270 for ($i = ($stackPtr - 1); $i >= 0; $i--) { 304 if ($tokens[$stackPtr]['code'] === T_CLOSURE) { [all …]
|
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);
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/NamingConventions/ |
H A D | ValidClassNameSniff.php | 55 * @param int $stackPtr The position of the current token 60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 64 $className = $phpcsFile->findNext(T_STRING, $stackPtr); 66 $errorData = array(ucfirst($tokens[$stackPtr]['content'])); 71 $phpcsFile->addError($error, $stackPtr, 'StartWithCapital', $errorData); 93 $phpcsFile->addError($error, $stackPtr, 'Invalid', $errorData); 106 $phpcsFile->addError($error, $stackPtr, 'Invalid', $data);
|
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 …]
|
H A D | ValidVariableNameSniff.php | 41 * @param int $stackPtr The position of the current token 46 protected function processMemberVar(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 50 $memberProps = $phpcsFile->getMemberProperties($stackPtr); 55 $memberName = ltrim($tokens[$stackPtr]['content'], '$'); 69 $phpcsFile->addError($error, $stackPtr, 'PrivateNoUnderscore', $data); 80 $phpcsFile->addError($error, $stackPtr, 'PublicUnderscore', $data); 91 * @param int $stackPtr The position where the token was found. 95 protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 108 * @param int $stackPtr The position where the token was found. 112 protected function processVariableInString(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
|
/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 …]
|
H A D | ScopeClosingBraceSniff.php | 57 * @param int $stackPtr The position of the current token 62 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument 68 if (isset($tokens[$stackPtr]['scope_closer']) === false) { 72 $scopeStart = $tokens[$stackPtr]['scope_opener']; 73 $scopeEnd = $tokens[$stackPtr]['scope_closer']; 79 || $tokens[$scopeEnd]['scope_condition'] !== $stackPtr 88 $lineStart = ($stackPtr - 1); 154 if ($tokens[$stackPtr]['code'] === T_CASE 155 || $tokens[$stackPtr]['code'] === T_DEFAULT
|