Passed
Push — master ( 75dc22...ad651f )
by Luiz Kim
09:59 queued 07:29
created
src/Service/PrintService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     public function addLine($prefix = '', $suffix = '', $delimiter = ' ')
25 25
     {
26 26
         $initialSpace = str_repeat(" ", $this->initialSpace);
27
-        $count =   $this->totalChars - $this->initialSpace - strlen($prefix) - strlen($suffix);
27
+        $count = $this->totalChars - $this->initialSpace - strlen($prefix) - strlen($suffix);
28 28
         if ($count > 0)
29 29
             $delimiter = str_repeat($delimiter, $count);
30 30
         $this->text .= $initialSpace . $prefix . $delimiter . $suffix . "\n";
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     public function generatePrintData(Device $device): Spool
34 34
     {
35
-        $content =  [
35
+        $content = [
36 36
             "operation" => "PRINT_TEXT",
37 37
             "styles" => [[]],
38 38
             "value" => [$this->text]
Please login to merge, or discard this patch.
src/Entity/File.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -70,31 +70,31 @@
 block discarded – undo
70 70
 #[Entity(repositoryClass: FileRepository::class)]
71 71
 class File
72 72
 {
73
-    #[Groups(['file:read', 'spool:read',  'category:read', 'product_category:read', 'order_product:read', 'product_file:read', 'product:read', 'spool_item:read', 'file_item:read', 'contract:read', 'model:read', 'people:read'])]
73
+    #[Groups(['file:read', 'spool:read', 'category:read', 'product_category:read', 'order_product:read', 'product_file:read', 'product:read', 'spool_item:read', 'file_item:read', 'contract:read', 'model:read', 'people:read'])]
74 74
     #[Column(type: 'integer', nullable: false)]
75 75
     #[Id]
76 76
     #[GeneratedValue(strategy: 'IDENTITY')]
77 77
     private int $id;
78 78
 
79
-    #[Groups(['file:read', 'spool:read',  'category:read', 'product_category:read', 'order_product:read', 'product_file:read', 'product:read', 'spool_item:read', 'file_item:read', 'file:write', 'contract:read', 'model:read', 'people:read'])]
79
+    #[Groups(['file:read', 'spool:read', 'category:read', 'product_category:read', 'order_product:read', 'product_file:read', 'product:read', 'spool_item:read', 'file_item:read', 'file:write', 'contract:read', 'model:read', 'people:read'])]
80 80
     #[NotBlank]
81 81
     #[ApiFilter(filterClass: SearchFilter::class, properties: ['fileType' => 'exact'])]
82 82
     #[Column(type: 'string', length: 255, nullable: false)]
83 83
     private string $fileType;
84 84
 
85
-    #[Groups(['file:read', 'spool:read',  'category:read', 'product_category:read', 'order_product:read', 'product_file:read', 'product:read', 'spool_item:read', 'file_item:read', 'file:write', 'contract:read', 'model:read', 'people:read'])]
85
+    #[Groups(['file:read', 'spool:read', 'category:read', 'product_category:read', 'order_product:read', 'product_file:read', 'product:read', 'spool_item:read', 'file_item:read', 'file:write', 'contract:read', 'model:read', 'people:read'])]
86 86
     #[NotBlank]
87 87
     #[ApiFilter(filterClass: SearchFilter::class, properties: ['fileName' => 'exact'])]
88 88
     #[Column(type: 'string', length: 255, nullable: false)]
89 89
     private string $fileName;
90 90
 
91
-    #[Groups(['file:read', 'spool:read',  'category:read', 'product_category:read', 'order_product:read', 'product_file:read', 'product:read', 'spool_item:read', 'file_item:read', 'file:write', 'contract:read', 'model:read', 'people:read'])]
91
+    #[Groups(['file:read', 'spool:read', 'category:read', 'product_category:read', 'order_product:read', 'product_file:read', 'product:read', 'spool_item:read', 'file_item:read', 'file:write', 'contract:read', 'model:read', 'people:read'])]
92 92
     #[NotBlank]
93 93
     #[ApiFilter(filterClass: SearchFilter::class, properties: ['context' => 'exact'])]
94 94
     #[Column(type: 'string', length: 255, nullable: false)]
95 95
     private string $context;
96 96
 
97
-    #[Groups(['file:read', 'spool:read',  'category:read', 'product_category:read', 'order_product:read', 'product_file:read', 'product:read', 'spool_item:read', 'file_item:read', 'file:write', 'contract:read', 'model:read', 'people:read'])]
97
+    #[Groups(['file:read', 'spool:read', 'category:read', 'product_category:read', 'order_product:read', 'product_file:read', 'product:read', 'spool_item:read', 'file_item:read', 'file:write', 'contract:read', 'model:read', 'people:read'])]
98 98
     #[NotBlank]
99 99
     #[ApiFilter(filterClass: SearchFilter::class, properties: ['extension' => 'exact'])]
100 100
     #[Column(type: 'string', length: 255, nullable: false)]
Please login to merge, or discard this patch.
src/Entity/Spool.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     #[ORM\Column(name: 'id', type: 'integer', nullable: false)]
40 40
     #[ORM\Id]
41 41
     #[ORM\GeneratedValue(strategy: 'IDENTITY')]
42
-    #[Groups(['spool_item:read', 'spool:read',])]
42
+    #[Groups(['spool_item:read', 'spool:read', ])]
43 43
     private $id;
44 44
 
45 45
 
Please login to merge, or discard this patch.