8000 Update DebugCommand.php · symfony/symfony@80818ef · GitHub
[go: up one dir, main page]

Skip to content

Commit 80818ef

Browse files
authored
Update DebugCommand.php
1 parent cf62089 commit 80818ef

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Symfony/Bridge/Twig/Command/DebugCommand.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ protected function configure()
101101
protected function execute(InputInterface $input, OutputInterface $output)
102102
{
103103
$io = new SymfonyStyle($input, $output);
104-
$decored = $io->isDecorated();
104+
$decorated = $io->isDecorated();
105105

106106
// BC to be removed in 4.0
107107
if (__CLASS__ !== \get_class($this)) {
@@ -135,7 +135,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
135135

136136
$data['loader_paths'] = $this->getLoaderPaths();
137137
$data = json_encode($data, JSON_PRETTY_PRINT);
138-
$io->writeln($decored ? OutputFormatter::escape($data) : $data);
138+
$io->writeln($decorated ? OutputFormatter::escape($data) : $data);
139139

140140
return 0;
141141
}
@@ -144,7 +144,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
144144
$items = [];
145145
foreach ($this->twig->{'get'.ucfirst($type)}() as $name => $entity) {
146146
if (!$filter || false !== strpos($name, $filter)) {
147-
$items[$name] = $name.$this->getPrettyMetadata($type, $entity, $decored);
147+
$items[$name] = $name.$this->getPrettyMetadata($type, $entity, $decorated);
148148
}
149149
}
150150

@@ -270,7 +270,7 @@ private function getMetadata($type, $entity)
270270
}
271271
}
272272

273-
private function getPrettyMetadata($type, $entity, $decored)
273+
private function getPrettyMetadata($type, $entity, $decorated)
274274
{
275275
if ('tests' === $type) {
276276
return '';
@@ -282,7 +282,7 @@ private function getPrettyMetadata($type, $entity, $decored)
282282
return '(unknown?)';
283283
}
284284
} catch (\UnexpectedValueException $e) {
285-
return sprintf(' <error>%s</error>', $decored ? OutputFormatter::escape($e->getMessage()) : $e->getMessage());
285+
return sprintf(' <error>%s</error>', $decorated ? OutputFormatter::escape($e->getMessage()) : $e->getMessage());
286286
}
287287

288288
if ('globals' === $type) {
@@ -292,7 +292,7 @@ private function getPrettyMetadata($type, $entity, $decored)
292292

293293
$description = substr(@json_encode($meta), 0, 50);
294294

295-
return sprintf(' = %s', $decored ? OutputFormatter::escape($description) : $description);
295+
return sprintf(' = %s', $decorated ? OutputFormatter::escape($description) : $description);
296296
}
297297

298298
if ('functions' === $type) {

0 commit comments

Comments
 (0)
2918
0