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

Breadcrumb

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

function RequireSingleLineCallSniff::shouldReportError

1 call to RequireSingleLineCallSniff::shouldReportError()
RequireSingleLineCallSniff::process in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Functions/RequireSingleLineCallSniff.php
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint *

File

vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Functions/RequireSingleLineCallSniff.php, line 191

Class

RequireSingleLineCallSniff

Namespace

SlevomatCodingStandard\Sniffs\Functions

Code

private function shouldReportError(int $lineLength) : bool {
    if ($this->maxLineLength === 0) {
        return true;
    }
    return $lineLength <= $this->maxLineLength;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal