Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. JumpStatementsSpacingSniff.php

function JumpStatementsSpacingSniff::checkLinesAfter

Overrides AbstractControlStructureSpacing::checkLinesAfter

File

vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/ControlStructures/JumpStatementsSpacingSniff.php, line 166

Class

JumpStatementsSpacingSniff

Namespace

SlevomatCodingStandard\Sniffs\ControlStructures

Code

protected function checkLinesAfter(File $phpcsFile, int $jumpStatementPointer) : void {
    if ($this->allowSingleLineYieldStacking && $this->isStackedSingleLineYield($phpcsFile, $jumpStatementPointer, false)) {
        return;
    }
    if ($this->isThrowExpression($phpcsFile, $jumpStatementPointer)) {
        return;
    }
    parent::checkLinesAfter($phpcsFile, $jumpStatementPointer);
}
RSS feed
Powered by Drupal