Skip to main content
Drupal API
Menu
User account menu
Log in
Breadcrumb
Drupal Core 11.1.x
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
)); }
RSS feed