Skip to content

Commit f796f53

Browse files
committed
fix: pint
1 parent 1b4316b commit f796f53

File tree

14 files changed

+20
-21
lines changed

14 files changed

+20
-21
lines changed

app/Console/Commands/LegacyMigrateEncryption.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class LegacyMigrateEncryption extends Command
3333
*/
3434
public function handle(): int
3535
{
36-
if (!Env::get('CHAT_PRIVATE_KEY') !== null && Env::get('CHAT_PUBLIC_KEY') !== null && Env::get('IBAN_SECRET_KEY') !== null) {
36+
if (! Env::get('CHAT_PRIVATE_KEY') !== null && Env::get('CHAT_PUBLIC_KEY') !== null && Env::get('IBAN_SECRET_KEY') !== null) {
3737
$this->error('Please set chat private key and public key / IBAN_SECRET_KEY');
3838

3939
return self::FAILURE;

app/Http/Controllers/Legacy/ExportController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use App\Exports\LegacyBudgetExport;
66
use App\Http\Controllers\Controller;
77
use App\Models\Legacy\LegacyBudgetPlan;
8-
use Carbon\Carbon;
98
use Illuminate\Support\Facades\Date;
109
use Maatwebsite\Excel\Excel;
1110

app/Livewire/Project/EditProject.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function mount(): void
5555
Gate::authorize('update', $project);
5656
$this->form->setProject($project);
5757
$this->state_name = $project->state->getValue();
58-
$this->posts = $project->posts->map(fn(ProjectPost $post) => [
58+
$this->posts = $project->posts->map(fn (ProjectPost $post) => [
5959
'id' => $post->id,
6060
'name' => $post->name,
6161
'bemerkung' => $post->bemerkung ?? '',
@@ -174,15 +174,15 @@ public function addEmptyPost(): void
174174
*/
175175
public function getTotalIncome(): Money
176176
{
177-
return $this->posts->reduce(fn(?Money $carry, array $post) => $carry ? $carry->add($post['einnahmen']) : $post['einnahmen'], Money::EUR(0));
177+
return $this->posts->reduce(fn (?Money $carry, array $post) => $carry ? $carry->add($post['einnahmen']) : $post['einnahmen'], Money::EUR(0));
178178
}
179179

180180
/**
181181
* Get the sum of all expense posts
182182
*/
183183
public function getTotalExpenses(): Money
184184
{
185-
return $this->posts->reduce(fn(?Money $carry, array $post) => $carry ? $carry->add($post['ausgaben']) : $post['ausgaben'], Money::EUR(0));
185+
return $this->posts->reduce(fn (?Money $carry, array $post) => $carry ? $carry->add($post['ausgaben']) : $post['ausgaben'], Money::EUR(0));
186186
}
187187

188188
public function removeAttachment(int $index): void
@@ -210,7 +210,7 @@ protected function getRechtsgrundlagenOptions(): array
210210
{
211211
$rechtsgrundlagen = config('stufis.project_legal', []);
212212

213-
return collect($rechtsgrundlagen)->map(fn($def, $key) => [
213+
return collect($rechtsgrundlagen)->map(fn ($def, $key) => [
214214
'key' => $key,
215215
'label' => $def['label'] ?? $key,
216216
'placeholder' => $def['placeholder'] ?? '',

app/Models/Legacy/Expense.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
* @method static Builder|Expense whereZahlungIban($value)
6161
* @method static Builder|Expense whereZahlungName($value)
6262
* @method static Builder|Expense whereZahlungVwzk($value)
63-
*
6463
* @method HasOneOrManyThrough|ExpenseReceipt throughReceipts()
6564
*
6665
* @mixin \Eloquent

app/Models/Legacy/LegacyBudgetPlan.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
* @method static \Illuminate\Database\Eloquent\Builder|LegacyBudgetPlan whereId($value)
2626
* @method static \Illuminate\Database\Eloquent\Builder|LegacyBudgetPlan whereState($value)
2727
* @method static \Illuminate\Database\Eloquent\Builder|LegacyBudgetPlan whereVon($value)
28-
*
2928
* @method HasOneOrManyThrough throughBudgetGroups()
3029
*
3130
* @mixin \Eloquent

app/Models/Legacy/Project.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
* @method static Builder|Project whereStateCreatorId($value)
6767
* @method static Builder|Project whereVersion($value)
6868
* @method static \Database\Factories\Legacy\ProjectFactory factory($count = null, $state = [])
69-
*
7069
* @method HasOneOrManyThrough throughPosts()
7170
*
7271
* @mixin \Eloquent

app/Models/PtfProject/LegalBasis.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,4 @@
3030
*
3131
* @mixin \Eloquent
3232
*/
33-
class LegalBasis extends Model
34-
{
35-
36-
}
33+
class LegalBasis extends Model {}

app/Models/PtfProject/ProjectAttachment.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,4 @@
3333
*
3434
* @mixin Eloquent
3535
*/
36-
class ProjectAttachment extends Model
37-
{
38-
39-
}
36+
class ProjectAttachment extends Model {}

app/Providers/AppServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,6 @@ public function registerAuth(): void
8787
private function bootMoney(): void
8888
{
8989
Livewire::propertySynthesizer(MoneySynth::class);
90-
Builder::macro('sumMoney', fn(string $column): Money => Money::EUR($this->sum($column)));
90+
Builder::macro('sumMoney', fn (string $column): Money => Money::EUR($this->sum($column)));
9191
}
9292
}

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,16 @@
102102
],
103103
"test": [
104104
"@php artisan config:clear --ansi",
105-
"@php artisan test"
105+
"@php artisan test --env=testing"
106106
],
107107
"pre-package-uninstall": [
108108
"Illuminate\\Foundation\\ComposerScripts::prePackageUninstall"
109109
],
110110
"rector": "@php vendor/bin/rector process",
111111
"rector-dry": "@php vendor/bin/rector process --dry-run",
112-
"lint": "@php vendor/bin/phpstan"
112+
"lint": "@php vendor/bin/phpstan",
113+
"lint-fix": "@php vendor/bin/phpstan --fix",
114+
"pint": "@php vendor/bin/pint"
113115
},
114116
"extra": {
115117
"laravel": {

0 commit comments

Comments
 (0)