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

Breadcrumb

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

function ArrayComparator::indent

1 call to ArrayComparator::indent()
ArrayComparator::assertEquals in vendor/sebastian/comparator/src/ArrayComparator.php

File

vendor/sebastian/comparator/src/ArrayComparator.php, line 123

Class

ArrayComparator
Arrays are equal if they contain the same key-value pairs. The order of the keys does not matter. The types of key-value pairs do not matter.

Namespace

SebastianBergmann\Comparator

Code

private function indent(string $lines) : string {
    return trim(str_replace("\n", "\n    ", $lines));
}

API Navigation

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