Test Failed
Push — main ( c8394f...8477f1 )
by Rafael
66:21
created
public/htdocs/core/modules/modFournisseur.class.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -939,8 +939,8 @@
 block discarded – undo
939 939
         }
940 940
 
941 941
         $sql_order = array(
942
-             "DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[0][2]) . "' AND type = 'order_supplier' AND entity = " . ((int) $conf->entity),
943
-             "INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[0][2]) . "', 'order_supplier', " . ((int) $conf->entity) . ")",
942
+                "DELETE FROM " . MAIN_DB_PREFIX . "document_model WHERE nom = '" . $this->db->escape($this->const[0][2]) . "' AND type = 'order_supplier' AND entity = " . ((int) $conf->entity),
943
+                "INSERT INTO " . MAIN_DB_PREFIX . "document_model (nom, type, entity) VALUES('" . $this->db->escape($this->const[0][2]) . "', 'order_supplier', " . ((int) $conf->entity) . ")",
944 944
         );
945 945
 
946 946
         //ODT template for Supplier Invoice
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -520,7 +520,7 @@
 block discarded – undo
520 520
         include DOL_DOCUMENT_ROOT . '/core/extrafieldsinexport.inc.php';
521 521
         // End add extra fields object
522 522
         $this->export_sql_start[$r] = 'SELECT DISTINCT ';
523
-        $this->export_sql_end[$r]  = ' FROM ' . MAIN_DB_PREFIX . 'societe as s';
523
+        $this->export_sql_end[$r] = ' FROM ' . MAIN_DB_PREFIX . 'societe as s';
524 524
         if (is_object($user) && !$user->hasRight('societe', 'client', 'voir')) {
525 525
             $this->export_sql_end[$r] .= ' LEFT JOIN ' . MAIN_DB_PREFIX . 'societe_commerciaux as sc ON sc.fk_soc = s.rowid';
526 526
         }
Please login to merge, or discard this patch.
public/htdocs/core/modules/oauth/google_oauthcallback.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 
169 169
     if ($forlogin) {
170 170
         // Set approval_prompt
171
-        $approval_prompt = getDolGlobalString('OAUTH_GOOGLE_FORCE_PROMPT_ON_LOGIN', 'auto');    // Can be 'force'
171
+        $approval_prompt = getDolGlobalString('OAUTH_GOOGLE_FORCE_PROMPT_ON_LOGIN', 'auto'); // Can be 'force'
172 172
         $apiService->setApprouvalPrompt($approval_prompt);
173 173
     }
174 174
 
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
                     $storage->clearToken('Google');
312 312
 
313 313
                     $tmpuser = new User($db);
314
-                    $res = $tmpuser->fetch(0, '', '', 0, $entitytosearchuser, $useremail, 0, 1);    // Load user. Can load with email_oauth2.
314
+                    $res = $tmpuser->fetch(0, '', '', 0, $entitytosearchuser, $useremail, 0, 1); // Load user. Can load with email_oauth2.
315 315
 
316 316
                     if ($res > 0) {
317 317
                         $username = $tmpuser->login;
Please login to merge, or discard this patch.
public/htdocs/core/modules/modMultiCurrency.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -336,7 +336,7 @@
 block discarded – undo
336 336
 
337 337
         $multicurrency = new MultiCurrency($this->db);
338 338
 
339
-        if (! $multicurrency->checkCodeAlreadyExists($conf->currency)) {
339
+        if (!$multicurrency->checkCodeAlreadyExists($conf->currency)) {
340 340
             $langs->loadCacheCurrencies('');
341 341
 
342 342
             $multicurrency->code = $conf->currency;
Please login to merge, or discard this patch.
public/htdocs/core/modules/expedition/doc/pdf_merou.modules.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     }
109 109
 
110 110
 
111
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
111
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
112 112
     /**
113 113
      *  Function to build pdf onto disk
114 114
      *
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     public function write_file(&$object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
124 124
     {
125
-		// phpcs:enable
125
+        // phpcs:enable
126 126
         global $user, $conf, $langs, $mysoc, $hookmanager;
127 127
 
128 128
         $object->fetch_thirdparty();
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
         }
400 400
     }
401 401
 
402
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
402
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
403 403
     /**
404 404
      *   Show table for lines
405 405
      *
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
         $pdf->Rect(10, $tab_top, 190, $tab_height);
441 441
     }
442 442
 
443
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
443
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
444 444
     /**
445 445
      *      Show footer of page. Need this->emetteur object
446 446
      *
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
         //}
470 470
     }
471 471
 
472
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
472
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
473 473
     /**
474 474
      *  Show top header of page.
475 475
      *
Please login to merge, or discard this patch.
htdocs/core/modules/expedition/doc/doc_generic_shipment_odt.modules.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
         return $texte;
196 196
     }
197 197
 
198
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
198
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
199 199
     /**
200 200
      *  Function to build a document on disk using the generic odt module.
201 201
      *
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      */
210 210
     public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
211 211
     {
212
-		// phpcs:enable
212
+        // phpcs:enable
213 213
         global $user, $langs, $conf, $mysoc, $hookmanager;
214 214
 
215 215
         if (empty($srctemplatepath)) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@
 block discarded – undo
176 176
         $maxfilesizearray = getMaxFileSizeArray();
177 177
         $maxmin = $maxfilesizearray['maxmin'];
178 178
         if ($maxmin > 0) {
179
-            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
179
+            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
180 180
         }
181 181
         $texte .= ' <input type="file" name="uploadfile">';
182 182
         $texte .= '<input type="hidden" value="EXPEDITION_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
Please login to merge, or discard this patch.
public/htdocs/core/modules/expedition/doc/pdf_espadon.modules.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         $this->tabTitleHeight = 5; // default height
113 113
     }
114 114
 
115
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
115
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
116 116
     /**
117 117
      *  Function to build pdf onto disk
118 118
      *
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      */
127 127
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
128 128
     {
129
-		// phpcs:enable
129
+        // phpcs:enable
130 130
         global $user, $conf, $langs, $hookmanager;
131 131
 
132 132
         $object->fetch_thirdparty();
@@ -769,8 +769,8 @@  discard block
 block discarded – undo
769 769
         }
770 770
     }
771 771
 
772
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
773
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
772
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
773
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
774 774
     /**
775 775
      *  Show total to pay
776 776
      *
@@ -783,7 +783,7 @@  discard block
 block discarded – undo
783 783
      */
784 784
     protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs)
785 785
     {
786
-		// phpcs:enable
786
+        // phpcs:enable
787 787
         global $conf, $mysoc;
788 788
 
789 789
         $sign = 1;
@@ -876,7 +876,7 @@  discard block
 block discarded – undo
876 876
         return ($tab2_top + ($tab2_hl * $index));
877 877
     }
878 878
 
879
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
879
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
880 880
     /**
881 881
      *   Show table for lines
882 882
      *
@@ -929,7 +929,7 @@  discard block
 block discarded – undo
929 929
         }
930 930
     }
931 931
 
932
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
932
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
933 933
     /**
934 934
      *  Show top header of page.
935 935
      *
@@ -1194,7 +1194,7 @@  discard block
 block discarded – undo
1194 1194
         return $top_shift;
1195 1195
     }
1196 1196
 
1197
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1197
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1198 1198
     /**
1199 1199
      *      Show footer of page. Need this->emetteur object
1200 1200
      *
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
                 $pdf->MultiCell(0, 3, ''); // Set interline to 3
293 293
                 $pdf->SetTextColor(0, 0, 0);
294 294
 
295
-                $tab_top = 90;  // position of top tab
295
+                $tab_top = 90; // position of top tab
296 296
                 $tab_top_newpage = (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD') ? 42 + $top_shift : 10);
297 297
 
298 298
                 $tab_height = $this->page_hauteur - $tab_top - $heightforfooter - $heightforfreetext;
@@ -873,7 +873,7 @@  discard block
 block discarded – undo
873 873
             if ($object->volume_units < 50) {
874 874
                 $totalVolumetoshow = showDimensionInBestUnit($object->trueVolume, $object->volume_units, "volume", $outputlangs);
875 875
             } else {
876
-                $totalVolumetoshow =  price($object->trueVolume, 0, $outputlangs, 0, 0) . ' ' . measuringUnitString(0, "volume", $object->volume_units);
876
+                $totalVolumetoshow = price($object->trueVolume, 0, $outputlangs, 0, 0) . ' ' . measuringUnitString(0, "volume", $object->volume_units);
877 877
             }
878 878
         }
879 879
 
Please login to merge, or discard this patch.
public/htdocs/core/modules/expedition/doc/pdf_rouget.modules.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         }
147 147
     }
148 148
 
149
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
149
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
150 150
     /**
151 151
      *  Function to build pdf onto disk
152 152
      *
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      */
161 161
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
162 162
     {
163
-		// phpcs:enable
163
+        // phpcs:enable
164 164
         global $user, $conf, $langs, $hookmanager;
165 165
 
166 166
         $object->fetch_thirdparty();
@@ -695,8 +695,8 @@  discard block
 block discarded – undo
695 695
         }
696 696
     }
697 697
 
698
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
699
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
698
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
699
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
700 700
     /**
701 701
      *  Show total to pay
702 702
      *
@@ -709,7 +709,7 @@  discard block
 block discarded – undo
709 709
      */
710 710
     protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs)
711 711
     {
712
-		// phpcs:enable
712
+        // phpcs:enable
713 713
         global $conf, $mysoc;
714 714
 
715 715
         $sign = 1;
@@ -811,7 +811,7 @@  discard block
 block discarded – undo
811 811
         return ($tab2_top + ($tab2_hl * $index));
812 812
     }
813 813
 
814
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
814
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
815 815
     /**
816 816
      *   Show table for lines
817 817
      *
@@ -826,7 +826,7 @@  discard block
 block discarded – undo
826 826
      */
827 827
     protected function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs, $hidetop = 0, $hidebottom = 0)
828 828
     {
829
-		// phpcs:enable
829
+        // phpcs:enable
830 830
         global $conf;
831 831
 
832 832
         // Force to disable hidetop and hidebottom
@@ -894,7 +894,7 @@  discard block
 block discarded – undo
894 894
         }
895 895
     }
896 896
 
897
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
897
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
898 898
     /**
899 899
      *  Show top header of page.
900 900
      *
@@ -906,7 +906,7 @@  discard block
 block discarded – undo
906 906
      */
907 907
     protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
908 908
     {
909
-		// phpcs:enable
909
+        // phpcs:enable
910 910
         global $conf, $langs, $mysoc;
911 911
 
912 912
         $langs->load("orders");
@@ -1145,7 +1145,7 @@  discard block
 block discarded – undo
1145 1145
         return $top_shift;
1146 1146
     }
1147 1147
 
1148
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1148
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1149 1149
     /**
1150 1150
      *  Show footer of page. Need this->emetteur object
1151 1151
      *
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -325,7 +325,7 @@
 block discarded – undo
325 325
                 $pdf->MultiCell(0, 3, ''); // Set interline to 3
326 326
                 $pdf->SetTextColor(0, 0, 0);
327 327
 
328
-                $tab_top = 90;  // position of top tab
328
+                $tab_top = 90; // position of top tab
329 329
                 $tab_top_newpage = (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD') ? 42 + $top_shift : 10);
330 330
 
331 331
                 $tab_height = $this->page_hauteur - $tab_top - $heightforfooter - $heightforfreetext;
Please login to merge, or discard this patch.
public/htdocs/core/modules/expedition/modules_expedition.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
  */
41 41
 abstract class ModelePdfExpedition extends CommonDocGenerator
42 42
 {
43
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
43
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
44 44
     /**
45 45
      *  Return list of active generation models
46 46
      *
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public static function liste_modeles($db, $maxfilenamelength = 0)
52 52
     {
53
-		// phpcs:enable
53
+        // phpcs:enable
54 54
         $type = 'shipping';
55 55
         $list = array();
56 56
 
Please login to merge, or discard this patch.
public/htdocs/core/modules/hrm/modules_evaluation.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
  */
40 40
 abstract class ModelePDFEvaluation extends CommonDocGenerator
41 41
 {
42
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
42
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
43 43
     /**
44 44
      *  Return list of active generation modules
45 45
      *
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public static function liste_modeles($db, $maxfilenamelength = 0)
51 51
     {
52
-		// phpcs:enable
52
+        // phpcs:enable
53 53
         $type = 'evaluation';
54 54
         $list = array();
55 55
 
Please login to merge, or discard this patch.