@@ -84,7 +84,7 @@ protected function describeRoute(Route $route, array $options = [])
8484 {
8585 $ tableHeaders = ['Property ' , 'Value ' ];
8686 $ tableRows = [
87- ['Route Name ' , isset ( $ options ['name ' ]) ? $ options [ ' name ' ] : '' ],
87+ ['Route Name ' , $ options ['name ' ] ?? '' ],
8888 ['Path ' , $ route ->getPath ()],
8989 ['Path Regex ' , $ route ->compile ()->getRegex ()],
9090 ['Host ' , ('' !== $ route ->getHost () ? $ route ->getHost () : 'ANY ' )],
@@ -150,7 +150,7 @@ protected function describeContainerService($service, array $options = [], Conta
150150 $ options ['output ' ]->table (
151151 ['Service ID ' , 'Class ' ],
152152 [
153- [isset ( $ options ['id ' ]) ? $ options [ ' id ' ] : '- ' , \get_class ($ service )],
153+ [$ options ['id ' ] ?? '- ' , \get_class ($ service )],
154154 ]
155155 );
156156 }
@@ -159,7 +159,7 @@ protected function describeContainerService($service, array $options = [], Conta
159159 protected function describeContainerServices (ContainerBuilder $ builder , array $ options = [])
160160 {
161161 $ showHidden = isset ($ options ['show_hidden ' ]) && $ options ['show_hidden ' ];
162- $ showTag = isset ( $ options ['tag ' ]) ? $ options [ ' tag ' ] : null ;
162+ $ showTag = $ options ['tag ' ] ?? null ;
163163
164164 if ($ showHidden ) {
165165 $ title = 'Symfony Container Hidden Services ' ;
@@ -223,7 +223,7 @@ protected function describeContainerServices(ContainerBuilder $builder, array $o
223223 foreach ($ this ->sortByPriority ($ definition ->getTag ($ showTag )) as $ key => $ tag ) {
224224 $ tagValues = [];
225225 foreach ($ tagsNames as $ tagName ) {
226- $ tagValues [] = isset ( $ tag [$ tagName ]) ? $ tag [ $ tagName ] : '' ;
226+ $ tagValues [] = $ tag [$ tagName ] ?? '' ;
227227 }
228228 if (0 === $ key ) {
229229 $ tableRows [] = array_merge ([$ serviceId ], $ tagValues , [$ definition ->getClass ()]);
@@ -257,7 +257,7 @@ protected function describeContainerDefinition(Definition $definition, array $op
257257
258258 $ tableHeaders = ['Option ' , 'Value ' ];
259259
260- $ tableRows [] = ['Service ID ' , isset ( $ options ['id ' ]) ? $ options [ ' id ' ] : '- ' ];
260+ $ tableRows [] = ['Service ID ' , $ options ['id ' ] ?? '- ' ];
261261 $ tableRows [] = ['Class ' , $ definition ->getClass () ?: '- ' ];
262262
263263 $ omitTags = isset ($ options ['omit_tags ' ]) && $ options ['omit_tags ' ];
0 commit comments