Passed
Push — master ( 2e114e...69cbd2 )
by Joe Nilson
03:28
created
Controller/FiscalReports.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -115,8 +115,8 @@  discard block
 block discarded – undo
115 115
             $fileName = 'DGII_'.$reportCode.'_'.$this->empresa->cifnif.'_'.$year.'_'.$month.'.txt';
116 116
             $commonFunctions->exportTXT($reportCode, $fileName, $this->empresa->cifnif, $year, $month, $whereReport);
117 117
             $this->response->headers->set('Content-type', 'text/plain');
118
-            $this->response->headers->set('Content-Disposition', 'attachment;filename=' . $fileName);
119
-            $this->response->setContent(file_get_contents(\FS_FOLDER . DIRECTORY_SEPARATOR . $fileName));
118
+            $this->response->headers->set('Content-Disposition', 'attachment;filename='.$fileName);
119
+            $this->response->setContent(file_get_contents(\FS_FOLDER.DIRECTORY_SEPARATOR.$fileName));
120 120
         }
121 121
     }
122 122
 
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
         $periodStartDate = \date('Y-m-01');
211 211
         $periodEndDate = \date('Y-m-d');
212 212
         PeriodTools::applyPeriod('last-month', $periodStartDate, $periodEndDate);
213
-        if (in_array($this->request->request->get('filterfecha'), ['',null], true) === false) {
213
+        if (in_array($this->request->request->get('filterfecha'), ['', null], true) === false) {
214 214
             PeriodTools::applyPeriod($this->request->request->get('filterfecha'), $periodStartDate, $periodEndDate);
215 215
         } else {
216 216
             $periodStartDate = $this->request->request->get('filterstartfecha') ?? $periodStartDate;
Please login to merge, or discard this patch.
Extension/Model/FacturaCliente.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
     public function saveBefore(): Closure
67 67
     {
68
-        return function () {
68
+        return function() {
69 69
 
70 70
             $ncfrango = new NCFRango();
71 71
             $cliente = new Cliente();
@@ -103,11 +103,11 @@  discard block
 block discarded – undo
103 103
 
104 104
     public function all(): Closure
105 105
     {
106
-        return function () {
106
+        return function() {
107 107
             $this->facturarectnumero2 = '';
108 108
             if ($this->idfacturarect !== '') {
109 109
                 $facturaRectificativa = $this->get($this->idfacturarect);
110
-                $this->loadFromData(['facturarectnumero2' => 'SI' ]);
110
+                $this->loadFromData(['facturarectnumero2' => 'SI']);
111 111
                 $this->facturarectnumero2 = $facturaRectificativa->numero2;
112 112
             } else {
113 113
                 $this->loadFromData(['facturarectnumero2' => 'NO HAY']);
Please login to merge, or discard this patch.