Home
last modified time | relevance | path

Searched refs:commentStart (Results 1 – 10 of 10) sorted by relevance

/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/Commenting/
H A DFunctionCommentSniff.php91 $commentStart = $tokens[$commentEnd]['comment_opener'];
92 foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
103 $this->processReturn($phpcsFile, $stackPtr, $commentStart);
104 $this->processThrows($phpcsFile, $stackPtr, $commentStart);
105 $this->processParams($phpcsFile, $stackPtr, $commentStart);
129 foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
174 foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
216 foreach ($tokens[$commentStart]['comment_tags'] as $pos => $tag) {
254 $end = $tokens[$commentStart]['comment_tags'][($pos + 1)];
256 $end = $tokens[$commentStart]['comment_closer'];
[all …]
H A DFileCommentSniff.php114 if ($tokens[$commentStart]['code'] === T_DECLARE) {
120 if ($tokens[$commentStart]['code'] === T_COMMENT) {
122 $commentStart = $phpcsFile->findNext(
124 ($commentStart + 1),
136 if ($tokens[$commentStart]['code'] === T_CLOSE_TAG) {
139 } else if ($tokens[$commentStart]['code'] === T_COMMENT) {
144 } else if ($commentStart === false
152 $commentEnd = $tokens[$commentStart]['comment_closer'];
187 for ($i = ($commentStart + 1); $i < $commentEnd; $i++) {
204 $this->processTags($phpcsFile, $stackPtr, $commentStart);
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Commenting/
H A DFileCommentSniff.php69 $commentStart = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
71 if ($tokens[$commentStart]['code'] === T_COMMENT) {
72 …ile->addError('You must use "/**" style comments for a file comment', $commentStart, 'WrongStyle');
75 … } else if ($commentStart === false || $tokens[$commentStart]['code'] !== T_DOC_COMMENT_OPEN_TAG) {
81 $commentEnd = $tokens[$commentStart]['comment_closer'];
119 if ($tokens[$commentStart]['line'] > ($tokens[$stackPtr]['line'] + 1)) {
140 foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
210 …$phpcsFile->addError($error, $tokens[$commentStart]['comment_tags'][$pos], ucfirst(substr($tag, 1)…
H A DFunctionCommentSniff.php53 protected function processReturn(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $commentStart) argument
62 foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
189 protected function processThrows(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $commentStart) argument
194 foreach ($tokens[$commentStart]['comment_tags'] as $pos => $tag) {
218 if (isset($tokens[$commentStart]['comment_tags'][($pos + 1)]) === true) {
219 $end = $tokens[$commentStart]['comment_tags'][($pos + 1)];
221 $end = $tokens[$commentStart]['comment_closer'];
272 foreach ($tokens[$commentStart]['comment_tags'] as $pos => $tag) {
315 $end = $tokens[$commentStart]['comment_tags'][($pos + 1)];
317 $end = $tokens[$commentStart]['comment_closer'];
[all …]
H A DVariableCommentSniff.php72 $commentStart = $tokens[$commentEnd]['comment_opener'];
75 foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
104 $firstTag = $tokens[$commentStart]['comment_tags'][0];
H A DClassCommentSniff.php86 $commentStart = $tokens[$commentEnd]['comment_opener'];
87 foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
H A DFunctionCommentThrowTagSniff.php212 $commentStart = $tokens[$commentEnd]['comment_opener'];
213 foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/PHP/
H A DAjaxNullComparisonSniff.php60 $commentStart = $phpcsFile->findPrevious(T_DOC_COMMENT_OPEN_TAG, ($commentEnd - 1));
61 $comment = $phpcsFile->getTokensAsString($commentStart, ($commentEnd - $commentStart));
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Commenting/
H A DDocCommentSniff.php64 $commentStart = $stackPtr;
194 if (empty($tokens[$commentStart]['comment_tags']) === true) {
199 $firstTag = $tokens[$commentStart]['comment_tags'][0];
226 foreach ($tokens[$commentStart]['comment_tags'] as $pos => $tag) {
231 $tokens[$commentStart]['comment_tags'][($pos - 1)]
235 $prev = $tokens[$commentStart]['comment_tags'][($pos - 1)];
285 …hpcsFile->findPrevious(array(T_DOC_COMMENT_TAG, T_DOC_COMMENT_STRING), ($next - 1), $commentStart);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/Commenting/
H A DFunctionCommentSniff.php60 $commentStart = $tokens[$commentEnd]['comment_opener'];
62 foreach ($tokens[$commentStart]['comment_tags'] as $tag) {