@@ -89,7 +89,7 @@ protected function describeRoute(Route $route, array $options = [])
8989
9090 $ tableHeaders = ['Property ' , 'Value ' ];
9191 $ tableRows = [
92- ['Route Name ' , isset ( $ options ['name ' ]) ? $ options [ ' name ' ] : '' ],
92+ ['Route Name ' , $ options ['name ' ] ?? '' ],
9393 ['Path ' , $ route ->getPath ()],
9494 ['Path Regex ' , $ route ->compile ()->getRegex ()],
9595 ['Host ' , ('' !== $ route ->getHost () ? $ route ->getHost () : 'ANY ' )],
@@ -155,7 +155,7 @@ protected function describeContainerService($service, array $options = [], Conta
155155 $ options ['output ' ]->table (
156156 ['Service ID ' , 'Class ' ],
157157 [
158- [isset ( $ options ['id ' ]) ? $ options [ ' id ' ] : '- ' , \get_class ($ service )],
158+ [$ options ['id ' ] ?? '- ' , \get_class ($ service )],
159159 ]
160160 );
161161 }
@@ -164,7 +164,7 @@ protected function describeContainerService($service, array $options = [], Conta
164164 protected function describeContainerServices (ContainerBuilder $ builder , array $ options = [])
165165 {
166166 $ showHidden = isset ($ options ['show_hidden ' ]) && $ options ['show_hidden ' ];
167- $ showTag = isset ( $ options ['tag ' ]) ? $ options [ ' tag ' ] : null ;
167+ $ showTag = $ options ['tag ' ] ?? null ;
168168
169169 if ($ showHidden ) {
170170 $ title = 'Symfony Container Hidden Services ' ;
@@ -228,7 +228,7 @@ protected function describeContainerServices(ContainerBuilder $builder, array $o
228228 foreach ($ this ->sortByPriority ($ definition ->getTag ($ showTag )) as $ key => $ tag ) {
229229 $ tagValues = [];
230230 foreach ($ tagsNames as $ tagName ) {
231- $ tagValues [] = isset ( $ tag [$ tagName ]) ? $ tag [ $ tagName ] : '' ;
231+ $ tagValues [] = $ tag [$ tagName ] ?? '' ;
232232 }
233233 if (0 === $ key ) {
234234 $ tableRows [] = array_merge ([$ serviceId ], $ tagValues , [$ definition ->getClass ()]);
@@ -262,7 +262,7 @@ protected function describeContainerDefinition(Definition $definition, array $op
262262
263263 $ tableHeaders = ['Option ' , 'Value ' ];
264264
265- $ tableRows [] = ['Service ID ' , isset ( $ options ['id ' ]) ? $ options [ ' id ' ] : '- ' ];
265+ $ tableRows [] = ['Service ID ' , $ options ['id ' ] ?? '- ' ];
266266 $ tableRows [] = ['Class ' , $ definition ->getClass () ?: '- ' ];
267267
268268 $ omitTags = isset ($ options ['omit_tags ' ]) && $ options ['omit_tags ' ];
0 commit comments