Home
last modified time | relevance | path

Searched refs:stackPtr (Results 126 – 150 of 219) sorted by relevance

123456789

/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);
H A DFirebugConsoleSniff.php58 * @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/Squiz/Sniffs/NamingConventions/
H A DValidFunctionNameSniff.php43 * @param int $stackPtr The position where this token was
48 protected function processTokenOutsideScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
50 $functionName = $phpcsFile->getDeclarationName($stackPtr);
60 $phpcsFile->addError($error, $stackPtr, 'DoubleUnderscore', $errorData);
66 $phpcsFile->addError($error, $stackPtr, 'NotCamelCaps', $errorData);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/WhiteSpace/
H A DCastSpacingSniff.php50 * @param int $stackPtr The position of the current token in the
55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
59 $content = $tokens[$stackPtr]['content'];
70 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'ContainsWhiteSpace', $data);
72 $phpcsFile->fixer->replaceToken($stackPtr, $expected);
H A DFunctionOpeningBraceSpaceSniff.php63 * @param int $stackPtr The position of the current token
68 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
72 if (isset($tokens[$stackPtr]['scope_opener']) === false) {
77 $openBrace = $tokens[$stackPtr]['scope_opener'];
80 if ($nextContent === $tokens[$stackPtr]['scope_closer']) {
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/Methods/
H A DMethodDeclarationSniff.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);
68 $phpcsFile->addWarning($error, $stackPtr, 'Underscore', $data);
78 $prev = $phpcsFile->findPrevious($find, ($stackPtr - 1), null, true);
80 $prefix = $stackPtr;
145 foreach ($fixes as $stackPtr => $content) {
146 $phpcsFile->fixer->replaceToken($stackPtr, $content);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Commenting/
H A DDocCommentAlignmentSniff.php60 * @param int $stackPtr The position of the current token
65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
77 $nextToken = $phpcsFile->findNext($ignore, ($stackPtr + 1), null, true);
95 …$prevToken = $phpcsFile->findPrevious(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr - 1), null,…
103 $requiredColumn = ($tokens[$stackPtr]['column'] + 1);
104 $endComment = $tokens[$stackPtr]['comment_closer'];
105 for ($i = ($stackPtr + 1); $i <= $endComment; $i++) {
114 … $prev = $phpcsFile->findPrevious(T_DOC_COMMENT_WHITESPACE, ($i - 1), $stackPtr, true);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/PHP/
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 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 DNoSilencedErrorsSniff.php60 * @param int $stackPtr The position of the current token
65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
70 $phpcsFile->addError($error, $stackPtr, 'Forbidden');
73 $phpcsFile->addWarning($error, $stackPtr, 'Discouraged');
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/NamingConventions/
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/Squiz/Sniffs/CSS/
H A DClassDefinitionNameSpacingSniff.php55 * @param int $stackPtr The position in the stack where
60 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
65 …$nested = $phpcsFile->findNext(T_OPEN_CURLY_BRACKET, ($stackPtr + 1), $tokens[$stackPtr]['bracket_…
79 …$prev = $phpcsFile->findPrevious(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr - 1), null, true…
83 for ($i = ($stackPtr - 1); $i >= 0; $i--) {
/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);
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 …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Classes/
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));
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/ControlStructures/
H A DLowercaseDeclarationSniff.php61 * @param int $stackPtr The position of the current token in
66 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
70 $content = $tokens[$stackPtr]['content'];
79 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'FoundUppercase', $data);
81 $phpcsFile->fixer->replaceToken($stackPtr, strtolower($content));
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 …]
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');
/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/Squiz/Sniffs/PHP/
H A DDisallowMultipleAssignmentsSniff.php51 * @param int $stackPtr The position of the current token in the
56 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
61 …$function = $phpcsFile->findPrevious(array(T_FUNCTION, T_CLOSURE), ($stackPtr - 1), null, false, n…
65 if ($opener < $stackPtr && $closer > $stackPtr) {
78 for ($varToken = ($stackPtr - 1); $varToken >= 0; $varToken--) {
179 $phpcsFile->addError($error, $stackPtr, 'Found');
H A DDisallowObEndFlushSniff.php50 * @param int $stackPtr The position of the current token in the
55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
59 if ($tokens[$stackPtr]['content'] === 'ob_end_flush') {
60 …end_flush() is not allowed; use ob_get_contents() and ob_end_clean() instead', $stackPtr, 'Found');
/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/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/Generic/Sniffs/Files/
H A DInlineHTMLSniff.php49 * @param int $stackPtr The position of the current token in
54 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
58 if (substr($tokens[$stackPtr]['content'], 0, 2) === '#!') {
63 $phpcsFile->addError($error, $stackPtr, 'Found');
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/Namespaces/
H A DNamespaceDeclarationSniff.php48 * @param int $stackPtr The position of the current token in
53 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
57 for ($i = ($stackPtr + 1); $i < ($phpcsFile->numTokens - 1); $i++) {
58 if ($tokens[$i]['line'] === $tokens[$stackPtr]['line']) {
82 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'BlankLineAfter');

123456789