Passed
Push — master ( 3a17ef...a7ff16 )
by Joe Nilson
03:12
created
Model/NCFTipo.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -158,17 +158,17 @@  discard block
 block discarded – undo
158 158
         parent::install();
159 159
         $sql = "INSERT INTO rd_ncftipo (".
160 160
             "tipocomprobante, descripcion, estado, clasemovimiento, ventas, compras, contribuyente".
161
-            " ) VALUES " .
162
-            "('01','FACTURA DE CREDITO FISCAL',true, 'suma','Y','Y','Y')," .
163
-            "('02','FACTURA DE CONSUMO',true, 'suma','Y','Y','Y')," .
164
-            "('03','NOTA DE DEBITO',true, 'suma','Y','Y','N')," .
165
-            "('04','NOTA DE CREDITO',true, 'resta','Y','Y','N')," .
166
-            "('11','COMPROBANTE DE COMPRAS',true, 'suma','N','Y','Y')," .
167
-            "('12','REGISTRO UNICO DE INGRESOS',true, 'suma','Y','N','N')," .
168
-            "('13','COMPROBANTE PARA GASTOS MENORES',true, 'suma','N','Y','N')," .
169
-            "('14','COMPROBANTE DE REGIMENES ESPECIALES',true, 'suma','Y','Y','Y')," .
170
-            "('15','COMPROBANTE GUBERNAMENTAL',true, 'suma','Y','Y','Y')," .
171
-            "('16','COMPROBANTE PARA EXPORTACIONES',true, 'suma','Y','N','Y')," .
161
+            " ) VALUES ".
162
+            "('01','FACTURA DE CREDITO FISCAL',true, 'suma','Y','Y','Y'),".
163
+            "('02','FACTURA DE CONSUMO',true, 'suma','Y','Y','Y'),".
164
+            "('03','NOTA DE DEBITO',true, 'suma','Y','Y','N'),".
165
+            "('04','NOTA DE CREDITO',true, 'resta','Y','Y','N'),".
166
+            "('11','COMPROBANTE DE COMPRAS',true, 'suma','N','Y','Y'),".
167
+            "('12','REGISTRO UNICO DE INGRESOS',true, 'suma','Y','N','N'),".
168
+            "('13','COMPROBANTE PARA GASTOS MENORES',true, 'suma','N','Y','N'),".
169
+            "('14','COMPROBANTE DE REGIMENES ESPECIALES',true, 'suma','Y','Y','Y'),".
170
+            "('15','COMPROBANTE GUBERNAMENTAL',true, 'suma','Y','Y','Y'),".
171
+            "('16','COMPROBANTE PARA EXPORTACIONES',true, 'suma','Y','N','Y'),".
172 172
             "('17','COMPROBANTE PARA PAGOS AL EXTERIOR',true, 'suma','N', 'Y','Y');";
173 173
         return($sql);
174 174
     }
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     public function restoreData()
177 177
     {
178 178
         $dataBase = new DataBase();
179
-        $sqlClean = "DELETE FROM " . $this->tableName() . ";";
179
+        $sqlClean = "DELETE FROM ".$this->tableName().";";
180 180
         $dataBase->exec($sqlClean);
181 181
         foreach ($this->arrayComprobantes as $arrayItem) {
182 182
             $initialData = new NCFTipo($arrayItem);
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 
188 188
     public function allFor($type = "ventas", $movimiento = "suma")
189 189
     {
190
-        $where = [new DataBaseWhere($type, 'Y'),new DataBaseWhere('clasemovimiento', $movimiento)];
190
+        $where = [new DataBaseWhere($type, 'Y'), new DataBaseWhere('clasemovimiento', $movimiento)];
191 191
         return $this->all($where, ['tipocomprobante' => 'ASC'], 0, 50);
192 192
     }
193 193
 
Please login to merge, or discard this patch.
Model/Join/FiscalReport606.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -72,17 +72,17 @@  discard block
 block discarded – undo
72 72
     protected function getGroupFields(): string
73 73
     {
74 74
         //return parent::getGroupFields(); // TODO: Change the autogenerated stub
75
-        return  static::MAIN_TABLE.'.idfactura, ' .
76
-                static::MAIN_TABLE.'.idempresa, ' .
77
-                static::MAIN_TABLE.'.codalmacen, ' .
78
-                static::MAIN_TABLE.'.cifnif, ' .
79
-                static::MAIN_TABLE.'.ncftipomovimiento, ' .
80
-                static::MAIN_TABLE.'.numeroncf, ' .
81
-                static::SECONDARY_TABLE_ALIAS.'.numeroncf, ' .
82
-                static::MAIN_TABLE.'.fecha, ' .
83
-                static::ESTADOSDOC_TABLE.'.nombre, ' .
84
-                static::MAIN_TABLE.'.neto, ' .
85
-                static::MAIN_TABLE.'.totaliva' .
75
+        return  static::MAIN_TABLE.'.idfactura, '.
76
+                static::MAIN_TABLE.'.idempresa, '.
77
+                static::MAIN_TABLE.'.codalmacen, '.
78
+                static::MAIN_TABLE.'.cifnif, '.
79
+                static::MAIN_TABLE.'.ncftipomovimiento, '.
80
+                static::MAIN_TABLE.'.numeroncf, '.
81
+                static::SECONDARY_TABLE_ALIAS.'.numeroncf, '.
82
+                static::MAIN_TABLE.'.fecha, '.
83
+                static::ESTADOSDOC_TABLE.'.nombre, '.
84
+                static::MAIN_TABLE.'.neto, '.
85
+                static::MAIN_TABLE.'.totaliva'.
86 86
             ' ';
87 87
     }
88 88
 
@@ -93,14 +93,14 @@  discard block
 block discarded – undo
93 93
     protected function getSQLFrom(): string
94 94
     {
95 95
         return static::MAIN_TABLE
96
-            . ' LEFT JOIN '. static::SECONDARY_TABLE . ' ON ('
97
-            . static::MAIN_TABLE . '.idfacturarect = ' . static::SECONDARY_TABLE_ALIAS . '.idfactura)'
98
-            . ' LEFT JOIN '. static::LINES_TABLE . ' ON ('
99
-            . static::MAIN_TABLE . '.idfactura = ' . static::LINES_TABLE . '.idfactura)'
100
-            . ' LEFT JOIN '. static::PRODS_TABLE . ' ON ('
101
-            . static::LINES_TABLE . '.referencia = ' . static::PRODS_TABLE . '.referencia)'
102
-            . ' LEFT JOIN ' . static::ESTADOSDOC_TABLE . ' ON ('
103
-            . static::MAIN_TABLE . '.idestado = ' . static::ESTADOSDOC_TABLE . '.idestado)';
96
+            . ' LEFT JOIN '.static::SECONDARY_TABLE.' ON ('
97
+            . static::MAIN_TABLE.'.idfacturarect = '.static::SECONDARY_TABLE_ALIAS.'.idfactura)'
98
+            . ' LEFT JOIN '.static::LINES_TABLE.' ON ('
99
+            . static::MAIN_TABLE.'.idfactura = '.static::LINES_TABLE.'.idfactura)'
100
+            . ' LEFT JOIN '.static::PRODS_TABLE.' ON ('
101
+            . static::LINES_TABLE.'.referencia = '.static::PRODS_TABLE.'.referencia)'
102
+            . ' LEFT JOIN '.static::ESTADOSDOC_TABLE.' ON ('
103
+            . static::MAIN_TABLE.'.idestado = '.static::ESTADOSDOC_TABLE.'.idestado)';
104 104
     }
105 105
 
106 106
     /**
Please login to merge, or discard this patch.
Model/Join/FiscalReport608.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -39,14 +39,14 @@  discard block
 block discarded – undo
39 39
             'idempresa' => static::MAIN_TABLE.'.idempresa',
40 40
             'codalmacen' => static::MAIN_TABLE.'.codalmacen',
41 41
             'ncf' => static::MAIN_TABLE.'.numeroncf',
42
-            'tipoanulacion' => 'CASE WHEN ' .
43
-                                static::ESTADOSDOC_TABLE . '.nombre = \'Anulada\' AND ' .
44
-                                static::MAIN_TABLE.'.ncftipoanulacion is null ' .
45
-                                'THEN CONCAT(\'05\',\' - \',\'Corrección de la Información\') ELSE ' .
46
-                                'concat(' . static::MAIN_TABLE.'.ncftipoanulacion, \' - \', ' .
42
+            'tipoanulacion' => 'CASE WHEN '.
43
+                                static::ESTADOSDOC_TABLE.'.nombre = \'Anulada\' AND '.
44
+                                static::MAIN_TABLE.'.ncftipoanulacion is null '.
45
+                                'THEN CONCAT(\'05\',\' - \',\'Corrección de la Información\') ELSE '.
46
+                                'concat('.static::MAIN_TABLE.'.ncftipoanulacion, \' - \', '.
47 47
                                 static::NCFCANCELTYPE_TABLE.'.descripcion) END',
48 48
             'fecha' => $dateFormat.'('.static::MAIN_TABLE.'.fecha,\''.$dateFormatString.'\')',
49
-            'estado' => 'CASE WHEN ' . static::ESTADOSDOC_TABLE .
49
+            'estado' => 'CASE WHEN '.static::ESTADOSDOC_TABLE.
50 50
                         '.nombre = \'Emitida\' THEN \'Activo\' ELSE \'Anulado\' END',
51 51
         ];
52 52
         return $data;
@@ -59,10 +59,10 @@  discard block
 block discarded – undo
59 59
     protected function getSQLFrom(): string
60 60
     {
61 61
         return static::MAIN_TABLE
62
-            . ' JOIN ' . static::ESTADOSDOC_TABLE . ' ON ('
63
-            . static::MAIN_TABLE . '.idestado = ' . static::ESTADOSDOC_TABLE . '.idestado AND '.static::ESTADOSDOC_TABLE.'.nombre = \'Anulada\')'
64
-            . ' LEFT JOIN ' . static::NCFCANCELTYPE_TABLE . ' ON ('
65
-            . static::MAIN_TABLE . '.ncftipoanulacion = ' . static::NCFCANCELTYPE_TABLE . '.codigo)';
62
+            . ' JOIN '.static::ESTADOSDOC_TABLE.' ON ('
63
+            . static::MAIN_TABLE.'.idestado = '.static::ESTADOSDOC_TABLE.'.idestado AND '.static::ESTADOSDOC_TABLE.'.nombre = \'Anulada\')'
64
+            . ' LEFT JOIN '.static::NCFCANCELTYPE_TABLE.' ON ('
65
+            . static::MAIN_TABLE.'.ncftipoanulacion = '.static::NCFCANCELTYPE_TABLE.'.codigo)';
66 66
     }
67 67
 
68 68
     /**
Please login to merge, or discard this patch.
Mod/SalesFooterMod.php 1 patch
Spacing   +20 added lines, -24 removed lines patch added patch discarded remove patch
@@ -28,21 +28,21 @@  discard block
 block discarded – undo
28 28
 
29 29
 class SalesFooterMod implements SalesModInterface
30 30
 {
31
-    public function apply(SalesDocument &$model, array $formData, User $user)
31
+    public function apply(SalesDocument & $model, array $formData, User $user)
32 32
     {
33 33
         // TODO: Implement apply() method.
34 34
     }
35 35
 
36
-    public function applyBefore(SalesDocument &$model, array $formData, User $user)
36
+    public function applyBefore(SalesDocument & $model, array $formData, User $user)
37 37
     {
38 38
         // TODO: Implement applyBefore() method.
39 39
         if ($model->modelClassName() === 'FacturaCliente') {
40
-            $model->numeroncf = isset($formData['numeroncf']) ? (string)$formData['numeroncf'] : $model->numeroncf;
41
-            $model->tipocomprobante = isset($formData['tipocomprobante']) ? (string)$formData['tipocomprobante'] : $model->tipocomprobante;
42
-            $model->ncffechavencimiento = isset($formData['ncffechavencimiento']) ? (string)$formData['ncffechavencimiento'] : $model->ncffechavencimiento;
43
-            $model->ncftipopago = isset($formData['ncftipopago']) ? (string)$formData['ncftipopago'] : $model->ncftipopago;
44
-            $model->ncftipomovimiento = isset($formData['ncftipomovimiento']) ? (string)$formData['ncftipomovimiento'] : $model->ncftipomovimiento;
45
-            $model->ncftipoanulacion = isset($formData['ncftipoanulacion']) ? (string)$formData['ncftipoanulacion'] : $model->ncftipoanulacion;
40
+            $model->numeroncf = isset($formData['numeroncf']) ? (string) $formData['numeroncf'] : $model->numeroncf;
41
+            $model->tipocomprobante = isset($formData['tipocomprobante']) ? (string) $formData['tipocomprobante'] : $model->tipocomprobante;
42
+            $model->ncffechavencimiento = isset($formData['ncffechavencimiento']) ? (string) $formData['ncffechavencimiento'] : $model->ncffechavencimiento;
43
+            $model->ncftipopago = isset($formData['ncftipopago']) ? (string) $formData['ncftipopago'] : $model->ncftipopago;
44
+            $model->ncftipomovimiento = isset($formData['ncftipomovimiento']) ? (string) $formData['ncftipomovimiento'] : $model->ncftipomovimiento;
45
+            $model->ncftipoanulacion = isset($formData['ncftipoanulacion']) ? (string) $formData['ncftipoanulacion'] : $model->ncftipoanulacion;
46 46
         }
47 47
     }
48 48
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         if (!$model->editable) {
106 106
             $invoiceTipoComprobante = $model->tipocomprobante;
107 107
         } elseif ($model->editable === true && ($cliente->tipocomprobante !== $model->tipocomprobante) && $model->tipocomprobante !== null) {
108
-            $invoiceTipoComprobante =  $model->tipocomprobante;
108
+            $invoiceTipoComprobante = $model->tipocomprobante;
109 109
         } elseif ($model->editable === true && ($cliente->tipocomprobante === $model->tipocomprobante) && $model->tipocomprobante !== null) {
110 110
             $invoiceTipoComprobante = $cliente->tipocomprobante;
111 111
         }
@@ -113,15 +113,14 @@  discard block
 block discarded – undo
113 113
         $options = ['<option value="">------</option>'];
114 114
         foreach ($tipoComprobante as $row) {
115 115
             $options[] = ($row->tipocomprobante === $invoiceTipoComprobante) ?
116
-                '<option value="' . $row->tipocomprobante . '" selected="">' . $row->descripcion . '</option>' :
117
-                '<option value="' . $row->tipocomprobante . '">' . $row->descripcion . '</option>';
116
+                '<option value="'.$row->tipocomprobante.'" selected="">'.$row->descripcion.'</option>' : '<option value="'.$row->tipocomprobante.'">'.$row->descripcion.'</option>';
118 117
         }
119 118
 
120 119
         $attributes = ($model->editable || $model->numeroncf === '') ? 'id="tipocomprobante" name="tipocomprobante" required="" onChange="verificarCorrelativoNCF(this.value,\'Ventas\')"' : 'disabled=""';
121 120
         return '<div class="col-sm-3">'
122 121
             . '<div class="form-group">'
123 122
             .  $i18n->trans('tipocomprobante')
124
-            . '<select ' . $attributes . ' class="form-control">' . implode('', $options) . '</select>'
123
+            . '<select '.$attributes.' class="form-control">'.implode('', $options).'</select>'
125 124
             . '</div>'
126 125
             . '</div>';
127 126
     }
@@ -145,15 +144,14 @@  discard block
 block discarded – undo
145 144
         $options = ['<option value="">------</option>'];
146 145
         foreach ($tipoPago as $row) {
147 146
             $options[] = ($row->codigo === $invoiceTipoPago) ?
148
-                '<option value="' . $row->codigo . '" selected="">' . $row->descripcion . '</option>' :
149
-                '<option value="' . $row->codigo . '">' . $row->descripcion . '</option>';
147
+                '<option value="'.$row->codigo.'" selected="">'.$row->descripcion.'</option>' : '<option value="'.$row->codigo.'">'.$row->descripcion.'</option>';
150 148
         }
151 149
 
152 150
         $attributes = $model->editable ? 'name="ncftipopago" required=""' : 'disabled=""';
153 151
         return '<div class="col-sm-2">'
154 152
             . '<div class="form-group">'
155 153
             .  $i18n->trans('ncf-payment-type')
156
-            . '<select ' . $attributes . ' class="form-control">' . implode('', $options) . '</select>'
154
+            . '<select '.$attributes.' class="form-control">'.implode('', $options).'</select>'
157 155
             . '</div>'
158 156
             . '</div>';
159 157
     }
@@ -173,15 +171,14 @@  discard block
 block discarded – undo
173 171
         $options = ['<option value="">------</option>'];
174 172
         foreach ($tipoMovimiento as $row) {
175 173
             $options[] = ($row->codigo === $invoiceTipoMovimiento) ?
176
-                '<option value="' . $row->codigo . '" selected="">' . $row->descripcion . '</option>' :
177
-                '<option value="' . $row->codigo . '">' . $row->descripcion . '</option>';
174
+                '<option value="'.$row->codigo.'" selected="">'.$row->descripcion.'</option>' : '<option value="'.$row->codigo.'">'.$row->descripcion.'</option>';
178 175
         }
179 176
 
180 177
         $attributes = $model->editable ? 'name="ncftipomovimiento" required=""' : 'disabled=""';
181 178
         return '<div class="col-sm-3">'
182 179
             . '<div class="form-group">'
183 180
             .  $i18n->trans('ncf-movement-type')
184
-            . '<select ' . $attributes . ' class="form-control">' . implode('', $options) . '</select>'
181
+            . '<select '.$attributes.' class="form-control">'.implode('', $options).'</select>'
185 182
             . '</div>'
186 183
             . '</div>';
187 184
     }
@@ -199,15 +196,14 @@  discard block
 block discarded – undo
199 196
         $options = ['<option value="">------</option>'];
200 197
         foreach ($tipoAnulacion as $row) {
201 198
             $options[] = ($row->codigo === $invoiceTipoAnulacion) ?
202
-                '<option value="' . $row->codigo . '" selected="">' . $row->descripcion . '</option>' :
203
-                '<option value="' . $row->codigo . '">' . $row->descripcion . '</option>';
199
+                '<option value="'.$row->codigo.'" selected="">'.$row->descripcion.'</option>' : '<option value="'.$row->codigo.'">'.$row->descripcion.'</option>';
204 200
         }
205 201
 
206 202
         $attributes = $model->editable ? 'name="ncftipoanulacion"' : 'disabled=""';
207 203
         return '<div class="col-sm-2">'
208 204
             . '<div class="form-group">'
209 205
             .  $i18n->trans('ncf-cancellation-type')
210
-            . '<select ' . $attributes . ' class="form-control">' . implode('', $options) . '</select>'
206
+            . '<select '.$attributes.' class="form-control">'.implode('', $options).'</select>'
211 207
             . '</div>'
212 208
             . '</div>';
213 209
     }
@@ -216,8 +212,8 @@  discard block
 block discarded – undo
216 212
     {
217 213
         $attributes = ($model->editable && $model->numero2 === '') ? 'name="ncffechavencimiento"' : 'name="ncffechavencimiento" disabled=""';
218 214
         return '<div class="col-sm-2">'
219
-            . '<div class="form-group">' . $i18n->trans('due-date')
220
-            . '<input type="date" ' . $attributes . ' value="' . date('Y-m-d', strtotime($model->ncffechavencimiento)) . '" class="form-control"/>'
215
+            . '<div class="form-group">'.$i18n->trans('due-date')
216
+            . '<input type="date" '.$attributes.' value="'.date('Y-m-d', strtotime($model->ncffechavencimiento)).'" class="form-control"/>'
221 217
             . '</div>'
222 218
             . '</div>';
223 219
     }
@@ -236,7 +232,7 @@  discard block
 block discarded – undo
236 232
             . '<div class="form-group">'
237 233
             . $i18n->trans('desc-numeroncf-sales')
238 234
             //. '<div class="input-group">'
239
-            . '<input type="text" ' . $attributes . ' value="' . $model->numeroncf . '" class="form-control"/>'
235
+            . '<input type="text" '.$attributes.' value="'.$model->numeroncf.'" class="form-control"/>'
240 236
 //            . '<div class="input-group-append">'
241 237
 //            . '<button class="btn ' . $btnColor .' btn-spin-action" id="btnVerifyNCF"'
242 238
 //            . 'onclick="purchasesNCFVerify()" '
Please login to merge, or discard this patch.
Lib/Export/DgiiExport.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,10 +82,10 @@
 block discarded – undo
82 82
     /**
83 83
      * @inheritDoc
84 84
      */
85
-    public function show(Response &$response)
85
+    public function show(Response & $response)
86 86
     {
87 87
         $response->headers->set('Content-Type', 'text/text; charset=utf-8');
88
-        $response->headers->set('Content-Disposition', 'attachment;filename=' . $this->getFileName() . '.txt');
88
+        $response->headers->set('Content-Disposition', 'attachment;filename='.$this->getFileName().'.txt');
89 89
         $response->setContent($this->getDoc());
90 90
     }
91 91
 }
92 92
\ No newline at end of file
Please login to merge, or discard this patch.
Lib/CommonFunctionsDominicanRepublic.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
     }
128 128
 
129 129
     public function exportTXT(string $report, string $fileName, string $rncCompany, string $yearReport,
130
-                              string $monthReport, array $whereReport)
130
+                                string $monthReport, array $whereReport)
131 131
     {
132 132
         if (file_exists($fileName)) {
133 133
             unlink($fileName);
Please login to merge, or discard this patch.
Model/Join/FiscalReport607.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,10 +74,10 @@
 block discarded – undo
74 74
     protected function getSQLFrom(): string
75 75
     {
76 76
         return static::MAIN_TABLE
77
-            . ' LEFT JOIN '. static::SECONDARY_TABLE . ' ON ('
78
-            . static::MAIN_TABLE . '.idfacturarect = ' . static::SECONDARY_TABLE_ALIAS . '.idfactura)'
79
-            . ' LEFT JOIN ' . static::ESTADOSDOC_TABLE . ' ON ('
80
-            . static::MAIN_TABLE . '.idestado = ' . static::ESTADOSDOC_TABLE . '.idestado AND '.static::ESTADOSDOC_TABLE.'.nombre != \'Anulada\')';
77
+            . ' LEFT JOIN '.static::SECONDARY_TABLE.' ON ('
78
+            . static::MAIN_TABLE.'.idfacturarect = '.static::SECONDARY_TABLE_ALIAS.'.idfactura)'
79
+            . ' LEFT JOIN '.static::ESTADOSDOC_TABLE.' ON ('
80
+            . static::MAIN_TABLE.'.idestado = '.static::ESTADOSDOC_TABLE.'.idestado AND '.static::ESTADOSDOC_TABLE.'.nombre != \'Anulada\')';
81 81
     }
82 82
 
83 83
     /**
Please login to merge, or discard this patch.
Controller/FiscalReports.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
                     $fileName = 'DGII_606_'.$this->empresa->cifnif.'_'.$year.'_'.$month.'.txt';
90 90
                     $commonFunctions->exportTXT('606', $fileName, $this->empresa->cifnif, $year, $month, $whereReport);
91 91
                     $this->response->headers->set('Content-type', 'text/plain');
92
-                    $this->response->headers->set('Content-Disposition', 'attachment;filename=' . $fileName);
93
-                    $this->response->setContent(file_get_contents(\FS_FOLDER . DIRECTORY_SEPARATOR . $fileName));
92
+                    $this->response->headers->set('Content-Disposition', 'attachment;filename='.$fileName);
93
+                    $this->response->setContent(file_get_contents(\FS_FOLDER.DIRECTORY_SEPARATOR.$fileName));
94 94
                 }
95 95
                 break;
96 96
             case "FiscalReport607":
@@ -102,8 +102,8 @@  discard block
 block discarded – undo
102 102
                     $fileName = 'DGII_607_'.$this->empresa->cifnif.'_'.$year.'_'.$month.'.txt';
103 103
                     $commonFunctions->exportTXT('607', $fileName, $this->empresa->cifnif, $year, $month, $whereReport);
104 104
                     $this->response->headers->set('Content-type', 'text/plain');
105
-                    $this->response->headers->set('Content-Disposition', 'attachment;filename=' . $fileName);
106
-                    $this->response->setContent(file_get_contents(\FS_FOLDER . DIRECTORY_SEPARATOR . $fileName));
105
+                    $this->response->headers->set('Content-Disposition', 'attachment;filename='.$fileName);
106
+                    $this->response->setContent(file_get_contents(\FS_FOLDER.DIRECTORY_SEPARATOR.$fileName));
107 107
                     $this->setTemplate(false);
108 108
                 }
109 109
                 break;
@@ -117,8 +117,8 @@  discard block
 block discarded – undo
117 117
                     $fileName = 'DGII_608_'.$this->empresa->cifnif.'_'.$year.'_'.$month.'.txt';
118 118
                     $commonFunctions->exportTXT('608', $fileName, $this->empresa->cifnif, $year, $month, $whereReport);
119 119
                     $this->response->headers->set('Content-type', 'text/plain');
120
-                    $this->response->headers->set('Content-Disposition', 'attachment;filename=' . $fileName);
121
-                    $this->response->setContent(file_get_contents(\FS_FOLDER . DIRECTORY_SEPARATOR . $fileName));
120
+                    $this->response->headers->set('Content-Disposition', 'attachment;filename='.$fileName);
121
+                    $this->response->setContent(file_get_contents(\FS_FOLDER.DIRECTORY_SEPARATOR.$fileName));
122 122
                 }
123 123
                 break;
124 124
             default:
Please login to merge, or discard this patch.