Fix Pint formatting

This commit is contained in:
root
2026-06-09 01:25:14 -04:00
parent 6be4875c5e
commit 20a0b6c4e5
1485 changed files with 11318 additions and 10273 deletions
+4 -4
View File
@@ -10,8 +10,7 @@ class SlipPrinterService
private SlipPrinterConfigService $configService,
private SlipPrinterFormatterService $formatter,
private SlipPrinterPdfService $pdfService
) {
}
) {}
public function print(array $input, ?int $userId): array
{
@@ -45,7 +44,7 @@ class SlipPrinterService
return [
'ok' => true,
'text' => $header . $body . $footer,
'text' => $header.$body.$footer,
'width' => $width,
];
}
@@ -97,7 +96,7 @@ class SlipPrinterService
public function reprint(int $id, ?int $userId): array
{
$row = LateSlipLog::query()->find($id);
if (!$row) {
if (! $row) {
return ['ok' => false, 'message' => 'Slip not found.'];
}
@@ -173,6 +172,7 @@ class SlipPrinterService
{
$cfg = $this->configService->printerConfig();
$width = (int) ($cfg['chars_per_line'] ?? 48);
return $width > 0 ? $width : 48;
}