src/Encoder/ArrayEncoder.php
private function buildIndent($base, $indent, $depth)
    {
        $base = \is_int($base) ? str_repeat(' ', $base) : (string) $base;

        return $depth === 0 ? $base : $base . str_repeat(
            \is_int($indent) ? str_repeat(' ', $indent) : (string) $indent,
            $depth
        );
    }
private function buildIndent($base, $indent, $depth)
    {
        $base = \is_int($base) ? str_repeat(' ', $base) : (string) $base;

        return $depth === 0 ? $base : $base . str_repeat(
            \is_int($indent) ? str_repeat(' ', $indent) : (string) $indent,
            $depth
        );
    }
private function buildIndent ( $ base , $ indent , $ depth ) { $ base = \ is_int ( $ base ) ? str_repeat ( ' ' , $ base ) : ( string ) $ base ; return $ depth === 0 ? $ base : $ base . str_repeat ( \ is_int ( $ indent ) ? str_repeat ( ' ' , $ indent ) : ( string ) $ indent , $ depth ) ; }
Builds the indentation based on the options.
@param string|int $base The base indentation
@param string|int $indent A single indentation level
@param int $depth The level of indentation
@return string The indentation for the current depth
Builds the indentation based on the options .