Passed
Push — master ( 9ab1a3...d29869 )
by Joe Nilson
01:57
created
Mod/SalesHeaderMod.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@  discard block
 block discarded – undo
24 24
 
25 25
 class SalesHeaderMod implements SalesModInterface
26 26
 {
27
-    public function apply(SalesDocument &$model, array $formData, User $user)
27
+    public function apply(SalesDocument & $model, array $formData, User $user)
28 28
     {
29 29
         // TODO: Implement apply() method.
30 30
     }
31 31
 
32
-    public function applyBefore(SalesDocument &$model, array $formData, User $user)
32
+    public function applyBefore(SalesDocument & $model, array $formData, User $user)
33 33
     {
34 34
         // TODO: Implement applyBefore() method.
35 35
     }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         return empty($model->codcliente) ? '' : '<div class="col-sm">'
64 64
             . '<div class="form-group">'
65 65
             . $i18n->trans('number2')
66
-            . '<input type="text" ' . $attributes . ' value="' . $model->numero2 . '" class="form-control"/>'
66
+            . '<input type="text" '.$attributes.' value="'.$model->numero2.'" class="form-control"/>'
67 67
             . '</div>'
68 68
             . '</div>';
69 69
     }
Please login to merge, or discard this patch.
Extension/Controller/EditFacturaCliente.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@
 block discarded – undo
29 29
 {
30 30
     public function createViews(): Closure
31 31
     {
32
-        return function () {
32
+        return function() {
33 33
             parent::createViews();
34
-            AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/CommonModals.js');
35
-            AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js');
34
+            AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/CommonModals.js');
35
+            AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js');
36 36
         };
37 37
     }
38 38
 }
39 39
\ No newline at end of file
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.'.numero2',
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.
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
                 . ';';
189 189
         $data = $dataBase->select($sql);
190 190
         if (in_array($data, [null, ''], true)) {
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
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     
65 65
     public function saveInsert()
66 66
     {
67
-        return function () {
67
+        return function() {
68 68
             $ncfrango = new NCFRango();
69 69
             $cliente = new Cliente();
70 70
             $appSettins = new AppSettings;
@@ -94,11 +94,11 @@  discard block
 block discarded – undo
94 94
     public function all()
95 95
     {
96 96
         //parent::all();
97
-        return function () {
97
+        return function() {
98 98
             $this->facturarectnumero2 = '';
99 99
             if ($this->idfacturarect !== '') {
100 100
                 $facturaRectificativa = $this->get($this->idfacturarect);
101
-                $this->loadFromData(['facturarectnumero2' => 'SI' ]);
101
+                $this->loadFromData(['facturarectnumero2' => 'SI']);
102 102
                 $this->facturarectnumero2 = $facturaRectificativa->numero2;
103 103
             } else {
104 104
                 $this->loadFromData(['facturarectnumero2' => 'NO HAY']);
Please login to merge, or discard this patch.
Extension/Controller/EditFacturaProveedor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@
 block discarded – undo
29 29
 {
30 30
     public function createViews(): Closure
31 31
     {
32
-        return function () {
32
+        return function() {
33 33
             parent::createViews();
34
-            AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/CommonModals.js');
35
-            AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js');
34
+            AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/CommonModals.js');
35
+            AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js');
36 36
         };
37 37
     }
38 38
 }
39 39
\ No newline at end of file
Please login to merge, or discard this patch.