Skip to content

Commit da3736a

Browse files
author
cradu
committed
pint fixes
1 parent b29d7c9 commit da3736a

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

phpinsights.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@
2727
NunoMaduro\PhpInsights\Domain\Insights\ForbiddenTraits::class,
2828
PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\TodoSniff::class,
2929
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,
3035
PhpCsFixer\Fixer\ClassNotation\OrderedClassElementsFixer::class,
36+
PhpCsFixer\Fixer\Operator\NewWithBracesFixer::class,
3137
],
3238
'config' => [
3339
// ExampleInsight::class => [

src/Exceptions/HookFailException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@
66

77
use RuntimeException;
88

9-
class HookFailException extends RuntimeException
10-
{
11-
}
9+
class HookFailException extends RuntimeException {}

src/GitHooksServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ public function register(): void
3939
// Automatically apply the package configuration
4040
$this->mergeConfigFrom(__DIR__.'/../config/git-hooks.php', 'laravel-git-hooks');
4141

42-
$this->app->singleton('laravel-git-hooks', fn () => new GitHooks());
42+
$this->app->singleton('laravel-git-hooks', fn () => new GitHooks);
4343
}
4444
}

src/Traits/WithPipelineFailCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ protected function markPipelineFailed(): void
1212
{
1313
$tmpFile = $this->getPipelineFailedTempFile();
1414
if (touch($tmpFile) === false) {
15-
throw new HookFailException();
15+
throw new HookFailException;
1616
}
1717
}
1818

0 commit comments

Comments
 (0)