Home
last modified time | relevance | path

Searched refs:stackPtr (Results 176 – 200 of 219) sorted by last modified time

123456789

/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/WhiteSpace/
H A DMemberVarSpacingSniff.php40 * @param int $stackPtr The position where the token was found.
44 protected function processMemberVar(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
52 $start = $stackPtr;
53 $prev = $phpcsFile->findPrevious($ignore, ($stackPtr - 1), null, true);
72 for ($i = ($prev + 1); $i <= $stackPtr; $i++) {
73 if ($tokens[$i]['line'] === $tokens[$stackPtr]['line']) {
90 if ($start === $stackPtr) {
111 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Incorrect', $data);
137 * @param int $stackPtr The position where the token was found.
141 protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
[all …]
H A DScopeClosingBraceSniff.php50 * @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
H A DScopeKeywordSpacingSniff.php52 * @param int $stackPtr The position of the current token
57 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
61 $prevToken = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
62 $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
64 if ($tokens[$stackPtr]['code'] === T_STATIC
77 $nextToken = $tokens[($stackPtr + 1)];
82 $data = array($tokens[$stackPtr]['content']);
83 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Incorrect', $data);
85 $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' ');
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/
H A DFixer.php350 public function getTokenContent($stackPtr) argument
357 return $this->_tokens[$stackPtr];
410 $applied[] = $stackPtr;
416 foreach ($applied as $stackPtr) {
517 … if (trim($this->_tokens[$stackPtr]) === '' && isset($this->_tokens[($stackPtr + 1)]) === true) {
574 $this->_oldTokenValues[$stackPtr]['prev'] = $this->_oldTokenValues[$stackPtr]['curr'];
579 $this->_fixedTokens[$stackPtr] = $this->_tokens[$stackPtr];
606 public function revertToken($stackPtr) argument
626 … if (trim($this->_tokens[$stackPtr]) === '' && isset($tokens[($stackPtr + 1)]) === true) {
634 $this->_tokens[$stackPtr] = $this->_fixedTokens[$stackPtr];
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/
H A DAbstractPatternSniff.php277 $stackPtr argument
291 $origStackPtr = $stackPtr;
295 $stackPtr--;
357 $stackPtr,
520 $stackPtr,
603 $stackPtr
618 $stackPtr
649 $stackPtr++;
695 $stackPtr,
703 $stackPtr = $next;
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Functions/
H A DOpeningFunctionBraceBsdAllmanSniff.php68 * @param int $stackPtr The position of the current token in the
73 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
77 if (isset($tokens[$stackPtr]['scope_opener']) === false) {
81 if (($tokens[$stackPtr]['code'] === T_FUNCTION
83 || ($tokens[$stackPtr]['code'] === T_CLOSURE
89 $openingBrace = $tokens[$stackPtr]['scope_opener'];
90 $closeBracket = $tokens[$stackPtr]['parenthesis_closer'];
91 if ($tokens[$stackPtr]['code'] === T_CLOSURE) {
137 if ($next === $tokens[$stackPtr]['scope_closer']) {
158 $lineStart = $phpcsFile->findFirstOnLine(T_WHITESPACE, $stackPtr, true);
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/NamingConventions/
H A DCamelCapsFunctionNameSniff.php111 * @param int $stackPtr The position where this token was
119 $methodName = $phpcsFile->getDeclarationName($stackPtr);
154 $methodProps = $phpcsFile->getMethodProperties($stackPtr);
162 $phpcsFile->addError($error, $stackPtr, 'ScopeNotCamelCaps', $data);
168 $phpcsFile->recordMetric($stackPtr, 'CamelCase method name', 'no');
171 $phpcsFile->recordMetric($stackPtr, 'CamelCase method name', 'yes');
181 * @param int $stackPtr The position where this token was
188 $functionName = $phpcsFile->getDeclarationName($stackPtr);
212 $phpcsFile->addError($error, $stackPtr, 'NotCamelCaps', $errorData);
213 $phpcsFile->recordMetric($stackPtr, 'CamelCase function name', 'no');
[all …]
H A DConstructorNameSniff.php66 * @param int $stackPtr The position of the current token
74 $stackPtr, argument
83 $methodName = $phpcsFile->getDeclarationName($stackPtr);
88 $phpcsFile->addError($error, $stackPtr, 'OldStyle');
103 if (isset($tokens[$stackPtr]['scope_closer']) === false) {
107 $endFunctionIndex = $tokens[$stackPtr]['scope_closer'];
108 $startIndex = $stackPtr;
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/PHP/
H A DCharacterBeforePHPOpeningTagSniff.php46 * @param int $stackPtr The position of the current token in
51 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
54 if ($stackPtr > 0) {
62 if ($stackPtr !== $expected) {
64 $phpcsFile->addError($error, $stackPtr, 'Found');
H A DClosingPHPTagSniff.php46 * @param int $stackPtr The position of the current token in
51 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
53 $closeTag = $phpcsFile->findNext(T_CLOSE_TAG, $stackPtr);
56 $phpcsFile->addError($error, $stackPtr, 'NotFound');
H A DDisallowAlternativePHPTagsSniff.php82 * @param int $stackPtr The position of the current token
87 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
90 $openTag = $tokens[$stackPtr];
112 $phpcsFile->addError($error, $stackPtr, $errorCode, $data);
116 $this->addChangeset($phpcsFile, $tokens, $stackPtr, $closer);
126 $nextVar = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
134 $closer = $this->findClosingTag($phpcsFile, $tokens, $stackPtr, '%>');
137 $phpcsFile->addError($error, $stackPtr, 'ASPShortOpenTagFound', $data);
157 $phpcsFile->addError($error, $stackPtr, 'ScriptOpenTagFound', $data);
215 * @param int $stackPtr The position of the current token
[all …]
H A DSAPIUsageSniff.php48 * @param int $stackPtr The position of the current token in
53 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
64 $prevToken = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
70 $function = strtolower($tokens[$stackPtr]['content']);
73 $phpcsFile->addError($error, $stackPtr, 'FunctionFound');
H A DSyntaxSniff.php57 * @param int $stackPtr The position of the current token in
62 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/CSS/
H A DBrowserSpecificStylesSniff.php72 * @param int $stackPtr The position in the stack where
77 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
90 $content = $tokens[$stackPtr]['content'];
94 $phpcsFile->addError($error, $stackPtr, 'ForbiddenStyle');
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/Channels/
H A DIncludeSystemSniff.php80 $stackPtr, argument
89 ($stackPtr - 1),
115 $class = $phpcsFile->getCondition($stackPtr, T_CLASS);
129 for ($i = ($currScope + 1); $i < $stackPtr; $i++) {
145 if ($phpcsFile->hasCondition($stackPtr, T_CLASS) === true) {
169 if ($phpcsFile->hasCondition($stackPtr, T_CLASS) === true) {
226 if ($tokens[$stackPtr]['code'] === T_EXTENDS) {
260 for ($i = 0; $i < $stackPtr; $i++) {
285 if ($tokens[$stackPtr]['code'] === T_EXTENDS) {
312 $stackPtr argument
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/Debug/
H A DDebugCodeSniff.php46 * @param int $stackPtr The position of the current token in
51 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
55 $className = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
57 $method = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
60 $phpcsFile->addError($error, $stackPtr, 'Found', $data);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/PHP/
H A DEvalObjectFactorySniff.php46 * @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');
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/Strings/
H A DJoinStringsSniff.php53 * @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/Commenting/
H A DFileCommentSniff.php101 * @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 DInlineCommentSniff.php50 * @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 DMultiLineConditionSniff.php68 * @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 DIncludingFileSniff.php57 * @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 DMultiLineAssignmentSniff.php55 * @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 DFunctionCallSignatureSniff.php86 * @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 DFunctionDeclarationSniff.php69 || $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 …]

123456789