Passed
Push — master ( 80ef44...3a17ef )
by Joe Nilson
03:29 queued 12s
created
Controller/FiscalReports.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
                     ];
86 86
                     $commonFunctions->exportTXT('606', $fileName, $this->empresa->cifnif, $year, $month, $whereReport);
87 87
                     $this->response->headers->set('Content-type', 'text/plain');
88
-                    $this->response->headers->set('Content-Disposition', 'attachment;filename=' . $fileName);
89
-                    $this->response->setContent(file_get_contents(\FS_FOLDER . DIRECTORY_SEPARATOR . $fileName));
88
+                    $this->response->headers->set('Content-Disposition', 'attachment;filename='.$fileName);
89
+                    $this->response->setContent(file_get_contents(\FS_FOLDER.DIRECTORY_SEPARATOR.$fileName));
90 90
                     break;
91 91
                 case "FiscalReport607":
92 92
                     $this->setTemplate(false);
@@ -97,8 +97,8 @@  discard block
 block discarded – undo
97 97
                     $fileName = 'DGII_607_'.$this->empresa->cifnif.'_'.$year.'_'.$month.'.txt';
98 98
                     $commonFunctions->exportTXT('607', $fileName, $this->empresa->cifnif, $year, $month, $whereReport);
99 99
                     $this->response->headers->set('Content-type', 'text/plain');
100
-                    $this->response->headers->set('Content-Disposition', 'attachment;filename=' . $fileName);
101
-                    $this->response->setContent(file_get_contents(\FS_FOLDER . DIRECTORY_SEPARATOR . $fileName));
100
+                    $this->response->headers->set('Content-Disposition', 'attachment;filename='.$fileName);
101
+                    $this->response->setContent(file_get_contents(\FS_FOLDER.DIRECTORY_SEPARATOR.$fileName));
102 102
                     break;
103 103
                 case "FiscalReport608":
104 104
                     $this->setTemplate(false);
@@ -109,8 +109,8 @@  discard block
 block discarded – undo
109 109
                     $fileName = 'DGII_608_'.$this->empresa->cifnif.'_'.$year.'_'.$month.'.txt';
110 110
                     $commonFunctions->exportTXT('608', $fileName, $this->empresa->cifnif, $year, $month, $whereReport);
111 111
                     $this->response->headers->set('Content-type', 'text/plain');
112
-                    $this->response->headers->set('Content-Disposition', 'attachment;filename=' . $fileName);
113
-                    $this->response->setContent(file_get_contents(\FS_FOLDER . DIRECTORY_SEPARATOR . $fileName));
112
+                    $this->response->headers->set('Content-Disposition', 'attachment;filename='.$fileName);
113
+                    $this->response->setContent(file_get_contents(\FS_FOLDER.DIRECTORY_SEPARATOR.$fileName));
114 114
                     break;
115 115
                 default:
116 116
                     break;
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.