File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 27
27
NunoMaduro \PhpInsights \Domain \Insights \ForbiddenTraits::class,
28
28
PHP_CodeSniffer \Standards \Generic \Sniffs \Commenting \TodoSniff::class,
29
29
PHP_CodeSniffer \Standards \Generic \Sniffs \Files \LineLengthSniff::class,
30
+ PHP_CodeSniffer \Standards \Squiz \Sniffs \WhiteSpace \ScopeClosingBraceSniff::class,
31
+ PHP_CodeSniffer \Standards \PEAR \Sniffs \WhiteSpace \ScopeClosingBraceSniff::class,
32
+ PHP_CodeSniffer \Standards \PSR12 \Sniffs \Classes \ClassInstantiationSniff::class,
33
+ PhpCsFixer \Fixer \Basic \BracesFixer::class,
34
+ PhpCsFixer \Fixer \ClassNotation \ClassDefinitionFixer::class,
30
35
PhpCsFixer \Fixer \ClassNotation \OrderedClassElementsFixer::class,
36
+ PhpCsFixer \Fixer \Operator \NewWithBracesFixer::class,
31
37
],
32
38
'config ' => [
33
39
// ExampleInsight::class => [
Original file line number Diff line number Diff line change 6
6
7
7
use RuntimeException ;
8
8
9
- class HookFailException extends RuntimeException
10
- {
11
- }
9
+ class HookFailException extends RuntimeException {}
Original file line number Diff line number Diff line change @@ -39,6 +39,6 @@ public function register(): void
39
39
// Automatically apply the package configuration
40
40
$ this ->mergeConfigFrom (__DIR__ .'/../config/git-hooks.php ' , 'laravel-git-hooks ' );
41
41
42
- $ this ->app ->singleton ('laravel-git-hooks ' , fn () => new GitHooks () );
42
+ $ this ->app ->singleton ('laravel-git-hooks ' , fn () => new GitHooks );
43
43
}
44
44
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ protected function markPipelineFailed(): void
12
12
{
13
13
$ tmpFile = $ this ->getPipelineFailedTempFile ();
14
14
if (touch ($ tmpFile ) === false ) {
15
- throw new HookFailException () ;
15
+ throw new HookFailException ;
16
16
}
17
17
}
18
18
You can’t perform that action at this time.
0 commit comments