Skip to content

Commit d08e25b

Browse files
fix(twig-hooks): apply review suggestions
1 parent 174541e commit d08e25b

2 files changed

Lines changed: 112 additions & 193 deletions

File tree

src/TwigHooks/src/Command/DebugTwigHooksCommand.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -221,17 +221,7 @@ private function formatConfiguration(array $configuration): string
221221
return '-';
222222
}
223223

224-
$parts = [];
225-
foreach ($configuration as $key => $value) {
226-
$parts[] = \sprintf('%s: %s', $key, $this->formatValue($value));
227-
}
228-
229-
return implode("\n", $parts);
230-
}
231-
232-
private function formatValue(mixed $value): string
233-
{
234-
return VarExporter::export($value);
224+
return VarExporter::export($configuration);
235225
}
236226

237227
private function getHookableType(AbstractHookable $hookable): string

0 commit comments

Comments
 (0)