Lines Matching refs:commentLines
129 $commentLines = array($stackPtr);
147 $commentLines[] = $nextComment;
162 $lastToken = array_pop($commentLines);
173 if (count($commentLines) === 1) {
213 if (trim($tokens[$commentLines[1]]['content']) === '') {
215 $fix = $phpcsFile->addFixableError($error, $commentLines[1], 'HasEmptyLine');
217 $phpcsFile->fixer->replaceToken($commentLines[1], '');
221 $content = $tokens[$commentLines[1]]['content'];
236 … $fix = $phpcsFile->addFixableError($error, $commentLines[1], 'FirstLineIndent', $data);
238 if (isset($tokens[$commentLines[1]]['orig_content']) === true
239 && $tokens[$commentLines[1]]['orig_content'][0] === "\t"
247 $phpcsFile->fixer->replaceToken($commentLines[1], $padding.ltrim($content));
253 $phpcsFile->addError($error, $commentLines[1], 'NoCapital');
258 foreach ($commentLines as $line) {
261 if ($line === $commentLines[(count($commentLines) - 1)] || $line === $commentLines[0]) {
266 if ($line === $commentLines[1]) {
304 $lastIndex = (count($commentLines) - 1);
305 $content = trim($tokens[$commentLines[$lastIndex]]['content']);
308 $phpcsFile->addError($error, $commentLines[$lastIndex], 'CloserSameLine');
310 $content = $tokens[$commentLines[$lastIndex]]['content'];
327 $phpcsFile->addError($error, $commentLines[$lastIndex], 'LastLineIndent', $data);
347 $commentCloser = $commentLines[$lastIndex];