function JumpStatementsSpacingSniff::getLinesCountAfterLast
* @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter
Overrides AbstractControlStructureSpacing::getLinesCountAfterLast
File
-
vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Sniffs/ ControlStructures/ JumpStatementsSpacingSniff.php, line 131
Class
Namespace
SlevomatCodingStandard\Sniffs\ControlStructuresCode
protected function getLinesCountAfterLast(File $phpcsFile, int $jumpStatementPointer, int $jumpStatementEndPointer) : int {
if ($this->linesCountAfterWhenLastInLastCaseOrDefault !== null && $this->isLastInLastCaseOrDefault($phpcsFile, $jumpStatementEndPointer)) {
return $this->linesCountAfterWhenLastInLastCaseOrDefault;
}
if ($this->linesCountAfterWhenLastInCaseOrDefault !== null && $this->isLastInCaseOrDefault($phpcsFile, $jumpStatementEndPointer)) {
return $this->linesCountAfterWhenLastInCaseOrDefault;
}
return $this->linesCountAfterLast;
}