Revert "Rename method"

This reverts commit e983d088fd.
This commit is contained in:
Sebastian Bergmann 2024-03-29 09:01:20 +01:00
parent da0d6e7264
commit 25252806b8
No known key found for this signature in database
GPG Key ID: 4AA394086372C20A
1 changed files with 6 additions and 6 deletions

View File

@ -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";
}