Passed
Push — master ( a9e845...d9ef56 )
by Luiz Kim
02:33
created
src/Service/PrintService.php 1 patch
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,8 +27,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.