Fix Laravel Pint formatting

This commit is contained in:
root
2026-06-08 23:30:22 -04:00
parent 567dc24649
commit c792b8be05
1288 changed files with 10766 additions and 9669 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;
}