@@ -84,7 +84,7 @@ protected function describeRoute(Route $route, array $options = [])
84
84
{
85
85
$ tableHeaders = ['Property ' , 'Value ' ];
86
86
$ tableRows = [
87
- ['Route Name ' , isset ( $ options ['name ' ]) ? $ options [ ' name ' ] : '' ],
87
+ ['Route Name ' , $ options ['name ' ] ?? '' ],
88
88
['Path ' , $ route ->getPath ()],
89
89
['Path Regex ' , $ route ->compile ()->getRegex ()],
90
90
['Host ' , ('' !== $ route ->getHost () ? $ route ->getHost () : 'ANY ' )],
@@ -150,7 +150,7 @@ protected function describeContainerService($service, array $options = [], Conta
150
150
$ options ['output ' ]->table (
151
151
['Service ID ' , 'Class ' ],
152
152
[
153
- [isset ( $ options ['id ' ]) ? $ options [ ' id ' ] : '- ' , \get_class ($ service )],
153
+ [$ options ['id ' ] ?? '- ' , \get_class ($ service )],
154
154
]
155
155
);
156
156
}
@@ -159,7 +159,7 @@ protected function describeContainerService($service, array $options = [], Conta
159
159
protected function describeContainerServices (ContainerBuilder $ builder , array $ options = [])
160
160
{
161
161
$ showHidden = isset ($ options ['show_hidden ' ]) && $ options ['show_hidden ' ];
162
- $ showTag = isset ( $ options ['tag ' ]) ? $ options [ ' tag ' ] : null ;
162
+ $ showTag = $ options ['tag ' ] ?? null ;
163
163
164
164
if ($ showHidden ) {
165
165
$ title = 'Symfony Container Hidden Services ' ;
@@ -223,7 +223,7 @@ protected function describeContainerServices(ContainerBuilder $builder, array $o
223
223
foreach ($ this ->sortByPriority ($ definition ->getTag ($ showTag )) as $ key => $ tag ) {
224
224
$ tagValues = [];
225
225
foreach ($ tagsNames as $ tagName ) {
226
- $ tagValues [] = isset ( $ tag [$ tagName ]) ? $ tag [ $ tagName ] : '' ;
226
+ $ tagValues [] = $ tag [$ tagName ] ?? '' ;
227
227
}
228
228
if (0 === $ key ) {
229
229
$ tableRows [] = array_merge ([$ serviceId ], $ tagValues , [$ definition ->getClass ()]);
@@ -257,7 +257,7 @@ protected function describeContainerDefinition(Definition $definition, array $op
257
257
258
258
$ tableHeaders = ['Option ' , 'Value ' ];
259
259
260
- $ tableRows [] = ['Service ID ' , isset ( $ options ['id ' ]) ? $ options [ ' id ' ] : '- ' ];
260
+ $ tableRows [] = ['Service ID ' , $ options ['id ' ] ?? '- ' ];
261
261
$ tableRows [] = ['Class ' , $ definition ->getClass () ?: '- ' ];
262
262
263
263
$ omitTags = isset ($ options ['omit_tags ' ]) && $ options ['omit_tags ' ];
0 commit comments