@@ -89,7 +89,7 @@ protected function describeRoute(Route $route, array $options = [])
89
89
90
90
$ tableHeaders = ['Property ' , 'Value ' ];
91
91
$ tableRows = [
92
- ['Route Name ' , isset ( $ options ['name ' ]) ? $ options [ ' name ' ] : '' ],
92
+ ['Route Name ' , $ options ['name ' ] ?? '' ],
93
93
['Path ' , $ route ->getPath ()],
94
94
['Path Regex ' , $ route ->compile ()->getRegex ()],
95
95
['Host ' , ('' !== $ route ->getHost () ? $ route ->getHost () : 'ANY ' )],
@@ -155,7 +155,7 @@ protected function describeContainerService($service, array $options = [], Conta
155
155
$ options ['output ' ]->table (
156
156
['Service ID ' , 'Class ' ],
157
157
[
158
- [isset ( $ options ['id ' ]) ? $ options [ ' id ' ] : '- ' , \get_class ($ service )],
158
+ [$ options ['id ' ] ?? '- ' , \get_class ($ service )],
159
159
]
160
160
);
161
161
}
@@ -164,7 +164,7 @@ protected function describeContainerService($service, array $options = [], Conta
164
164
protected function describeContainerServices (ContainerBuilder $ builder , array $ options = [])
165
165
{
166
166
$ showHidden = isset ($ options ['show_hidden ' ]) && $ options ['show_hidden ' ];
167
- $ showTag = isset ( $ options ['tag ' ]) ? $ options [ ' tag ' ] : null ;
167
+ $ showTag = $ options ['tag ' ] ?? null ;
168
168
169
169
if ($ showHidden ) {
170
170
$ title = 'Symfony Container Hidden Services ' ;
@@ -228,7 +228,7 @@ protected function describeContainerServices(ContainerBuilder $builder, array $o
228
228
foreach ($ this ->sortByPriority ($ definition ->getTag ($ showTag )) as $ key => $ tag ) {
229
229
$ tagValues = [];
230
230
foreach ($ tagsNames as $ tagName ) {
231
- $ tagValues [] = isset ( $ tag [$ tagName ]) ? $ tag [ $ tagName ] : '' ;
231
+ $ tagValues [] = $ tag [$ tagName ] ?? '' ;
232
232
}
233
233
if (0 === $ key ) {
234
234
$ tableRows [] = array_merge ([$ serviceId ], $ tagValues , [$ definition ->getClass ()]);
@@ -262,7 +262,7 @@ protected function describeContainerDefinition(Definition $definition, array $op
262
262
263
263
$ tableHeaders = ['Option ' , 'Value ' ];
264
264
265
- $ tableRows [] = ['Service ID ' , isset ( $ options ['id ' ]) ? $ options [ ' id ' ] : '- ' ];
265
+ $ tableRows [] = ['Service ID ' , $ options ['id ' ] ?? '- ' ];
266
266
$ tableRows [] = ['Class ' , $ definition ->getClass () ?: '- ' ];
267
267
268
268
$ omitTags = isset ($ options ['omit_tags ' ]) && $ options ['omit_tags ' ];
0 commit comments