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

Breadcrumb

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

function IndentationHelper::getOneIndentationLevel

2 calls to IndentationHelper::getOneIndentationLevel()
IndentationHelper::addIndentation in vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/IndentationHelper.php
RequireMultiLineCallSniff::process in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Functions/RequireMultiLineCallSniff.php
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint *

File

vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/IndentationHelper.php, line 43

Class

IndentationHelper
@internal

Namespace

SlevomatCodingStandard\Helpers

Code

public static function getOneIndentationLevel(string $indentation) : string {
    return $indentation === '' ? self::TAB_INDENT : ($indentation[0] === self::TAB_INDENT ? self::TAB_INDENT : self::SPACES_INDENT);
}

API Navigation

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