@@ -27,8 +27,9 @@ discard block |
||
27 | 27 | { |
28 | 28 | $initialSpace = str_repeat(" ", $this->initialSpace); |
29 | 29 | $count = $this->totalChars - $this->initialSpace - strlen($prefix) - strlen($suffix); |
30 | - if ($count > 0) |
|
31 | - $delimiter = str_repeat($delimiter, $count); |
|
30 | + if ($count > 0) { |
|
31 | + $delimiter = str_repeat($delimiter, $count); |
|
32 | + } |
|
32 | 33 | $this->text .= $initialSpace . $prefix . $delimiter . $suffix . "\n"; |
33 | 34 | } |
34 | 35 | |
@@ -45,8 +46,9 @@ discard block |
||
45 | 46 | { |
46 | 47 | $printer = null; |
47 | 48 | $device_config = $this->deviceService->discoveryDeviceConfig($device, $provider); |
48 | - if (isset($device_config['printer'])) |
|
49 | - $printer = $this->deviceService->discoveryDevice($device_config['printer']); |
|
49 | + if (isset($device_config['printer'])) { |
|
50 | + $printer = $this->deviceService->discoveryDevice($device_config['printer']); |
|
51 | + } |
|
50 | 52 | |
51 | 53 | error_log($printer->getDevice()); |
52 | 54 | |
@@ -58,8 +60,9 @@ discard block |
||
58 | 60 | |
59 | 61 | $printData = $this->addToSpool($printer ?? $device, json_encode($content)); |
60 | 62 | |
61 | - if ($printer != $device) |
|
62 | - $x = ''; |
|
63 | + if ($printer != $device) { |
|
64 | + $x = ''; |
|
65 | + } |
|
63 | 66 | |
64 | 67 | return $printData; |
65 | 68 | } |