Passed
Push — master ( b8d623...b21d4a )
by Joe Nilson
01:59
created
Extension/Controller/EditCliente.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@  discard block
 block discarded – undo
29 29
 {
30 30
     public function createViews(): Closure
31 31
     {
32
-        return function () {
33
-            AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/CommonModals.js');
34
-            AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js');
35
-            AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/BusquedaRNCDGII.js');
32
+        return function() {
33
+            AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/CommonModals.js');
34
+            AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js');
35
+            AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/BusquedaRNCDGII.js');
36 36
             $ncfTipo = new NCFTipo();
37 37
             $ncfTipos = $ncfTipo->allFor('ventas', 'suma');
38 38
             $customValues = [];
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
     public function execPreviousAction()
63 63
     {
64
-        return function ($action) {
64
+        return function($action) {
65 65
             switch ($action) {
66 66
                 case 'busca_rnc':
67 67
                     $this->setTemplate(false);
Please login to merge, or discard this patch.
Extension/Controller/EditProveedor.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@  discard block
 block discarded – undo
28 28
 
29 29
     public function createViews(): Closure
30 30
     {
31
-        return function () {
32
-            AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/CommonModals.js');
33
-            AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js');
34
-            AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/BusquedaRNCDGII.js');
31
+        return function() {
32
+            AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/CommonModals.js');
33
+            AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js');
34
+            AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/BusquedaRNCDGII.js');
35 35
             $ncfTipoPago = new NCFTipoPago();
36 36
             $ncfTiposPago = $ncfTipoPago->findAllByTipopago('02');
37 37
             $customValuesNTP = [];
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
     public function execPreviousAction()
50 50
     {
51
-        return function ($action) {
51
+        return function($action) {
52 52
             switch ($action) {
53 53
                 case 'busca_rnc':
54 54
                     $this->setTemplate(false);
Please login to merge, or discard this patch.
Controller/FiscalReports.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
             $fileName = 'MyFiles/DGII_F_'.$reportCode.'_'.$this->empresa->cifnif.'_'.$year.'_'.$month.'.TXT';
117 117
             $commonFunctions->exportTXT($reportCode, $fileName, $this->empresa->cifnif, $year, $month, $whereReport);
118 118
             $this->response->headers->set('Content-type', 'text/plain');
119
-            $this->response->headers->set('Content-Disposition', 'attachment;filename=' . $fileName);
119
+            $this->response->headers->set('Content-Disposition', 'attachment;filename='.$fileName);
120 120
             $this->response->setContent(
121 121
                 file_get_contents(
122 122
                 \FS_FOLDER
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
         $periodStartDate = \date('Y-m-01');
224 224
         $periodEndDate = \date('Y-m-d');
225 225
         PeriodTools::applyPeriod('last-month', $periodStartDate, $periodEndDate);
226
-        if (in_array($this->request->request->get('filterfecha'), ['',null], true) === false) {
226
+        if (in_array($this->request->request->get('filterfecha'), ['', null], true) === false) {
227 227
             PeriodTools::applyPeriod($this->request->request->get('filterfecha'), $periodStartDate, $periodEndDate);
228 228
         } else {
229 229
             $periodStartDate = $this->request->request->get('filterstartfecha') ?? $periodStartDate;
Please login to merge, or discard this patch.
Extension/Controller/EditFacturaProveedor.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -30,16 +30,16 @@  discard block
 block discarded – undo
30 30
 {
31 31
     public function createViews(): Closure
32 32
     {
33
-        return function () {
33
+        return function() {
34 34
             parent::createViews();
35
-            AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/CommonModals.js');
36
-            AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js');
35
+            AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/CommonModals.js');
36
+            AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js');
37 37
         };
38 38
     }
39 39
 
40 40
     public function execPreviousAction()
41 41
     {
42
-        return function ($action) {
42
+        return function($action) {
43 43
             switch ($action) {
44 44
                 case 'busca_tipo':
45 45
                     $this->setTemplate(false);
@@ -104,21 +104,21 @@  discard block
 block discarded – undo
104 104
         if (!$verificacion) {
105 105
             echo json_encode(['success' => true], JSON_THROW_ON_ERROR);
106 106
         } else {
107
-            $message = "Factura: " . $verificacion[0]->idfactura . " Fecha: " . $verificacion[0]->fecha;
107
+            $message = "Factura: ".$verificacion[0]->idfactura." Fecha: ".$verificacion[0]->fecha;
108 108
             echo json_encode(['error' => true, 'message' => $message], JSON_THROW_ON_ERROR);
109 109
         }
110 110
     }
111 111
 
112 112
     public function ncftipo()
113 113
     {
114
-        return function () {
114
+        return function() {
115 115
             return NCFTipo::allVentas();
116 116
         };
117 117
     }
118 118
 
119 119
     public function ncftipoanulacion()
120 120
     {
121
-        return function () {
121
+        return function() {
122 122
             $tiposAnulacion = new NCFTipoAnulacion();
123 123
             return $tiposAnulacion->all();
124 124
         };
Please login to merge, or discard this patch.
Extension/Model/FacturaProveedor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
     public function saveBefore(): Closure
55 55
     {
56
-        return function () {
56
+        return function() {
57 57
             $ArrayTipoNCFCompras = ['11', '12', '16', '17'];
58 58
             $ncfrango = new NCFRango();
59 59
             $proveedor = new Proveedor();
Please login to merge, or discard this patch.