Skip to content

Commit 67a8f89

Browse files
CaptainHook - for laravel pint
1 parent 811b787 commit 67a8f89

File tree

4 files changed

+443
-9
lines changed

4 files changed

+443
-9
lines changed

app/Filament/App/Resources/SubscriptionResource.php

-8
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,12 @@
1919
class SubscriptionResource extends Resource
2020
{
2121
protected static ?string $model = Subscription::class;
22-
2322
protected static ?string $navigationIcon = 'fas-hand-holding-dollar';
24-
2523
protected static ?string $navigationGroup = 'Administração';
26-
2724
protected static ?string $navigationLabel = 'Minhas Assinaturas';
28-
2925
protected static ?string $modelLabel = 'Minha Assinatura';
30-
3126
protected static ?string $modelLabelPlural = "Minhas Assinaturas";
32-
3327
protected static ?int $navigationSort = 1;
34-
3528
protected static bool $isScopedToTenant = true;
3629

3730
public static function form(Form $form): Form
@@ -112,7 +105,6 @@ public static function table(Table $table): Table
112105
return sprintf('%d dias e %02d horas', $remainingDays, $remainingHours);
113106
})
114107
->alignCenter(),
115-
116108
])
117109
->filters([
118110
//

captainhook.json

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"commit-msg": {
3+
"enabled": true,
4+
"actions": [
5+
{
6+
"action": "\\CaptainHook\\App\\Hook\\Message\\Action\\Beams",
7+
"options": {
8+
"subjectLength": 50,
9+
"bodyLineLength": 72
10+
}
11+
}
12+
]
13+
},
14+
"pre-push": {
15+
"enabled": false,
16+
"actions": []
17+
},
18+
"pre-commit": {
19+
"enabled": true,
20+
"actions": [
21+
{
22+
"action": "\\CaptainHook\\App\\Hook\\PHP\\Action\\Linting"
23+
},
24+
{
25+
"action": "phpunit"
26+
},
27+
{
28+
"action": "phpcs --standard=psr2 src"
29+
},
30+
{
31+
"action": "vendor/bin/pint"
32+
}
33+
]
34+
},
35+
"prepare-commit-msg": {
36+
"enabled": false,
37+
"actions": []
38+
},
39+
"post-commit": {
40+
"enabled": false,
41+
"actions": []
42+
},
43+
"post-merge": {
44+
"enabled": false,
45+
"actions": []
46+
},
47+
"post-checkout": {
48+
"enabled": false,
49+
"actions": []
50+
},
51+
"post-rewrite": {
52+
"enabled": false,
53+
"actions": []
54+
},
55+
"post-change": {
56+
"enabled": false,
57+
"actions": []
58+
}
59+
}

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"stripe/stripe-php": "^16.4"
2222
},
2323
"require-dev": {
24+
"captainhook/captainhook": "^5.24",
2425
"fakerphp/faker": "^1.23",
2526
"laravel/pail": "^1.1",
2627
"laravel/pint": "^1.20",

0 commit comments

Comments
 (0)