Aplicar Pint aos 18 ficheiros que falhavam lint:check

Só formatação. 16 já falhavam em fase5-producao; 2 vêm de c9bd6db.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 17:40:37 +02:00
co-authored by Claude Opus 5.5
parent 95f80a10d7
commit f590a29e55
18 changed files with 50 additions and 47 deletions
@@ -385,13 +385,13 @@ final class SgfInvoiceDispatchesTest extends TestCase
file_put_contents($this->privateRoot.'/screen-preview.html', $html);
$this->post('/facturas/envio-sgf/1/operar', ['version' => 3, 'action' => 'confirm', 'reason' => 'Confirmar apenas este impacto mostrado.', 'approval_hash' => $match[1]])->assertRedirect('/facturas/envio-sgf/1');
$done = $this->get('/facturas/envio-sgf/1')->assertOk()->assertSee('Recibo conservado')->assertDontSee('Confirmar individualmente')->assertSee('http://127.0.0.1:8085/compras?', false)->getContent();
file_put_contents($this->privateRoot.'/screen-receipt.html',$done);
self::assertCount(1,$this->remote);
file_put_contents($this->privateRoot.'/screen-receipt.html', $done);
self::assertCount(1, $this->remote);
}
public function test_missing_schema_is_refused_without_activating_or_migrating(): void
{
$migration = require dirname(__DIR__,2).'/database/migrations/2026_11_10_000001_create_sgf_invoice_dispatches.php';
$migration = require dirname(__DIR__, 2).'/database/migrations/2026_11_10_000001_create_sgf_invoice_dispatches.php';
$migration->down();
$this->get('/facturas/envio-sgf')->assertStatus(503);
Http::assertNothingSent();
@@ -402,8 +402,8 @@ final class SgfInvoiceDispatchesTest extends TestCase
{
$row = $this->prepared();
$event = DB::table('sgf_invoice_dispatch_events')->orderByDesc('id')->first();
$state = json_decode($event->after_state,true);
self::assertSame(1,$state['preview_actor_id']);
self::assertSame($row->source_context_hash,$state['source_context_hash']);
$state = json_decode($event->after_state, true);
self::assertSame(1, $state['preview_actor_id']);
self::assertSame($row->source_context_hash, $state['source_context_hash']);
}
}