@@ -101,7 +101,7 @@ protected function configure()
101
101
protected function execute (InputInterface $ input , OutputInterface $ output )
102
102
{
103
103
$ io = new SymfonyStyle ($ input , $ output );
104
- $ decored = $ io ->isDecorated ();
104
+ $ decorated = $ io ->isDecorated ();
105
105
106
106
// BC to be removed in 4.0
107
107
if (__CLASS__ !== \get_class ($ this )) {
@@ -135,7 +135,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
135
135
136
136
$ data ['loader_paths ' ] = $ this ->getLoaderPaths ();
137
137
$ data = json_encode ($ data, JSON_PRETTY_PRINT );
138
- $ io ->writeln ($ decored ? OutputFormatter::escape ($ data ) : $ data );
138
+ $ io ->writeln ($ decorated ? OutputFormatter::escape ($ data ) : $ data );
139
139
140
140
return 0 ;
141
141
}
@@ -144,7 +144,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
144
144
$ items = [];
145
145
foreach ($ this ->twig ->{'get ' .ucfirst ($ type )}() as $ name => $ entity ) {
146
146
if (!$ filter || false !== strpos ($ name , $ filter )) {
147
- $ items [$ name ] = $ name .$ this ->getPrettyMetadata ($ type , $ entity , $ decored );
147
+ $ items [$ name ] = $ name .$ this ->getPrettyMetadata ($ type , $ entity , $ decorated );
148
148
}
149
149
}
150
150
@@ -270,7 +270,7 @@ private function getMetadata($type, $entity)
270
270
}
271
271
}
272
272
273
- private function getPrettyMetadata ($ type , $ entity , $ decored )
273
+ private function getPrettyMetadata ($ type , $ entity , $ decorated )
274
274
{
275
275
if ('tests ' === $ type ) {
276
276
return '' ;
@@ -282,7 +282,7 @@ private function getPrettyMetadata($type, $entity, $decored)
282
282
return '(unknown?) ' ;
283
283
}
284
284
} 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 ());
286
286
}
287
287
288
288
if ('globals ' === $ type ) {
@@ -292,7 +292,7 @@ private function getPrettyMetadata($type, $entity, $decored)
292
292
293
293
$ description = substr (@json_encode ($ meta ), 0 , 50 );
294
294
295
- return sprintf (' = %s ' , $ decored ? OutputFormatter::escape ($ description ) : $ description );
295
+ return sprintf (' = %s ' , $ decorated ? OutputFormatter::escape ($ description ) : $ description );
296
296
}
297
297
298
298
if ('functions ' === $ type ) {
0 commit comments