Home
last modified time | relevance | path

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

123456789

/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/NamingConventions/
H A DValidClassNameSniff.php55 * @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);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/Classes/
H A DPropertyDeclarationSniff.php38 * @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 DControlStructureSpacingSniff.php74 * @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…
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/CSS/
H A DEmptyClassDefinitionSniff.php55 * @param int $stackPtr The position in the stack where
60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
63 … $next = $phpcsFile->findNext(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr + 1), null, true);
67 $phpcsFile->addError($error, $stackPtr, 'Found');
H A DForbiddenStylesSniff.php103 * @param int $stackPtr The position of the current token in
108 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
111 $style = strtolower($tokens[$stackPtr]['content']);
136 $this->addError($phpcsFile, $stackPtr, $style, $pattern);
145 * @param int $stackPtr The position of the forbidden style
152 protected function addError($phpcsFile, $stackPtr, $style, $pattern=null) argument
171 …$fix = $phpcsFile->addFixableError($error.'; use %s instead', $stackPtr, $type.'WithAlternative', …
173 …$fix = $phpcsFile->addFixableWarning($error.'; use %s instead', $stackPtr, $type.'WithAlternative'…
177 $phpcsFile->fixer->replaceToken($stackPtr, $this->forbiddenStyles[$pattern]);
181 $phpcsFile->addError($error, $stackPtr, $type, $data);
[all …]
H A DIndentationSniff.php62 * @param int $stackPtr The position in the stack where
67 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
H A DLowercaseStyleDefinitionSniff.php55 * @param int $stackPtr The position in the stack where
60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
63 $start = ($stackPtr + 1);
64 $end = ($tokens[$stackPtr]['bracket_closer'] - 1);
H A DMissingColonSniff.php55 * @param int $stackPtr The position in the stack where
60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
63 $lastLine = $tokens[$stackPtr]['line'];
64 $end = $tokens[$stackPtr]['bracket_closer'];
68 $nested = $phpcsFile->findNext(T_OPEN_CURLY_BRACKET, ($stackPtr + 1), $end);
75 for ($i = ($stackPtr + 1); $i <= $end; $i++) {
H A DNamedColoursSniff.php83 * @param int $stackPtr The position in the stack where
88 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
92 if ($tokens[($stackPtr - 1)]['code'] === T_HASH
93 || $tokens[($stackPtr - 1)]['code'] === T_STRING_CONCAT
99 if (isset($this->colourNames[strtolower($tokens[$stackPtr]['content'])]) === true) {
101 $phpcsFile->addError($error, $stackPtr, 'Forbidden');
H A DSemicolonSpacingSniff.php55 * @param int $stackPtr The position in the stack where
60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
64 $semicolon = $phpcsFile->findNext(T_SEMICOLON, ($stackPtr + 1));
65 if ($semicolon === false || $tokens[$semicolon]['line'] !== $tokens[$stackPtr]['line']) {
67 $phpcsFile->addError($error, $stackPtr, 'NotAtEnd');
75 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceFound', $data);
H A DShorthandSizeSniff.php71 * @param int $stackPtr The position in the stack where
76 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
81 $style = strtolower($tokens[$stackPtr]['content']);
87 $end = $phpcsFile->findNext(T_SEMICOLON, ($stackPtr + 1));
88 $origContent = $phpcsFile->getTokensAsString(($stackPtr + 1), ($end - $stackPtr - 1));
127 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NotAllowed', $data);
135 $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 2), null, true);
172 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NotUsed', $data);
179 $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 2), null, true);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Classes/
H A DDuplicatePropertySniff.php55 * @param int $stackPtr The position of the current token in the
60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
70 …$next = $phpcsFile->findNext($wantedTokens, ($stackPtr + 1), $tokens[$stackPtr]['bracket_closer']);
71 while ($next !== false && $next < $tokens[$stackPtr]['bracket_closer']) {
89 … $next = $phpcsFile->findNext($wantedTokens, ($next + 1), $tokens[$stackPtr]['bracket_closer']);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Commenting/
H A DFileCommentSniff.php59 * @param int $stackPtr The position of the current token
64 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
69 $commentStart = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
73 $phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'yes');
76 $phpcsFile->addError('Missing file doc comment', $stackPtr, 'Missing');
77 $phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'no');
111 $phpcsFile->addError('Missing file doc comment', $stackPtr, 'Missing');
112 $phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'no');
116 $phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'yes');
119 if ($tokens[$commentStart]['line'] > ($tokens[$stackPtr]['line'] + 1)) {
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/ControlStructures/
H A DControlSignatureSniff.php76 if (isset($tokens[($stackPtr + 1)]) === false) {
82 if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
95 strtoupper($tokens[$stackPtr]['content']),
114 $opener = $tokens[$stackPtr]['scope_opener'];
160 $opener = $tokens[$stackPtr]['scope_opener'];
202 } else if ($tokens[$stackPtr]['code'] === T_WHILE) {
225 if ($tokens[$stackPtr]['code'] === T_DO) {
230 $closer = $tokens[$stackPtr]['scope_closer'];
231 } else if ($tokens[$stackPtr]['code'] === T_ELSE
232 || $tokens[$stackPtr]['code'] === T_ELSEIF
[all …]
H A DSwitchDeclarationSniff.php68 * @param int $stackPtr The position of the current token in the
73 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
78 if (isset($tokens[$stackPtr]['scope_opener']) === false
79 || isset($tokens[$stackPtr]['scope_closer']) === false
84 $switch = $tokens[$stackPtr];
85 $nextCase = $stackPtr;
192 … $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($nextBreak - 1), $stackPtr, true);
198 $nextLine = $tokens[$tokens[$stackPtr]['scope_closer']]['line'];
200 for ($i = ($semicolon + 1); $i < $tokens[$stackPtr]['scope_closer']; $i++) {
303 $phpcsFile->addError($error, $stackPtr, 'MissingDefault');
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Debug/
H A DJavaScriptLintSniff.php55 * @param int $stackPtr The position in the stack where
60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Functions/
H A DLowercaseFunctionKeywordsSniff.php56 * @param int $stackPtr The position of the current token in
61 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
65 $content = $tokens[$stackPtr]['content'];
73 $phpcsFile->addError($error, $stackPtr, 'FoundUppercase', $data);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/NamingConventions/
H A DValidVariableNameSniff.php52 * @param int $stackPtr The position of the current token in the
57 protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
60 $varName = ltrim($tokens[$stackPtr]['content'], '$');
130 $phpcsFile->addError($error, $stackPtr, 'NotCamelCaps', $data);
140 * @param int $stackPtr The position of the current token in the
145 protected function processMemberVar(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
149 $varName = ltrim($tokens[$stackPtr]['content'], '$');
150 $memberProps = $phpcsFile->getMemberProperties($stackPtr);
169 $phpcsFile->addError($error, $stackPtr, 'PublicHasUnderscore', $data);
182 $phpcsFile->addError($error, $stackPtr, 'MemberNotCamelCaps', $errorData);
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Objects/
H A DDisallowObjectStringIndexSniff.php53 * @param int $stackPtr The position of the current token
58 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
63 $index = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
87 $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);

123456789