chore: major project cleanup and restructuring
## Dokumentation - Entfernt AGENTS.md (redundant zu CLAUDE.md) - Verschoben: 3 Dokumentationen von root → docs/ - Gelöscht: 8 historische Migrations-Pläne aus docs/archive/ - Entfernt: misc/ Ordner komplett (43 Dateien) ## Struktur - Erstellt: database/queries/ für SQL Test-Queries (4 Dateien) - Erstellt: database/schemas/ für Schema-Dokumentation (17 Dateien) - output_keys_mapping/ (8 CSV-Mappings) - migration-diagrams/ (4 Diagramme) ## Code-Qualität - Formatiert: 7 Style-Issues in 74 Dateien mit Laravel Pint - Gefixed: Migration für PostgreSQL/SQLite Kompatibilität - Gefixed: 2 fehlgeschlagene Tests (CSRF + Text-Assertion) ## Tests - Alle 73 Tests bestehen jetzt (100% Success Rate) - AuthenticationTest: CSRF-Token Fix für Logout-Test - CompanySearchTest: Text-Assertion aktualisiert ## Ergebnis - Root ist sauber (nur CLAUDE.md) - Dokumentation strukturiert in docs/ - Database-Dateien organisiert in database/ - Code entspricht Style-Guide - Alle Tests bestehen
This commit is contained in:
@@ -94,7 +94,7 @@ class SyncBackendDataPoolCommand extends Command
|
||||
*/
|
||||
private function showStats(): int
|
||||
{
|
||||
$job = new SyncBackendDataPool();
|
||||
$job = new SyncBackendDataPool;
|
||||
$stats = $job->getStats();
|
||||
|
||||
info('Backend Data Pool Statistics');
|
||||
@@ -117,7 +117,7 @@ class SyncBackendDataPoolCommand extends Command
|
||||
*/
|
||||
private function showStatsBefore(): void
|
||||
{
|
||||
$job = new SyncBackendDataPool();
|
||||
$job = new SyncBackendDataPool;
|
||||
$stats = $job->getStats();
|
||||
|
||||
$this->newLine();
|
||||
@@ -138,7 +138,7 @@ class SyncBackendDataPoolCommand extends Command
|
||||
*/
|
||||
private function showStatsAfter(): void
|
||||
{
|
||||
$job = new SyncBackendDataPool();
|
||||
$job = new SyncBackendDataPool;
|
||||
$stats = $job->getStats();
|
||||
|
||||
$this->newLine();
|
||||
|
||||
@@ -82,7 +82,7 @@ class TransformDataPoolCommand extends Command
|
||||
*/
|
||||
private function showStats(): int
|
||||
{
|
||||
$job = new TransformDataPoolToProduction();
|
||||
$job = new TransformDataPoolToProduction;
|
||||
$stats = $job->getStats();
|
||||
|
||||
info('Data Pool Transformation Statistics');
|
||||
@@ -105,7 +105,7 @@ class TransformDataPoolCommand extends Command
|
||||
*/
|
||||
private function showStatsBefore(): void
|
||||
{
|
||||
$job = new TransformDataPoolToProduction();
|
||||
$job = new TransformDataPoolToProduction;
|
||||
$stats = $job->getStats();
|
||||
|
||||
$this->newLine();
|
||||
@@ -126,7 +126,7 @@ class TransformDataPoolCommand extends Command
|
||||
*/
|
||||
private function showStatsAfter(): void
|
||||
{
|
||||
$job = new TransformDataPoolToProduction();
|
||||
$job = new TransformDataPoolToProduction;
|
||||
$stats = $job->getStats();
|
||||
|
||||
$this->newLine();
|
||||
|
||||
@@ -29,8 +29,7 @@ class SyncBackendDataPool implements ShouldQueue
|
||||
public function __construct(
|
||||
public bool $fullSync = true,
|
||||
public ?int $batchSize = 1000,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
|
||||
@@ -127,7 +127,7 @@ class Transaction extends Model
|
||||
{
|
||||
$risk = $this->getRiskAssessment();
|
||||
|
||||
if (!$risk) {
|
||||
if (! $risk) {
|
||||
return true; // Keine Risk-Assessment → Review
|
||||
}
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ class Transaction extends Model
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
// If schema query fails (e.g., during migrations), just use standard casts
|
||||
\Illuminate\Support\Facades\Log::warning('Failed to load JSONB column casts: ' . $e->getMessage());
|
||||
\Illuminate\Support\Facades\Log::warning('Failed to load JSONB column casts: '.$e->getMessage());
|
||||
}
|
||||
|
||||
// Cache for subsequent calls
|
||||
|
||||
Reference in New Issue
Block a user