src/Encoder/ArrayEncoder.php
private function getInlineArray(array $lines, array $options)
    {
        $output = $this->wrap(implode(', ', $lines), $options['array.short']);

        if (preg_match('/[\r\n\t]/', $output)) {
            return false;
        } elseif ($options['array.inline'] === true || \strlen($output) <= (int) $options['array.inline']) {
            return $output;
        }

        return false;
    }
private function getInlineArray(array $lines, array $options)
    {
        $output = $this->wrap(implode(', ', $lines), $options['array.short']);

        if (preg_match('/[\r\n\t]/', $output)) {
            return false;
        } elseif ($options['array.inline'] === true || \strlen($output) <= (int) $options['array.inline']) {
            return $output;
        }

        return false;
    }
private function getInlineArray ( array $ lines , array $ options ) { $ output = $ this -> wrap ( implode ( ', ' , $ lines ) , $ options [ 'array.short' ] ) ; if ( preg_match ( '/[\r\n\t]/' , $ output ) ) { return false ; } elseif ( $ options [ 'array.inline' ] === true || \ strlen ( $ output ) <= ( int ) $ options [ 'array.inline' ] ) { return $ output ; } return false ; }
Returns the code for the inline array, if possible.
@param string[] $lines Encoded key and value pairs
@param array $options List of encoder options
@return string|false Array encoded as single line of PHP code or false if not possible
Returns the code for the inline array if possible .