From 566d8e8c27c912e5534915529cc05d87eef3e4e4 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 31 Mar 2018 22:19:33 +0200 Subject: [PATCH] Don't use EOL --- Utils/Parser/Php/ArrayParser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Utils/Parser/Php/ArrayParser.php b/Utils/Parser/Php/ArrayParser.php index c4c096cfb..ab30a8094 100644 --- a/Utils/Parser/Php/ArrayParser.php +++ b/Utils/Parser/Php/ArrayParser.php @@ -38,14 +38,14 @@ class ArrayParser */ public static function serializeArray(array $arr, int $depth = 1) : string { - $stringify = '[' . PHP_EOL; + $stringify = '[' . "\n"; foreach ($arr as $key => $val) { if (is_string($key)) { $key = '\'' . str_replace('\'', '\\\'', $key) . '\''; } - $stringify .= str_repeat(' ', $depth * 4) . $key . ' => ' . self::parseVariable($val, $depth + 1) . ',' . PHP_EOL; + $stringify .= str_repeat(' ', $depth * 4) . $key . ' => ' . self::parseVariable($val, $depth + 1) . ',' . "\n"; }