@@ -133,7 +133,7 @@ protected static function formatUsesPrefix($new, $old)
133
133
: trim ($ new ['namespace ' ], '\\' );
134
134
}
135
135
136
- return isset ( $ old ['namespace ' ]) ? $ old [ ' namespace ' ] : null ;
136
+ return $ old ['namespace ' ] ?? null ;
137
137
}
138
138
139
139
/**
@@ -145,7 +145,7 @@ protected static function formatUsesPrefix($new, $old)
145
145
*/
146
146
protected static function formatGroupPrefix ($ new , $ old )
147
147
{
148
- $ oldPrefix = isset ( $ old ['prefix ' ]) ? $ old [ ' prefix ' ] : null ;
148
+ $ oldPrefix = $ old ['prefix ' ] ?? null ;
149
149
150
150
if (isset ($ new ['prefix ' ])) {
151
151
return trim ($ oldPrefix , '/ ' ).'/ ' .trim ($ new ['prefix ' ], '/ ' );
@@ -239,9 +239,9 @@ public function hasGroupStack()
239
239
*/
240
240
protected function mergeGroupAttributes (array $ action , array $ attributes )
241
241
{
242
- $ namespace = isset ( $ attributes ['namespace ' ]) ? $ attributes [ ' namespace ' ] : null ;
243
- $ middleware = isset ( $ attributes ['middleware ' ]) ? $ attributes [ ' middleware ' ] : null ;
244
- $ as = isset ( $ attributes ['as ' ]) ? $ attributes [ ' as ' ] : null ;
242
+ $ namespace = $ attributes ['namespace ' ] ?? null ;
243
+ $ middleware = $ attributes ['middleware ' ] ?? null ;
244
+ $ as = $ attributes ['as ' ] ?? null ;
245
245
246
246
return $ this ->mergeNamespaceGroup (
247
247
$ this ->mergeMiddlewareGroup (
0 commit comments