File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -190,18 +190,12 @@ public function run(): void
190
190
*/
191
191
public function getHooksToInstall (): array
192
192
{
193
- // callback to write bool true to all array entries
194
193
// to make sure the user will be asked to confirm every hook installation
195
194
// unless the user provided the force or skip option
196
- $ callback = function () {
197
- return true ;
198
- };
199
- // if a specific hook is set, the use has actively chosen it, so don't ask for permission anymore
195
+ // if specific hooks are set, the use has actively chosen it, so don't ask for permission anymore
200
196
return empty ($ this ->hooksToHandle )
201
- ? array_map ($ callback , Hooks::nativeHooks ())
202
- : array_map (static function (): bool {
203
- return false ;
204
- }, array_flip ($ this ->hooksToHandle ));
197
+ ? array_map (fn ($ hook ) => true , Hooks::nativeHooks ())
198
+ : array_map (fn ($ hook ) => false , array_flip ($ this ->hooksToHandle ));
205
199
}
206
200
207
201
/**
You can’t perform that action at this time.
0 commit comments