Aplicar Pint e formatação de frontend; delimitar o âmbito do lint
Só formatação automática (pint, vp check --fix), sem alterar comportamento. Excluídos da formatação os registos e artefactos com bytes fixos: docs/, integrations/, storage/, tmp/, output/, resources/data/, tests/Fixtures/, compras-release.json e AGENTS*.md. Scripts operacionais, integrations e auxiliares de teste ficam fora do lint (usam new Function; limpeza na fase 2). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -288,7 +288,7 @@ final class SgfInvoiceDispatches
|
||||
$state = $this->state($row);
|
||||
$out = $this->summary($row);
|
||||
|
||||
return array_replace($out,['connection_id' => $row->connection_id, 'mapping_id' => $row->mapping_id, 'document' => json_decode($row->document,true), 'reason' => $row->reason,
|
||||
return array_replace($out, ['connection_id' => $row->connection_id, 'mapping_id' => $row->mapping_id, 'document' => json_decode($row->document, true), 'reason' => $row->reason,
|
||||
'impact' => $state['impact'] ?? null, 'approval_hash' => $row->phase === 'previewed' ? ($state['approval_hash'] ?? null) : null,
|
||||
'lease_until' => $row->lease_until]);
|
||||
}
|
||||
@@ -299,14 +299,14 @@ final class SgfInvoiceDispatches
|
||||
if (! is_array($x)) {
|
||||
return $x;
|
||||
}if (! array_is_list($x)) {
|
||||
ksort($x,SORT_STRING);
|
||||
ksort($x, SORT_STRING);
|
||||
}foreach ($x as &$item) {
|
||||
$item = $normalise($item);
|
||||
}
|
||||
|
||||
return $x;
|
||||
return $x;
|
||||
};
|
||||
|
||||
return hash('sha256',json_encode($normalise($v),JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES));
|
||||
return hash('sha256', json_encode($normalise($v), JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user