src/Sp/FixtureDumper/Generator/Alice/ArrayFixtureGenerator.php
protected function prepareData(ClassMetadata $metadata, array $data)
    {
        $writer = new Writer();
        $writer->writeln(sprintf('$fixtures[\'%s\'] = array(', $metadata->getName()));

        foreach ($data as $key => $values) {
            $writer
                ->indent()
                ->writeln(sprintf("'%s' => array(", $key))
                ->indent();

            $arrayValues = array();
            foreach ($values as $k => $value) {
                $arrayValues[] = sprintf("'%s' => %s", $k, $this->convertValue($value));
            }

            $writer
                ->writeln(implode(",\n", $arrayValues))
                ->outdent()
                ->writeln("),")
                ->outdent();
        }

        $writer->writeln(');');

        return $writer->getContent();
    }
protected function prepareData(ClassMetadata $metadata, array $data)
    {
        $writer = new Writer();
        $writer->writeln(sprintf('$fixtures[\'%s\'] = array(', $metadata->getName()));

        foreach ($data as $key => $values) {
            $writer
                ->indent()
                ->writeln(sprintf("'%s' => array(", $key))
                ->indent();

            $arrayValues = array();
            foreach ($values as $k => $value) {
                $arrayValues[] = sprintf("'%s' => %s", $k, $this->convertValue($value));
            }

            $writer
                ->writeln(implode(",\n", $arrayValues))
                ->outdent()
                ->writeln("),")
                ->outdent();
        }

        $writer->writeln(');');

        return $writer->getContent();
    }
{@inheritdoc}