From aa23eec3926bf572f58d37bec8a23650581aaf85 Mon Sep 17 00:00:00 2001 From: Bob Molitor Date: Mon, 20 Oct 2025 22:10:08 +0200 Subject: [PATCH] pint/lint --- app/Models/Transaction.php | 2 ++ config/database.php | 2 +- database/seeders/DaxCompanySeeder.php | 2 +- routes/web.php | 10 +++++----- tests/Feature/Auth/AuthenticationTest.php | 2 +- tests/Feature/Auth/EmailVerificationTest.php | 2 +- tests/Feature/Auth/PasswordConfirmationTest.php | 2 +- tests/Feature/Auth/PasswordResetTest.php | 2 +- tests/Feature/Auth/RegistrationTest.php | 2 +- tests/Feature/Auth/TwoFactorChallengeTest.php | 2 +- tests/Feature/DashboardTest.php | 2 +- tests/Feature/ExampleTest.php | 2 +- tests/Feature/Settings/PasswordUpdateTest.php | 2 +- tests/Feature/Settings/ProfileUpdateTest.php | 2 +- tests/Feature/Settings/TwoFactorAuthenticationTest.php | 2 +- tests/Unit/ExampleTest.php | 2 +- 16 files changed, 21 insertions(+), 19 deletions(-) diff --git a/app/Models/Transaction.php b/app/Models/Transaction.php index 855ccee..0e986c0 100644 --- a/app/Models/Transaction.php +++ b/app/Models/Transaction.php @@ -11,7 +11,9 @@ class Transaction extends Model use HasFactory; public const STATUS_TRUE_POSITIVE = 'true_positive'; + public const STATUS_FALSE_POSITIVE = 'false_positive'; + public const STATUS_CLEARED = 'cleared'; /** diff --git a/config/database.php b/config/database.php index 4752775..de11492 100644 --- a/config/database.php +++ b/config/database.php @@ -146,7 +146,7 @@ return [ 'options' => [ 'cluster' => env('REDIS_CLUSTER', 'redis'), - 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_') . '_database_'), + 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), 'persistent' => env('REDIS_PERSISTENT', false), ], diff --git a/database/seeders/DaxCompanySeeder.php b/database/seeders/DaxCompanySeeder.php index 59f2c31..9f288da 100644 --- a/database/seeders/DaxCompanySeeder.php +++ b/database/seeders/DaxCompanySeeder.php @@ -129,7 +129,7 @@ class DaxCompanySeeder extends Seeder ->setTime(random_int(7, 19), random_int(0, 59), random_int(0, 59)); $company->transactions()->create([ - 'reference' => 'TRX-' . str_pad((string) $sequence++, 6, '0', STR_PAD_LEFT), + 'reference' => 'TRX-'.str_pad((string) $sequence++, 6, '0', STR_PAD_LEFT), 'amount' => $faker->randomFloat(2, 8_500, 4_500_000), 'currency' => Arr::random(['EUR', 'USD', 'GBP']), 'counterparty' => $faker->company(), diff --git a/routes/web.php b/routes/web.php index 903da1b..d3f58ff 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,7 +1,7 @@ select('SELECT NOW() as current_time'); + return response()->json([ 'status' => 'Erfolgreich verbunden mit zweiter Datenbank', - 'zeitstempel' => $result[0]->current_time + 'zeitstempel' => $result[0]->current_time, ]); } catch (\Exception $e) { return response()->json([ 'status' => 'Fehler bei der Verbindung', - 'meldung' => $e->getMessage() + 'meldung' => $e->getMessage(), ], 500); } }); - Route::view('dashboard', 'dashboard') ->middleware(['auth', 'verified']) ->name('dashboard'); @@ -58,4 +58,4 @@ Route::middleware(['auth'])->group(function () { ->name('two-factor.show'); }); -require __DIR__ . '/auth.php'; +require __DIR__.'/auth.php'; diff --git a/tests/Feature/Auth/AuthenticationTest.php b/tests/Feature/Auth/AuthenticationTest.php index f9a65ca..2626575 100644 --- a/tests/Feature/Auth/AuthenticationTest.php +++ b/tests/Feature/Auth/AuthenticationTest.php @@ -74,4 +74,4 @@ test('users can logout', function () { $response->assertRedirect(route('home')); $this->assertGuest(); -}); \ No newline at end of file +}); diff --git a/tests/Feature/Auth/EmailVerificationTest.php b/tests/Feature/Auth/EmailVerificationTest.php index b4994c9..6384aaf 100644 --- a/tests/Feature/Auth/EmailVerificationTest.php +++ b/tests/Feature/Auth/EmailVerificationTest.php @@ -64,4 +64,4 @@ test('already verified user visiting verification link is redirected without fir expect($user->fresh()->hasVerifiedEmail())->toBeTrue(); Event::assertNotDispatched(Verified::class); -}); \ No newline at end of file +}); diff --git a/tests/Feature/Auth/PasswordConfirmationTest.php b/tests/Feature/Auth/PasswordConfirmationTest.php index de14aae..e7111e9 100644 --- a/tests/Feature/Auth/PasswordConfirmationTest.php +++ b/tests/Feature/Auth/PasswordConfirmationTest.php @@ -8,4 +8,4 @@ test('confirm password screen can be rendered', function () { $response = $this->actingAs($user)->get(route('password.confirm')); $response->assertStatus(200); -}); \ No newline at end of file +}); diff --git a/tests/Feature/Auth/PasswordResetTest.php b/tests/Feature/Auth/PasswordResetTest.php index 6946901..b1f1d3a 100644 --- a/tests/Feature/Auth/PasswordResetTest.php +++ b/tests/Feature/Auth/PasswordResetTest.php @@ -63,4 +63,4 @@ test('password can be reset with valid token', function () { return true; }); -}); \ No newline at end of file +}); diff --git a/tests/Feature/Auth/RegistrationTest.php b/tests/Feature/Auth/RegistrationTest.php index de3e3ad..98050b3 100644 --- a/tests/Feature/Auth/RegistrationTest.php +++ b/tests/Feature/Auth/RegistrationTest.php @@ -21,4 +21,4 @@ test('new users can register', function () { ->assertRedirect(route('dashboard', absolute: false)); $this->assertAuthenticated(); -}); \ No newline at end of file +}); diff --git a/tests/Feature/Auth/TwoFactorChallengeTest.php b/tests/Feature/Auth/TwoFactorChallengeTest.php index e09d646..64d6572 100644 --- a/tests/Feature/Auth/TwoFactorChallengeTest.php +++ b/tests/Feature/Auth/TwoFactorChallengeTest.php @@ -38,4 +38,4 @@ test('two factor challenge can be rendered', function () { ->call('login') ->assertRedirect(route('two-factor.login')) ->assertOk(); -}); \ No newline at end of file +}); diff --git a/tests/Feature/DashboardTest.php b/tests/Feature/DashboardTest.php index 7290183..b9974a1 100644 --- a/tests/Feature/DashboardTest.php +++ b/tests/Feature/DashboardTest.php @@ -13,4 +13,4 @@ test('authenticated users can visit the dashboard', function () { $response = $this->get(route('dashboard')); $response->assertStatus(200); -}); \ No newline at end of file +}); diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php index 287e54f..0563a41 100644 --- a/tests/Feature/ExampleTest.php +++ b/tests/Feature/ExampleTest.php @@ -4,4 +4,4 @@ test('returns a successful response', function () { $response = $this->get(route('home')); $response->assertStatus(200); -}); \ No newline at end of file +}); diff --git a/tests/Feature/Settings/PasswordUpdateTest.php b/tests/Feature/Settings/PasswordUpdateTest.php index 2af6939..d38f32b 100644 --- a/tests/Feature/Settings/PasswordUpdateTest.php +++ b/tests/Feature/Settings/PasswordUpdateTest.php @@ -36,4 +36,4 @@ test('correct password must be provided to update password', function () { ->call('updatePassword'); $response->assertHasErrors(['current_password']); -}); \ No newline at end of file +}); diff --git a/tests/Feature/Settings/ProfileUpdateTest.php b/tests/Feature/Settings/ProfileUpdateTest.php index 01e6d75..1386744 100644 --- a/tests/Feature/Settings/ProfileUpdateTest.php +++ b/tests/Feature/Settings/ProfileUpdateTest.php @@ -72,4 +72,4 @@ test('correct password must be provided to delete account', function () { $response->assertHasErrors(['password']); expect($user->fresh())->not->toBeNull(); -}); \ No newline at end of file +}); diff --git a/tests/Feature/Settings/TwoFactorAuthenticationTest.php b/tests/Feature/Settings/TwoFactorAuthenticationTest.php index c913976..33a8b16 100644 --- a/tests/Feature/Settings/TwoFactorAuthenticationTest.php +++ b/tests/Feature/Settings/TwoFactorAuthenticationTest.php @@ -67,4 +67,4 @@ test('two factor authentication disabled when confirmation abandoned between req 'two_factor_secret' => null, 'two_factor_recovery_codes' => null, ]); -}); \ No newline at end of file +}); diff --git a/tests/Unit/ExampleTest.php b/tests/Unit/ExampleTest.php index 27f3f87..44a4f33 100644 --- a/tests/Unit/ExampleTest.php +++ b/tests/Unit/ExampleTest.php @@ -2,4 +2,4 @@ test('that true is true', function () { expect(true)->toBeTrue(); -}); \ No newline at end of file +});