Home
last modified time | relevance | path

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

123456789

/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Zend/Sniffs/Files/
H A DClosingTagSniff.php50 * @param int $stackPtr The position of the current token in
55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
72 $phpcsFile->recordMetric($stackPtr, 'PHP closing tag at EOF', 'yes');
74 $phpcsFile->recordMetric($stackPtr, 'PHP closing tag at EOF', 'no');
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Zend/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'], '$');
136 $phpcsFile->addError($error, $stackPtr, 'NotCamelCaps', $data);
140 $phpcsFile->addWarning($warning, $stackPtr, 'ContainsNumbers', $data);
150 * @param int $stackPtr The position of the current token in the
155 protected function processMemberVar(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
158 $varName = ltrim($tokens[$stackPtr]['content'], '$');
159 $memberProps = $phpcsFile->getMemberProperties($stackPtr);
185 $phpcsFile->addError($error, $stackPtr, 'MemberVarNotCamelCaps', $data);
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Tokenizers/
H A DCSS.php79 for ($stackPtr = 1; $stackPtr < $numTokens; $stackPtr++) {
80 $token = $tokens[$stackPtr];
108 for ($stackPtr = ($stackPtr + 3); $stackPtr < $numTokens; $stackPtr++) {
114 $stackPtr += 2;
248 $stackPtr--;
277 for ($stackPtr = 0; $stackPtr < $numTokens; $stackPtr++) {
278 $token = $finalTokens[$stackPtr];
357 … $finalTokens[($stackPtr + 1)]['content'] = '-'.$finalTokens[($stackPtr + 1)]['content'];
433 $stackPtr = $i;
455 …$newContent = $finalTokens[($stackPtr - 1)]['content'].$finalTokens[$stackPtr]['content'].$finalTo…
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/CSS/
H A DDisallowMultipleStyleDefinitionsSniff.php55 * @param int $stackPtr The position in the stack where
60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
63 $next = $phpcsFile->findNext(T_STYLE, ($stackPtr + 1));
73 if ($tokens[$next]['line'] === $tokens[$stackPtr]['line']) {
H A DDuplicateClassDefinitionSniff.php55 * @param int $stackPtr The position in the stack where
60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
66 $next = $phpcsFile->findNext(T_OPEN_CURLY_BRACKET, ($stackPtr + 1));
H A DDuplicateStyleDefinitionSniff.php55 * @param int $stackPtr The position in the stack where
60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
67 $next = $stackPtr;
68 $end = $tokens[$stackPtr]['bracket_closer'];
H A DEmptyStyleDefinitionSniff.php55 * @param int $stackPtr The position in the stack where
60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
63 $next = $phpcsFile->findNext(array(T_WHITESPACE, T_COLON), ($stackPtr + 1), null, true);
65 … $tokens[$next]['code'] === T_SEMICOLON || $tokens[$next]['line'] !== $tokens[$stackPtr]['line']) {
67 $phpcsFile->addError($error, $stackPtr, 'Found');
H A DOpacitySniff.php55 * @param int $stackPtr The position in the stack where
60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
64 if ($tokens[$stackPtr]['content'] !== 'opacity') {
68 $next = $phpcsFile->findNext(array(T_COLON, T_WHITESPACE), ($stackPtr + 1), null, true);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Classes/
H A DClassFileNameSniff.php54 * @param int $stackPtr The position of the current token in
59 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
69 $decName = $phpcsFile->findNext(T_STRING, $stackPtr);
74 ucfirst($tokens[$stackPtr]['content']),
75 $tokens[$stackPtr]['content'],
78 $phpcsFile->addError($error, $stackPtr, 'NoMatch', $data);
H A DLowercaseClassKeywordsSniff.php60 * @param int $stackPtr The position of the current token in
65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
69 $content = $tokens[$stackPtr]['content'];
78 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'FoundUppercase', $data);
80 $phpcsFile->fixer->replaceToken($stackPtr, strtolower($content));
H A DSelfMemberReferenceSniff.php67 $calledClassName = ($stackPtr - 1);
101 if ($phpcsFile->hasCondition($stackPtr, T_CLOSURE) === false) {
108 for ($i = ($prev + 1); $i < $stackPtr; $i++) {
112 $phpcsFile->fixer->replaceToken($stackPtr, 'self::');
121 if ($tokens[($stackPtr - 1)]['code'] === T_WHITESPACE) {
122 $found = strlen($tokens[($stackPtr - 1)]['content']);
128 $phpcsFile->fixer->replaceToken(($stackPtr - 1), '');
132 if ($tokens[($stackPtr + 1)]['code'] === T_WHITESPACE) {
133 $found = strlen($tokens[($stackPtr + 1)]['content']);
139 $phpcsFile->fixer->replaceToken(($stackPtr + 1), '');
[all …]
H A DValidClassNameSniff.php54 * @param int $stackPtr The position of the current token in the
59 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
63 if (isset($tokens[$stackPtr]['scope_opener']) === false) {
65 $data = array($tokens[$stackPtr]['content']);
66 $phpcsFile->addWarning($error, $stackPtr, 'MissingBrace', $data);
73 $opener = $tokens[$stackPtr]['scope_opener'];
74 $nameStart = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), $opener, true);
85 $type = ucfirst($tokens[$stackPtr]['content']);
91 $phpcsFile->addError($error, $stackPtr, 'NotCamelCaps', $data);
92 $phpcsFile->recordMetric($stackPtr, 'CamelCase class name', 'no');
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Commenting/
H A DInlineCommentSniff.php75 if ($tokens[$stackPtr]['code'] === T_DOC_COMMENT_OPEN_TAG) {
78 ($stackPtr + 1),
126 ($stackPtr - 1),
135 if ($tokens[$stackPtr]['content'] === '/**') {
141 if ($tokens[$stackPtr]['content']{0} === '#') {
169 $comment = rtrim($tokens[$stackPtr]['content']);
235 $topComment = $stackPtr;
236 $lastComment = $stackPtr;
248 for ($i = $topComment; $i <= $stackPtr; $i++) {
258 $phpcsFile->fixer->replaceToken($stackPtr, '');
[all …]
H A DLongConditionClosingCommentSniff.php95 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
99 if (isset($tokens[$stackPtr]['scope_condition']) === false) {
104 $startCondition = $tokens[$tokens[$stackPtr]['scope_condition']];
105 $startBrace = $tokens[$tokens[$stackPtr]['scope_opener']];
106 $endBrace = $tokens[$stackPtr];
146 $stackPtr = $tokens[$nextToken]['scope_closer'];
147 $endBrace = $tokens[$stackPtr];
160 $stackPtr = $tokens[$nextToken]['scope_closer'];
161 $endBrace = $tokens[$stackPtr];
185 $phpcsFile->fixer->addContent($stackPtr, $expected);
[all …]
H A DPostStatementCommentSniff.php60 * @param int $stackPtr The position of the current token in the
65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
69 if (substr($tokens[$stackPtr]['content'], 0, 2) !== '//') {
73 $commentLine = $tokens[$stackPtr]['line'];
74 $lastContent = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
95 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Found');
97 $phpcsFile->fixer->addNewlineBefore($stackPtr);
H A DVariableCommentSniff.php41 * @param int $stackPtr The position of the current token
46 public function processMemberVar(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
58 $commentEnd = $phpcsFile->findPrevious($ignore, ($stackPtr - 1), null, true);
63 $phpcsFile->addError('Missing member variable doc comment', $stackPtr, 'Missing');
68 …dError('You must use "/**" style comments for a member variable comment', $stackPtr, 'WrongStyle');
142 * @param int $stackPtr The position where the double quoted
147 protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
159 * @param int $stackPtr The position where the double quoted
164 protected function processVariableInString(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/ControlStructures/
H A DElseIfDeclarationSniff.php51 * @param int $stackPtr The position of the current token in the
56 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
59 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NotAllowed');
61 $phpcsFile->fixer->replaceToken($stackPtr, 'else if');
H A DForLoopDeclarationSniff.php74 * @param int $stackPtr The position of the current token in the
79 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
85 $openingBracket = $phpcsFile->findNext(T_OPEN_PARENTHESIS, $stackPtr);
88 $phpcsFile->addWarning($error, $stackPtr, 'NoOpenBracket');
96 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingAfterOpen');
112 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingAfterOpen', $data);
126 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingBeforeClose');
160 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingBeforeFirst');
170 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSpaceAfterFirst');
193 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingBeforeSecond');
[all …]
H A DInlineIfDeclarationSniff.php55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
61 if (isset($tokens[$stackPtr]['nested_parenthesis']) === true) {
62 $parens = $tokens[$stackPtr]['nested_parenthesis'];
79 $phpcsFile->addError($error, $stackPtr, 'NotSingleLine');
88 $phpcsFile->addError($error, $stackPtr, 'NoBrackets');
98 $phpcsFile->fixer->addContentBefore($stackPtr, ' ');
100 $phpcsFile->fixer->replaceToken(($stackPtr - 1), ' ');
112 if ($inlineElse !== ($stackPtr + 1)) {
116 $phpcsFile->fixer->replaceToken(($stackPtr + 1), '');
126 $phpcsFile->fixer->addContent($stackPtr, ' ');
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Functions/
H A DGlobalFunctionSniff.php50 * @param int $stackPtr The position of the current token in the
55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
59 if (empty($tokens[$stackPtr]['conditions']) === true) {
60 $functionName = $phpcsFile->getDeclarationName($stackPtr);
69 $phpcsFile->addWarning($error, $stackPtr, 'Found', $data);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Objects/
H A DObjectInstantiationSniff.php50 * @param int $stackPtr The position in the stack where
55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
62 $prev = $phpcsFile->findPrevious($allowedTokens, ($stackPtr - 1), null, true);
75 $phpcsFile->addError($error, $stackPtr, 'NotAssigned');
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/PHP/
H A DDisallowInlineIfSniff.php60 * @param int $stackPtr The position of the current token
65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
67 $phpcsFile->addError('Inline IF statements are not allowed', $stackPtr, 'Found');
H A DEvalSniff.php50 * @param int $stackPtr The position of the current token in
55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
58 $phpcsFile->addWarning($error, $stackPtr, 'Discouraged');
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Scope/
H A DMethodScopeSniff.php50 * @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);
65 if ($phpcsFile->hasCondition($stackPtr, T_FUNCTION) === true) {
71 for ($i = ($stackPtr - 1); $i > 0; $i--) {
72 if ($tokens[$i]['line'] < $tokens[$stackPtr]['line']) {
83 $phpcsFile->addError($error, $stackPtr, 'Missing', $data);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/
H A DAbstractScopeSniff.php136 * @param int $stackPtr The position in the stack where this
142 public final function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
147 foreach ($tokens[$stackPtr]['conditions'] as $scope => $code) {
149 $this->processTokenWithinScope($phpcsFile, $stackPtr, $scope);
155 $this->processTokenOutsideScope($phpcsFile, $stackPtr);
166 * @param int $stackPtr The position in the stack where this
176 $stackPtr, argument
186 * @param int $stackPtr The position in the stack where this
193 $stackPtr argument

123456789