Passed
Push — master ( 9696df...81727e )
by Joe Nilson
01:36
created
Lib/Tickets/RepDominicana.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -73,61 +73,61 @@  discard block
 block discarded – undo
73 73
 
74 74
         // imprimimos el nombre corto de la empresa
75 75
         if ($printer->print_comp_shortname) {
76
-            static::$escpos->text(static::sanitize($company->nombrecorto) . "\n");
76
+            static::$escpos->text(static::sanitize($company->nombrecorto)."\n");
77 77
             static::$escpos->setTextSize($printer->head_font_size, $printer->head_font_size);
78 78
 
79 79
             // imprimimos el nombre de la empresa
80
-            static::$escpos->text(static::sanitize($company->nombre) . "\n");
80
+            static::$escpos->text(static::sanitize($company->nombre)."\n");
81 81
         } else {
82 82
             // imprimimos el nombre de la empresa
83
-            static::$escpos->text(static::sanitize($company->nombre) . "\n");
83
+            static::$escpos->text(static::sanitize($company->nombre)."\n");
84 84
             static::$escpos->setTextSize($printer->head_font_size, $printer->head_font_size);
85 85
         }
86 86
 
87 87
         static::$escpos->setJustification();
88 88
 
89 89
         // imprimimos la dirección de la empresa
90
-        static::$escpos->text(static::sanitize($company->direccion) . "\n");
91
-        static::$escpos->text(static::sanitize("CP: " . $company->codpostal . ', ' . $company->ciudad) . "\n");
92
-        static::$escpos->text(static::sanitize($company->tipoidfiscal . ': ' . $company->cifnif) . "\n\n");
90
+        static::$escpos->text(static::sanitize($company->direccion)."\n");
91
+        static::$escpos->text(static::sanitize("CP: ".$company->codpostal.', '.$company->ciudad)."\n");
92
+        static::$escpos->text(static::sanitize($company->tipoidfiscal.': '.$company->cifnif)."\n\n");
93 93
 
94 94
         if ($printer->print_comp_tlf) {
95 95
             if (false === empty($company->telefono1) && false === empty($company->telefono2)) {
96
-                static::$escpos->text(static::sanitize($company->telefono1 . ' / ' . $company->telefono2) . "\n");
96
+                static::$escpos->text(static::sanitize($company->telefono1.' / '.$company->telefono2)."\n");
97 97
             } elseif (false === empty($company->telefono1)) {
98
-                static::$escpos->text(static::sanitize($company->telefono1) . "\n");
98
+                static::$escpos->text(static::sanitize($company->telefono1)."\n");
99 99
             } elseif (false === empty($company->telefono2)) {
100
-                static::$escpos->text(static::sanitize($company->telefono2) . "\n");
100
+                static::$escpos->text(static::sanitize($company->telefono2)."\n");
101 101
             }
102 102
         }
103 103
 
104 104
         // imprimimos el título del documento
105
-        static::$escpos->text(static::sanitize($title) . "\n");
105
+        static::$escpos->text(static::sanitize($title)."\n");
106 106
 
107 107
         static::setHeaderTPV($model, $printer);
108 108
 
109 109
         // si es un documento de venta
110 110
         // imprimimos la fecha y el cliente
111 111
         if (in_array($model->modelClassName(), ['PresupuestoCliente', 'PedidoCliente', 'AlbaranCliente', 'FacturaCliente'])) {
112
-            static::$escpos->text(static::sanitize(static::$i18n->trans('date') . ': ' . $model->fecha . ' ' . $model->hora) . "\n");
113
-            static::$escpos->text(static::sanitize(static::$i18n->trans('customer') . ': ' . $model->nombrecliente) . "\n");
114
-            if(strlen($model->cifnif) == 9) {
115
-                static::$escpos->text(static::sanitize(static::$i18n->trans('title-cifnif-rnc') . ': ' . $model->cifnif) . "\n\n");
112
+            static::$escpos->text(static::sanitize(static::$i18n->trans('date').': '.$model->fecha.' '.$model->hora)."\n");
113
+            static::$escpos->text(static::sanitize(static::$i18n->trans('customer').': '.$model->nombrecliente)."\n");
114
+            if (strlen($model->cifnif) == 9) {
115
+                static::$escpos->text(static::sanitize(static::$i18n->trans('title-cifnif-rnc').': '.$model->cifnif)."\n\n");
116 116
             } else {
117
-                static::$escpos->text(static::sanitize(static::$i18n->trans('title-cifnif-ci') . ': ' . $model->cifnif) . "\n\n");
117
+                static::$escpos->text(static::sanitize(static::$i18n->trans('title-cifnif-ci').': '.$model->cifnif)."\n\n");
118 118
             }
119 119
 
120 120
             if ($model->modelClassName() === 'FacturaCliente') {
121 121
                 if ($model->tipocomprobante !== null && $model->tipocomprobante !== '') {
122
-                    static::$escpos->text(static::sanitize(static::$i18n->trans('tipo_comprobante') . ': ' .$model->descripcionTipoComprobante()). "\n");
122
+                    static::$escpos->text(static::sanitize(static::$i18n->trans('tipo_comprobante').': '.$model->descripcionTipoComprobante())."\n");
123 123
                 }
124 124
 
125 125
                 if ($model->numeroncf !== null && $model->numeroncf !== '') {
126
-                    static::$escpos->text(static::sanitize(static::$i18n->trans('ncf-number') . ': ' . $model->numeroncf). "\n");
126
+                    static::$escpos->text(static::sanitize(static::$i18n->trans('ncf-number').': '.$model->numeroncf)."\n");
127 127
                 }
128 128
 
129
-                if ($model->ncffechavencimiento!== null && $model->ncffechavencimiento!== '') {
130
-                    static::$escpos->text(static::sanitize(static::$i18n->trans('due-date') . ': ' . $model->ncffechavencimiento). "\n\n");
129
+                if ($model->ncffechavencimiento !== null && $model->ncffechavencimiento !== '') {
130
+                    static::$escpos->text(static::sanitize(static::$i18n->trans('due-date').': '.$model->ncffechavencimiento)."\n\n");
131 131
                 } else {
132 132
                     static::$escpos->text("\n\n");
133 133
                 }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         // añadimos la cabecera
138 138
         if ($printer->head) {
139 139
             static::$escpos->setJustification(Printer::JUSTIFY_CENTER);
140
-            static::$escpos->text(static::sanitize($printer->head) . "\n\n");
140
+            static::$escpos->text(static::sanitize($printer->head)."\n\n");
141 141
             static::$escpos->setJustification();
142 142
         }
143 143
 
Please login to merge, or discard this patch.