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

Breadcrumb

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

function JumpStatementsSpacingSniff::process

* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint *

Parameters

int $jumpStatementPointer:

Overrides AbstractControlStructureSpacing::process

File

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

Class

JumpStatementsSpacingSniff

Namespace

SlevomatCodingStandard\Sniffs\ControlStructures

Code

public function process(File $phpcsFile, $jumpStatementPointer) : void {
    $this->linesCountBefore = SniffSettingsHelper::normalizeInteger($this->linesCountBefore);
    $this->linesCountBeforeFirst = SniffSettingsHelper::normalizeInteger($this->linesCountBeforeFirst);
    $this->linesCountBeforeWhenFirstInCaseOrDefault = SniffSettingsHelper::normalizeNullableInteger($this->linesCountBeforeWhenFirstInCaseOrDefault);
    $this->linesCountAfter = SniffSettingsHelper::normalizeInteger($this->linesCountAfter);
    $this->linesCountAfterLast = SniffSettingsHelper::normalizeInteger($this->linesCountAfterLast);
    $this->linesCountAfterWhenLastInCaseOrDefault = SniffSettingsHelper::normalizeNullableInteger($this->linesCountAfterWhenLastInCaseOrDefault);
    $this->linesCountAfterWhenLastInLastCaseOrDefault = SniffSettingsHelper::normalizeNullableInteger($this->linesCountAfterWhenLastInLastCaseOrDefault);
    if ($this->isOneOfYieldSpecialCases($phpcsFile, $jumpStatementPointer)) {
        return;
    }
    parent::process($phpcsFile, $jumpStatementPointer);
}
RSS feed
Powered by Drupal