Home
last modified time | relevance | path

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

123456789

/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/CodeAnalysis/
H A DUnnecessaryFinalModifierSniff.php60 * @param int $stackPtr The position of the current token
65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
68 $token = $tokens[$stackPtr];
76 …$prev = $phpcsFile->findPrevious(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr - 1), null, true…
H A DUnusedFunctionParameterSniff.php57 * @param int $stackPtr The position of the current token
62 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
65 $token = $tokens[$stackPtr];
73 foreach ($phpcsFile->getMethodParameters($stackPtr) as $param) {
74 $params[$param['name']] = $stackPtr;
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Commenting/
H A DFixmeSniff.php60 * @param int $stackPtr The position of the current token
65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
69 $content = $tokens[$stackPtr]['content'];
85 $phpcsFile->addError($error, $stackPtr, $type, $data);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Debug/
H A DClosureLinterSniff.php71 * @param int $stackPtr The position in the stack where
77 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
H A DJSHintSniff.php57 * @param int $stackPtr The position in the stack where
63 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Files/
H A DEndFileNoNewlineSniff.php59 * @param int $stackPtr The position of the current token in
64 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
68 $stackPtr = ($phpcsFile->numTokens - 1);
70 if ($tokens[$stackPtr]['content'] === '') {
71 $stackPtr--;
75 $lastChars = substr($tokens[$stackPtr]['content'], ($eolCharLen * -1));
78 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Found');
80 $newContent = substr($tokens[$stackPtr]['content'], 0, ($eolCharLen * -1));
81 $phpcsFile->fixer->replaceToken($stackPtr, $newContent);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Formatting/
H A DSpaceAfterNotSniff.php58 * @param int $stackPtr The position of the current token in
63 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
68 if ($tokens[($stackPtr + 1)]['code'] === T_WHITESPACE) {
69 $spacing = $tokens[($stackPtr + 1)]['length'];
77 $fix = $phpcsFile->addFixableError($message, $stackPtr, 'Incorrect', array($spacing));
81 $phpcsFile->fixer->addContent($stackPtr, ' ');
83 $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' ');
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Functions/
H A DCallTimePassByReferenceSniff.php51 * @param int $stackPtr The position of the current token
56 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
65 $prev = $phpcsFile->findPrevious($findTokens, ($stackPtr - 1), null, true);
78 $functionName = $stackPtr;
H A DFunctionCallArgumentSpacingSniff.php55 * @param int $stackPtr The position of the current token in the
60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
69 $functionName = $stackPtr;
72 $functionKeyword = $phpcsFile->findPrevious($ignoreTokens, ($stackPtr - 1), null, true);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Operators/
H A DValidLogicalOperatorsSniff.php54 * @param int $stackPtr The position of the current token in the
59 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
68 $operator = strtolower($tokens[$stackPtr]['content']);
78 $phpcsFile->addError($error, $stackPtr, 'NotAllowed', $data);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Strings/
H A DConcatenationSpacingSniff.php70 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
75 if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE) {
78 if ($tokens[($stackPtr - 2)]['line'] !== $tokens[$stackPtr]['line']) {
81 $before = $tokens[($stackPtr - 1)]['length'];
85 if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
88 if ($tokens[($stackPtr + 2)]['line'] !== $tokens[$stackPtr]['line']) {
91 $after = $tokens[($stackPtr + 1)]['length'];
122 if ($tokens[($stackPtr - 1)]['code'] === T_WHITESPACE) {
129 … $phpcsFile->fixer->replaceToken(($stackPtr - 2), '('.$tokens[($stackPtr - 2)]['content'].')');
146 … $phpcsFile->fixer->replaceToken(($stackPtr + 2), '('.$tokens[($stackPtr + 2)]['content'].')');
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/WhiteSpace/
H A DLanguageConstructSpacingSniff.php60 * @param int $stackPtr The position of the current token in
65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
69 if ($tokens[($stackPtr + 1)]['code'] === T_SEMICOLON) {
74 if ($tokens[($stackPtr + 1)]['code'] === T_WHITESPACE) {
75 $content = $tokens[($stackPtr + 1)]['content'];
82 $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' ');
85 } else if ($tokens[($stackPtr + 1)]['code'] !== T_OPEN_PARENTHESIS) {
88 $tokens[$stackPtr]['content'].' '.$tokens[($stackPtr + 1)]['content'],
89 $tokens[$stackPtr]['content'].$tokens[($stackPtr + 1)]['content'],
91 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Incorrect', $data);
[all …]
H A DLogicalOperatorSpacingSniff.php65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
70 if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE) {
74 $phpcsFile->fixer->addContentBefore($stackPtr, ' ');
78 if ($tokens[$stackPtr]['line'] === $tokens[$prev]['line']
79 && strlen($tokens[($stackPtr - 1)]['content']) !== 1
81 $found = strlen($tokens[($stackPtr - 1)]['content']);
92 if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
96 $phpcsFile->fixer->addContent($stackPtr, ' ');
100 if ($tokens[$stackPtr]['line'] === $tokens[$next]['line']
101 && strlen($tokens[($stackPtr + 1)]['content']) !== 1
[all …]
H A DObjectOperatorSpacingSniff.php62 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
65 if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE) {
68 if ($tokens[($stackPtr - 2)]['line'] !== $tokens[$stackPtr]['line']) {
71 $before = $tokens[($stackPtr - 1)]['length'];
75 if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
78 if ($tokens[($stackPtr + 2)]['line'] !== $tokens[$stackPtr]['line']) {
81 $after = $tokens[($stackPtr + 1)]['length'];
88 $this->checkSpacingBeforeOperator($phpcsFile, $stackPtr, $before);
89 $this->checkSpacingAfterOperator($phpcsFile, $stackPtr, $after);
113 $phpcsFile->fixer->replaceToken(($stackPtr - 1), '');
[all …]
H A DSemicolonSpacingSniff.php60 * @param int $stackPtr The position of the current token
65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
69 $prevType = $tokens[($stackPtr - 1)]['code'];
74 …$nonSpace = $phpcsFile->findPrevious(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr - 2), null, …
81 $found = $phpcsFile->getTokensAsString($nonSpace, ($stackPtr - $nonSpace)).';';
88 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Incorrect', $data);
91 $i = ($stackPtr - 1);
98 $phpcsFile->fixer->replaceToken($stackPtr, '');
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Zend/Sniffs/Debug/
H A DCodeAnalyzerSniff.php50 * @param int $stackPtr The position in the stack where
55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/Objects/
H A DAssignThisSniff.php53 * @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);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/PHP/
H A DGetRequestDataSniff.php46 * @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);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/Functions/
H A DValidDefaultValueSniff.php54 * @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 DValidVariableNameSniff.php41 * @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 DScopeClosingBraceSniff.php57 * @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
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR1/Sniffs/Classes/
H A DClassDeclarationSniff.php58 * @param integer $stackPtr The position of the current token in
63 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
73 if (isset($tokens[$stackPtr]['scope_closer']) === false) {
77 $errorData = array(strtolower($tokens[$stackPtr]['content']));
79 …$nextClass = $phpcsFile->findNext(array(T_CLASS, T_INTERFACE, T_TRAIT), ($tokens[$stackPtr]['scope…
83 $phpcsFile->recordMetric($stackPtr, 'One class per file', 'no');
85 $phpcsFile->recordMetric($stackPtr, 'One class per file', 'yes');
92 $phpcsFile->addError($error, $stackPtr, 'MissingNamespace', $errorData);
93 $phpcsFile->recordMetric($stackPtr, 'Class defined in namespace', 'no');
95 $phpcsFile->recordMetric($stackPtr, 'Class defined in namespace', 'yes');
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR1/Sniffs/Methods/
H A DCamelCapsMethodNameSniff.php40 * @param int $stackPtr The position where this token was
46 … protected function processTokenWithinScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $currScope) argument
48 $methodName = $phpcsFile->getDeclarationName($stackPtr);
69 $phpcsFile->addError($error, $stackPtr, 'NotCamelCaps', $errorData);
70 $phpcsFile->recordMetric($stackPtr, 'CamelCase method name', 'no');
72 $phpcsFile->recordMetric($stackPtr, 'CamelCase method name', 'yes');
82 * @param int $stackPtr The position where this token was
87 protected function processTokenOutsideScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/Classes/
H A DClassDeclarationSniff.php49 parent::process($phpcsFile, $stackPtr);
57 $this->processOpen($phpcsFile, $stackPtr);
58 $this->processClose($phpcsFile, $stackPtr);
79 $prevContent = $tokens[($stackPtr - 1)]['content'];
101 || $tokens[($stackPtr - 2)]['code'] === T_FINAL
119 for ($i = ($stackPtr - 1); $i > 0; $i--) {
135 $gap = $tokens[($stackPtr + 1)]['content'];
169 $openingBrace = $tokens[$stackPtr]['scope_opener'];
214 if ($tokens[$stackPtr]['code'] === T_INTERFACE) {
417 $closeBrace = $tokens[$stackPtr]['scope_closer'];
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/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
60 if ($tokens[$stackPtr]['code'] === T_ELSEIF) {
61 $phpcsFile->recordMetric($stackPtr, 'Use of ELSE IF or ELSEIF', 'elseif');
65 $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
67 $phpcsFile->recordMetric($stackPtr, 'Use of ELSE IF or ELSEIF', 'else if');
69 $fix = $phpcsFile->addFixableWarning($error, $stackPtr, 'NotAllowed');
73 $phpcsFile->fixer->replaceToken($stackPtr, 'elseif');
74 for ($i = ($stackPtr + 1); $i <= $next; $i++) {

123456789