Passed
Push — master ( 435b7f...c17bab )
by Joe Nilson
02:06
created
Translation/updater.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 $files = [];
9 9
 $langs = 'ca_ES,cs_CZ,de_DE,en_EN,es_AR,es_CL,es_CO,es_CR,es_DO,es_EC,es_ES,es_GT,es_MX,es_PA,es_PE,es_UY,eu_ES,fr_FR,gl_ES,it_IT,pl_PL,pt_BR,pt_PT,va_ES';
10 10
 foreach (explode(',', $langs) as $lang) {
11
-    $files[] = $lang . '.json';
11
+    $files[] = $lang.'.json';
12 12
 }
13 13
 foreach (scandir(__DIR__, SCANDIR_SORT_ASCENDING) as $filename) {
14 14
     if (is_file($filename) && substr($filename, -5) === '.json' && false === in_array($filename, $files)) {
@@ -18,25 +18,25 @@  discard block
 block discarded – undo
18 18
 
19 19
 // download json from facturascripts.com
20 20
 foreach ($files as $filename) {
21
-    $url = "https://facturascripts.com/EditLanguage?action=json&idproject=176&code=" . substr($filename, 0, -5);
21
+    $url = "https://facturascripts.com/EditLanguage?action=json&idproject=176&code=".substr($filename, 0, -5);
22 22
     $newContent = file_get_contents($url);
23 23
     if (empty($newContent)) {
24 24
         if (file_exists($filename)) {
25 25
             unlink($filename);
26
-            echo "Remove " . $filename . "\n";
26
+            echo "Remove ".$filename."\n";
27 27
             continue;
28 28
         }
29 29
 
30
-        echo "Empty " . $filename . "\n";
30
+        echo "Empty ".$filename."\n";
31 31
         continue;
32 32
     }
33 33
 
34 34
     $oldContent = file_exists($filename) ? file_get_contents($filename) : '';
35 35
     if (strlen($newContent) > 10 && $newContent !== $oldContent) {
36
-        echo "Download " . $filename . "\n";
36
+        echo "Download ".$filename."\n";
37 37
         file_put_contents($filename, $newContent);
38 38
         continue;
39 39
     }
40 40
 
41
-    echo "Skip " . $filename . "\n";
41
+    echo "Skip ".$filename."\n";
42 42
 }
43 43
\ No newline at end of file
Please login to merge, or discard this patch.
Model/NCFTipoAnulacion.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -75,21 +75,21 @@
 block discarded – undo
75 75
     public function install(): string
76 76
     {
77 77
         parent::install();
78
-        return "INSERT INTO rd_ncftipoanulacion (codigo, descripcion, estado) VALUES " .
79
-            "('01','Deterioro de Factura Pre-Imprensa',true), " .
80
-             "('02','Errores de Impresión (Factura Pre-Impresa)',true), " .
81
-             "('03','Impresión defectuosa',true), " .
82
-             "('04','Duplicidad de Factura',true), " .
83
-             "('05','Corrección de la Información',true), " .
84
-             "('06','Cambio de Productos',true), " .
85
-             "('07','Devolución de Productos',true), " .
78
+        return "INSERT INTO rd_ncftipoanulacion (codigo, descripcion, estado) VALUES ".
79
+            "('01','Deterioro de Factura Pre-Imprensa',true), ".
80
+             "('02','Errores de Impresión (Factura Pre-Impresa)',true), ".
81
+             "('03','Impresión defectuosa',true), ".
82
+             "('04','Duplicidad de Factura',true), ".
83
+             "('05','Corrección de la Información',true), ".
84
+             "('06','Cambio de Productos',true), ".
85
+             "('07','Devolución de Productos',true), ".
86 86
              "('08','Omisión de Productos',true);";
87 87
     }
88 88
     
89 89
     public function restoreData()
90 90
     {
91 91
         $dataBase = new DataBase();
92
-        $sqlClean = "DELETE FROM " . $this->tableName() . ";";
92
+        $sqlClean = "DELETE FROM ".$this->tableName().";";
93 93
         $dataBase->exec($sqlClean);
94 94
         foreach ($this->arrayTipoAnulacion as $arrayItem) {
95 95
             $initialData = new NCFTipoAnulacion($arrayItem);
Please login to merge, or discard this patch.