pint/lint
This commit is contained in:
@@ -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';
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -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),
|
||||
],
|
||||
|
||||
|
||||
@@ -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(),
|
||||
|
||||
+5
-5
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Laravel\Fortify\Features;
|
||||
use Livewire\Volt\Volt;
|
||||
|
||||
@@ -14,19 +14,19 @@ Route::get('/test-zweite-db', function () {
|
||||
try {
|
||||
// Eine einfache Abfrage auf der zweiten Verbindung
|
||||
$result = DB::connection('pgsql_second')->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';
|
||||
|
||||
@@ -74,4 +74,4 @@ test('users can logout', function () {
|
||||
$response->assertRedirect(route('home'));
|
||||
|
||||
$this->assertGuest();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -64,4 +64,4 @@ test('already verified user visiting verification link is redirected without fir
|
||||
|
||||
expect($user->fresh()->hasVerifiedEmail())->toBeTrue();
|
||||
Event::assertNotDispatched(Verified::class);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -8,4 +8,4 @@ test('confirm password screen can be rendered', function () {
|
||||
$response = $this->actingAs($user)->get(route('password.confirm'));
|
||||
|
||||
$response->assertStatus(200);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -63,4 +63,4 @@ test('password can be reset with valid token', function () {
|
||||
|
||||
return true;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -21,4 +21,4 @@ test('new users can register', function () {
|
||||
->assertRedirect(route('dashboard', absolute: false));
|
||||
|
||||
$this->assertAuthenticated();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -38,4 +38,4 @@ test('two factor challenge can be rendered', function () {
|
||||
->call('login')
|
||||
->assertRedirect(route('two-factor.login'))
|
||||
->assertOk();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -13,4 +13,4 @@ test('authenticated users can visit the dashboard', function () {
|
||||
|
||||
$response = $this->get(route('dashboard'));
|
||||
$response->assertStatus(200);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -4,4 +4,4 @@ test('returns a successful response', function () {
|
||||
$response = $this->get(route('home'));
|
||||
|
||||
$response->assertStatus(200);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -36,4 +36,4 @@ test('correct password must be provided to update password', function () {
|
||||
->call('updatePassword');
|
||||
|
||||
$response->assertHasErrors(['current_password']);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -72,4 +72,4 @@ test('correct password must be provided to delete account', function () {
|
||||
$response->assertHasErrors(['password']);
|
||||
|
||||
expect($user->fresh())->not->toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -67,4 +67,4 @@ test('two factor authentication disabled when confirmation abandoned between req
|
||||
'two_factor_secret' => null,
|
||||
'two_factor_recovery_codes' => null,
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
test('that true is true', function () {
|
||||
expect(true)->toBeTrue();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user