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

Breadcrumb

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

function IndentationHelper::getIndentation

23 calls to IndentationHelper::getIndentation()
ArrayHelper::getValueEndPointer in vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/ArrayHelper.php
ArrayHelper::parse in vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/ArrayHelper.php
*
AttributeAndTargetSpacingSniff::process in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Attributes/AttributeAndTargetSpacingSniff.php
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint *
AttributesOrderSniff::process in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Attributes/AttributesOrderSniff.php
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint *
DisallowCommentAfterCodeSniff::process in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Commenting/DisallowCommentAfterCodeSniff.php
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint *

... See full list

File

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

Class

IndentationHelper
@internal

Namespace

SlevomatCodingStandard\Helpers

Code

public static function getIndentation(File $phpcsFile, int $pointer) : string {
    $firstPointerOnLine = TokenHelper::findFirstTokenOnLine($phpcsFile, $pointer);
    return TokenHelper::getContent($phpcsFile, $firstPointerOnLine, $pointer - 1);
}

API Navigation

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