Passed
Push — master ( 64fa2f...070c80 )
by Joe Nilson
01:41
created
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.
Lib/CommonFunctionsDominicanRepublic.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
             if (!$verificacion) {
140 140
                 echo json_encode(['success' => true], JSON_THROW_ON_ERROR);
141 141
             } else {
142
-                $message = "Factura: " . $verificacion[0]->idfactura . " Fecha: " . $verificacion[0]->fecha;
142
+                $message = "Factura: ".$verificacion[0]->idfactura." Fecha: ".$verificacion[0]->fecha;
143 143
                 echo json_encode(['error' => true, 'message' => $message], JSON_THROW_ON_ERROR);
144 144
             }
145 145
         }
Please login to merge, or discard this patch.
Mod/CalculatorMod.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,13 +26,13 @@  discard block
 block discarded – undo
26 26
 class CalculatorMod implements CalculatorModInterface
27 27
 {
28 28
 
29
-    public function apply(BusinessDocument &$doc, array &$lines): bool
29
+    public function apply(BusinessDocument & $doc, array &$lines): bool
30 30
     {
31 31
         //TODO: Implement apply() method.
32 32
         return true;
33 33
     }
34 34
 
35
-    public function calculate(BusinessDocument &$doc, array &$lines): bool
35
+    public function calculate(BusinessDocument & $doc, array &$lines): bool
36 36
     {
37 37
         // calculamos el total de impuestos
38 38
 //        $totalTaxes = 0.0;
@@ -44,13 +44,13 @@  discard block
 block discarded – undo
44 44
         return true;
45 45
     }
46 46
 
47
-    public function calculateLine(BusinessDocument $doc, BusinessDocumentLine &$line): bool
47
+    public function calculateLine(BusinessDocument $doc, BusinessDocumentLine & $line): bool
48 48
     {
49 49
         // TODO: Implement calculateLine() method.
50 50
         return true;
51 51
     }
52 52
 
53
-    public function clear(BusinessDocument &$doc, array &$lines): bool
53
+    public function clear(BusinessDocument & $doc, array &$lines): bool
54 54
     {
55 55
         // TODO: Implement clear() method.
56 56
         return true;
Please login to merge, or discard this patch.
Extension/Lib/PointOfSaleVoucher.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,14 +38,14 @@  discard block
 block discarded – undo
38 38
     {
39 39
         $this->printer->text($this->document->codigo, true, true);
40 40
         $this->printer->lineSeparator('-');
41
-        $this->printer->text('NCF: ' . $this->document->numeroncf, true, true);
41
+        $this->printer->text('NCF: '.$this->document->numeroncf, true, true);
42 42
         //$this->printer->text('TIPO: ' . $this->document->descripcionTipoComprobante(), true, true);
43
-        $this->printer->text('F. VENC. NCF: ' . $this->document->ncffechavencimiento, true, true);
43
+        $this->printer->text('F. VENC. NCF: '.$this->document->ncffechavencimiento, true, true);
44 44
         $this->printer->lineSeparator('-');
45
-        $fechacompleta = $this->document->fecha . ' ' . $this->document->hora;
45
+        $fechacompleta = $this->document->fecha.' '.$this->document->hora;
46 46
         $this->printer->text($fechacompleta, true, true);
47 47
 
48
-        $this->printer->text('CLIENTE: ' . $this->document->nombrecliente);
48
+        $this->printer->text('CLIENTE: '.$this->document->nombrecliente);
49 49
         $this->printer->lineSeparator('=');
50 50
 
51 51
         $this->printer->text('ARTICULO');
@@ -60,10 +60,10 @@  discard block
 block discarded – undo
60 60
                 $this->printer->textColumns('IMPORTE', NumberTools::format($line->pvpsindto));
61 61
 
62 62
                 $descuento = $line->pvpsindto - ($line->pvpsindto * $line->getEUDiscount());
63
-                $this->printer->textColumns('Descuento:', '- ' . NumberTools::format($descuento));
63
+                $this->printer->textColumns('Descuento:', '- '.NumberTools::format($descuento));
64 64
 
65 65
                 $impuestoLinea = $line->pvptotal * $line->iva / 100;
66
-                $this->printer->textColumns("Impuesto $line->iva%:", '+ ' . NumberTools::format($impuestoLinea));
66
+                $this->printer->textColumns("Impuesto $line->iva%:", '+ '.NumberTools::format($impuestoLinea));
67 67
                 $this->printer->textColumns('Total linea:', NumberTools::format($line->pvptotal + $impuestoLinea));
68 68
             }
69 69
 
Please login to merge, or discard this patch.
Extension/Controller/EditProducto.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 {
9 9
     public function createViews(): Closure
10 10
     {
11
-        return function () {
11
+        return function() {
12 12
             // tu código aquí
13 13
             // createViews() se ejecuta una vez realizado el createViews() del controlador.
14 14
             parent::createViews();
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
     public function execAfterAction(): Closure
20 20
     {
21
-        return function ($action) {
21
+        return function($action) {
22 22
             // tu código aquí
23 23
             // execAfterAction() se ejecuta tras el execAfterAction() del controlador.
24 24
         };
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
     public function execPreviousAction(): Closure
28 28
     {
29
-        return function ($action) {
29
+        return function($action) {
30 30
             // tu código aquí
31 31
             // execPreviousAction() se ejecuta después del execPreviousAction() del controlador.
32 32
             // Si devolvemos false detenemos la ejecución del controlador.
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     public function loadData(): Closure
37 37
     {
38
-        return function ($viewName, $view) {
38
+        return function($viewName, $view) {
39 39
             // tu código aquí
40 40
             // loadData() se ejecuta tras el loadData() del controlador. Recibe los parámetros $viewName y $view.
41 41
             switch ($viewName) {
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);
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
                     break;
60 60
                 case "verifica_documento":
61 61
                     $this->setTemplate(false);
62
-                    CommonFunctionsDominicanRepublic::verifyDocument($_REQUEST['ncf'],$_REQUEST['proveedor']);
62
+                    CommonFunctionsDominicanRepublic::verifyDocument($_REQUEST['ncf'], $_REQUEST['proveedor']);
63 63
                     break;
64 64
                 case 'busca_correlativo':
65 65
                     $this->setTemplate(false);
@@ -95,14 +95,14 @@  discard block
 block discarded – undo
95 95
 
96 96
     public function ncftipo()
97 97
     {
98
-        return function () {
98
+        return function() {
99 99
             return NCFTipo::allVentas();
100 100
         };
101 101
     }
102 102
 
103 103
     public function ncftipoanulacion()
104 104
     {
105
-        return function () {
105
+        return function() {
106 106
             $tiposAnulacion = new NCFTipoAnulacion();
107 107
             return $tiposAnulacion->all();
108 108
         };
Please login to merge, or discard this patch.
Extension/Controller/EditSettings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
                     $sqlType = " INDEX ";
34 34
                     $dataBase->exec("set FOREIGN_KEY_CHECKS=0;");
35 35
                 }
36
-                $result = $dataBase->exec("ALTER TABLE facturasprov DROP " . $sqlType .
36
+                $result = $dataBase->exec("ALTER TABLE facturasprov DROP ".$sqlType.
37 37
                                                 " IF EXISTS uniq_empresancf_facturasprov;");
38 38
                 if (strtoupper(FS_DB_TYPE) === 'MYSQL') {
39 39
                     $dataBase->exec("set FOREIGN_KEY_CHECKS=1;");
Please login to merge, or discard this patch.
Model/NCFRango.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
                 . $idempresa
185 185
                 . ' AND tipocomprobante = '
186 186
                 . $dataBase->var2str($tipocomprobante)
187
-                . ' AND estado = ' . $dataBase->var2str(true)
187
+                . ' AND estado = '.$dataBase->var2str(true)
188 188
                 . ' AND correlativo <= secuenciafin '
189 189
                 . ';';
190 190
         $data = $dataBase->select($sql);
Please login to merge, or discard this patch.