From 25252806b8d89410bc0de2b0bc3ef6ecb2001c67 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Fri, 29 Mar 2024 09:01:20 +0100 Subject: [PATCH] Revert "Rename method" This reverts commit e983d088fd345a620dd7d35829754dddf33778fd. --- src/Exporter.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Exporter.php b/src/Exporter.php index 0bde99c..0ea27da 100644 --- a/src/Exporter.php +++ b/src/Exporter.php @@ -51,7 +51,7 @@ final class Exporter */ public function export(mixed $value): string { - return $this->doExport($value); + return $this->recursiveExport($value); } public function shortenedRecursiveExport(array &$data, ?Context $context = null): string @@ -138,7 +138,7 @@ final class Exporter return $this->export($value); } - private function doExport(mixed &$value, int $indentation = 0, ?Context $processed = null): string + private function recursiveExport(mixed &$value, int $indentation = 0, ?Context $processed = null): string { if ($value === null) { return 'null'; @@ -262,9 +262,9 @@ final class Exporter $values .= $whitespace . ' ' . - $this->doExport($k, $indentation) + $this->recursiveExport($k, $indentation) . ' => ' . - $this->doExport($value[$k], $indentation + 1, $processed) + $this->recursiveExport($value[$k], $indentation + 1, $processed) . ",\n"; } @@ -292,9 +292,9 @@ final class Exporter $values .= $whitespace . ' ' . - $this->doExport($k, $indentation) + $this->recursiveExport($k, $indentation) . ' => ' . - $this->doExport($v, $indentation + 1, $processed) + $this->recursiveExport($v, $indentation + 1, $processed) . ",\n"; }