show only name for named datasets

Took 4 minutes
This commit is contained in:
Fabio Ivona
2021-05-23 22:16:29 +02:00
parent 9027411004
commit 98c62f4b1d

View File

@ -111,8 +111,10 @@ final class Datasets
{
$exporter = new Exporter();
$nameInsert = is_string($key) ? \sprintf('data set "%s" ', $key) : '';
if(is_int($key)){
return \sprintf(' with (%s)', $exporter->shortenedRecursiveExport($data));
}
return \sprintf(' with %s(%s)', $nameInsert, $exporter->shortenedRecursiveExport($data));
return \sprintf(' with data set "%s"', $key);
}
}