@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | $io = new DefaultIO($input, $output); |
| 247 | 247 | $io->askAndValidate( |
| 248 | 248 | 'foo', |
| 249 | - function () { |
|
| 249 | + function() { |
|
| 250 | 250 | return true; |
| 251 | 251 | } |
| 252 | 252 | ); |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | $io = new DefaultIO($input, $output, $helper); |
| 289 | 289 | $answer = $io->askAndValidate( |
| 290 | 290 | 'foo', |
| 291 | - function () { |
|
| 291 | + function() { |
|
| 292 | 292 | return true; |
| 293 | 293 | } |
| 294 | 294 | ); |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | * @link https://github.com/captainhook-git/captainhook |
| 27 | 27 | * @since Class available since Release 3.0.1 |
| 28 | 28 | */ |
| 29 | -final class Hooks{ |
|
| 29 | +final class Hooks { |
|
| 30 | 30 | public const PRE_COMMIT = 'pre-commit'; |
| 31 | 31 | public const PRE_PUSH = 'pre-push'; |
| 32 | 32 | public const COMMIT_MSG = 'commit-msg'; |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | return array_keys( |
| 121 | 121 | array_filter( |
| 122 | 122 | self::$virtualHookTriggers, |
| 123 | - function ($e) use ($virtualHook) { |
|
| 123 | + function($e) use ($virtualHook) { |
|
| 124 | 124 | return $e === $virtualHook; |
| 125 | 125 | } |
| 126 | 126 | ) |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | * @param bool $fileExists |
| 99 | 99 | * @param array<string, mixed> $settings |
| 100 | 100 | */ |
| 101 | - public function __construct(string $path, bool $fileExists = false, array $settings = []){ |
|
| 101 | + public function __construct(string $path, bool $fileExists = false, array $settings = []) { |
|
| 102 | 102 | $settings = $this->setupPlugins($settings); |
| 103 | 103 | $settings = $this->setupCustom($settings); |
| 104 | 104 | $settings = $this->setupRunConfig($settings); |