Test Failed
Push — main ( c8394f...8477f1 )
by Rafael
66:21
created
htdocs/core/modules/reception/doc/doc_generic_reception_odt.modules.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@
 block discarded – undo
170 170
         $maxfilesizearray = getMaxFileSizeArray();
171 171
         $maxmin = $maxfilesizearray['maxmin'];
172 172
         if ($maxmin > 0) {
173
-            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
173
+            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
174 174
         }
175 175
         $texte .= ' <input type="file" name="uploadfile">';
176 176
         $texte .= '<input type="hidden" value="RECEPTION_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
Please login to merge, or discard this patch.
public/htdocs/core/modules/modSociete.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@
 block discarded – undo
205 205
         $this->rights[$r][0] = 130;
206 206
         $this->rights[$r][1] = 'Modify thirdparty information payment';
207 207
         $this->rights[$r][3] = 0;
208
-        $this->rights[$r][4] = 'thirdparty_paymentinformation_advance';      // Visible if option MAIN_USE_ADVANCED_PERMS is on
208
+        $this->rights[$r][4] = 'thirdparty_paymentinformation_advance'; // Visible if option MAIN_USE_ADVANCED_PERMS is on
209 209
         $this->rights[$r][5] = 'write';
210 210
 
211 211
         // 262 : Restrict access to sales representative
Please login to merge, or discard this patch.
public/htdocs/core/modules/modService.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
             $this->export_dependencies_array[$r] = array('category' => 'p.rowid');
269 269
         }
270 270
         $this->export_sql_start[$r] = 'SELECT DISTINCT ';
271
-        $this->export_sql_end[$r]  = ' FROM ' . MAIN_DB_PREFIX . 'product as p';
271
+        $this->export_sql_end[$r] = ' FROM ' . MAIN_DB_PREFIX . 'product as p';
272 272
         if (getDolGlobalString('MAIN_PRODUCT_PERENTITY_SHARED')) {
273 273
             $this->export_sql_end[$r] .= " LEFT JOIN " . MAIN_DB_PREFIX . "product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = " . ((int) $conf->entity);
274 274
         }
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
                 $this->export_fields_array[$r] = array_merge($this->export_fields_array[$r], array('p2.rowid' => "Id", 'p2.ref' => "Ref", 'p2.label' => "Label", 'p2.description' => "Description"));
418 418
                 $this->export_entities_array[$r] = array_merge($this->export_entities_array[$r], array('p2.rowid' => "subproduct", 'p2.ref' => "subproduct", 'p2.label' => "subproduct", 'p2.description' => "subproduct"));
419 419
                 $this->export_sql_start[$r] = 'SELECT DISTINCT ';
420
-                $this->export_sql_end[$r]  = ' FROM ' . MAIN_DB_PREFIX . 'product as p';
420
+                $this->export_sql_end[$r] = ' FROM ' . MAIN_DB_PREFIX . 'product as p';
421 421
                 if (getDolGlobalString('MAIN_PRODUCT_PERENTITY_SHARED')) {
422 422
                     $this->export_sql_end[$r] .= " LEFT JOIN " . MAIN_DB_PREFIX . "product_perentity as pac ON pac.fk_product = p.rowid AND pac.entity = " . ((int) $conf->entity);
423 423
                 }
Please login to merge, or discard this patch.
public/htdocs/core/modules/facture/doc/pdf_sponge.modules.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
                 // $pdf->GetY() here can't be used. It is bottom of the second address box but first one may be higher
454 454
 
455 455
                 // $this->tab_top is y where we must continue content (90 = 42 + 48: 42 is height of logo and ref, 48 is address blocks)
456
-                $this->tab_top = 90 + $top_shift + $shipp_shift;        // top_shift is an addition for linked objects or addons (0 in most cases)
456
+                $this->tab_top = 90 + $top_shift + $shipp_shift; // top_shift is an addition for linked objects or addons (0 in most cases)
457 457
                 $this->tab_top_newpage = (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD') ? 42 + $top_shift : 10);
458 458
 
459 459
                 // You can add more thing under header here, if you increase $extra_under_address_shift too.
@@ -690,7 +690,7 @@  discard block
 block discarded – undo
690 690
                     }
691 691
 
692 692
                     $pdf->setTopMargin($this->tab_top_newpage);
693
-                    $page_bottom_margin =  $this->heightforfooter + $this->heightforfreetext + $this->heightforinfotot + $this->getHeightForQRInvoice($pdf->getPage(), $object, $langs);
693
+                    $page_bottom_margin = $this->heightforfooter + $this->heightforfreetext + $this->heightforinfotot + $this->getHeightForQRInvoice($pdf->getPage(), $object, $langs);
694 694
                     $pdf->setPageOrientation('', 1, $page_bottom_margin);
695 695
                     $pageposbefore = $pdf->getPage();
696 696
 
@@ -934,7 +934,7 @@  discard block
 block discarded – undo
934 934
                     if (!isset($this->tva[$vatrate])) {
935 935
                         $this->tva[$vatrate] = 0;
936 936
                     }
937
-                    $this->tva[$vatrate] += $tvaligne;  // ->tva is abandoned, we use now ->tva_array that is more complete
937
+                    $this->tva[$vatrate] += $tvaligne; // ->tva is abandoned, we use now ->tva_array that is more complete
938 938
                     $vatcode = $object->lines[$i]->vat_src_code;
939 939
                     if (empty($this->tva_array[$vatrate . ($vatcode ? ' (' . $vatcode . ')' : '')]['amount'])) {
940 940
                         $this->tva_array[$vatrate . ($vatcode ? ' (' . $vatcode . ')' : '')]['amount'] = 0;
@@ -1228,7 +1228,7 @@  discard block
 block discarded – undo
1228 1228
             $posy = $pdf->GetY() + 4;
1229 1229
         }
1230 1230
 
1231
-        $posxval = 52;  // Position of values of properties shown on left side
1231
+        $posxval = 52; // Position of values of properties shown on left side
1232 1232
         $posxend = 110; // End of x for text on left side
1233 1233
         if ($this->page_largeur < 210) { // To work with US executive format
1234 1234
             $posxend -= 10;
Please login to merge, or discard this patch.
public/htdocs/core/modules/facture/doc/pdf_octopus.modules.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      * Dolibarr version of the loaded document
79 79
      * @var string
80 80
      */
81
-    public $version = 'disabled';   // Disabled by default. Enabled in constructor if option INVOICE_USE_SITUATION is 2.
81
+    public $version = 'disabled'; // Disabled by default. Enabled in constructor if option INVOICE_USE_SITUATION is 2.
82 82
 
83 83
     /**
84 84
      * @var int height for info total
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
             $outputlangsbis->loadLangs(array("main", "bills", "products", "dict", "companies"));
293 293
         }
294 294
 
295
-        if (empty($object) || ($object->type != Facture::TYPE_SITUATION && ($object->type != Facture::TYPE_CREDIT_NOTE &&  !empty($object->situation_cycle_ref)))) {
295
+        if (empty($object) || ($object->type != Facture::TYPE_SITUATION && ($object->type != Facture::TYPE_CREDIT_NOTE && !empty($object->situation_cycle_ref)))) {
296 296
             setEventMessage($langs->trans('WarningsObjectIsNotASituation'), 'warnings');
297 297
             return 1;
298 298
         }
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
                 $pdf->SetAutoPageBreak(1, 0);
412 412
 
413 413
                 // compute height for situation invoices
414
-                $this->heightforinfotot = 45;   // Height reserved to output the info and total part and payment part
414
+                $this->heightforinfotot = 45; // Height reserved to output the info and total part and payment part
415 415
                 if (!getDolGlobalString('INVOICE_NO_PAYMENT_DETAILS') && $nbpayments > 0) {
416 416
                     $this->heightforinfotot += 4 * ($nbpayments + 3);
417 417
                 }
@@ -525,7 +525,7 @@  discard block
 block discarded – undo
525 525
                 // $pdf->GetY() here can't be used. It is bottom of the second address box but first one may be higher
526 526
 
527 527
                 // $this->tab_top is y where we must continue content (90 = 42 + 48: 42 is height of logo and ref, 48 is address blocks)
528
-                $this->tab_top = 90 + $top_shift + $shipp_shift;        // top_shift is an addition for linked objects or addons (0 in most cases)
528
+                $this->tab_top = 90 + $top_shift + $shipp_shift; // top_shift is an addition for linked objects or addons (0 in most cases)
529 529
                 $this->tab_top_newpage = (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD') ? 42 + $top_shift : 10);
530 530
 
531 531
                 // You can add more thing under header here, if you increase $extra_under_address_shift too.
@@ -1037,7 +1037,7 @@  discard block
 block discarded – undo
1037 1037
                     if (!isset($this->tva[$vatrate])) {
1038 1038
                         $this->tva[$vatrate] = 0;
1039 1039
                     }
1040
-                    $this->tva[$vatrate] += $tvaligne;  // ->tva is abandoned, we use now ->tva_array that is more complete
1040
+                    $this->tva[$vatrate] += $tvaligne; // ->tva is abandoned, we use now ->tva_array that is more complete
1041 1041
                     $vatcode = $object->lines[$i]->vat_src_code;
1042 1042
                     if (empty($this->tva_array[$vatrate . ($vatcode ? ' (' . $vatcode . ')' : '')]['amount'])) {
1043 1043
                         $this->tva_array[$vatrate . ($vatcode ? ' (' . $vatcode . ')' : '')]['amount'] = 0;
@@ -1337,7 +1337,7 @@  discard block
 block discarded – undo
1337 1337
             $posy = $pdf->GetY() + 4;
1338 1338
         }
1339 1339
 
1340
-        $posxval = 52;  // Position of values of properties shown on left side
1340
+        $posxval = 52; // Position of values of properties shown on left side
1341 1341
         $posxend = 110; // End of x for text on left side
1342 1342
         if ($this->page_largeur < 210) { // To work with US executive format
1343 1343
             $posxend -= 10;
@@ -1700,7 +1700,7 @@  discard block
 block discarded – undo
1700 1700
                     if (($object->lines[$i]->info_bits & 0x01) == 0x01) {
1701 1701
                         $vatrate .= '*';
1702 1702
                     }
1703
-                    if (! isset($tvas[$vatrate])) {
1703
+                    if (!isset($tvas[$vatrate])) {
1704 1704
                         $tvas[$vatrate] = 0;
1705 1705
                     }
1706 1706
                     $tvas[$vatrate] += $tvaligne;
@@ -2013,7 +2013,7 @@  discard block
 block discarded – undo
2013 2013
         $pdf->SetFont('', '', $default_font_size - 1);
2014 2014
 
2015 2015
         if (empty($hidetop)) {
2016
-            $pdf->line($this->marge_gauche, $tab_top + 5, $this->page_largeur - $this->marge_droite, $tab_top + 5);   // line prend une position y en 2eme param et 4eme param
2016
+            $pdf->line($this->marge_gauche, $tab_top + 5, $this->page_largeur - $this->marge_droite, $tab_top + 5); // line prend une position y en 2eme param et 4eme param
2017 2017
         }
2018 2018
     }
2019 2019
 
@@ -2583,7 +2583,7 @@  discard block
 block discarded – undo
2583 2583
             'overtitle' => array(
2584 2584
                 'textkey' => 'Chantier', // use lang key is useful in somme case with module
2585 2585
                 'align' => 'C',
2586
-                'padding' => array(0.5,0.5,0.5,0.5), // Like css 0 => top , 1 => right, 2 => bottom, 3 => left
2586
+                'padding' => array(0.5, 0.5, 0.5, 0.5), // Like css 0 => top , 1 => right, 2 => bottom, 3 => left
2587 2587
                 'width' => 18
2588 2588
             ),
2589 2589
         );
@@ -2610,11 +2610,11 @@  discard block
 block discarded – undo
2610 2610
             'overtitle' => array(
2611 2611
                 'textkey' => $outputlangs->transnoentities('SituationInvoiceDate', $derniere_situation->situation_counter, dol_print_date($derniere_situation->date, "%d/%m/%Y")), // use lang key is useful in somme case with module
2612 2612
                 'align' => 'C',
2613
-                'padding' => array(0.5,0.2,0.5,0.2), // Like css 0 => top , 1 => right, 2 => bottom, 3 => left
2613
+                'padding' => array(0.5, 0.2, 0.5, 0.2), // Like css 0 => top , 1 => right, 2 => bottom, 3 => left
2614 2614
                 'width' => 10 + 15 //current width + amount cell width
2615 2615
             ),
2616 2616
         );
2617
-        if ($this->situationinvoice && ! empty($this->TDataSituation['date_derniere_situation'])) {
2617
+        if ($this->situationinvoice && !empty($this->TDataSituation['date_derniere_situation'])) {
2618 2618
             $this->cols['prev_progress']['status'] = true;
2619 2619
         }
2620 2620
 
@@ -2629,7 +2629,7 @@  discard block
 block discarded – undo
2629 2629
             ),
2630 2630
             'border-left' => true, // add left line separator
2631 2631
         );
2632
-        if ($this->situationinvoice && ! empty($this->TDataSituation['date_derniere_situation'])) {
2632
+        if ($this->situationinvoice && !empty($this->TDataSituation['date_derniere_situation'])) {
2633 2633
             $this->cols['prev_progress_amount']['status'] = true;
2634 2634
         }
2635 2635
 
@@ -2646,7 +2646,7 @@  discard block
 block discarded – undo
2646 2646
             'overtitle' => array(
2647 2647
                 'textkey' => $outputlangs->transnoentities('SituationInvoiceDate', $object->situation_counter, dol_print_date($object->date, "%d/%m/%Y")), // use lang key is useful in somme case with module
2648 2648
                 'align' => 'C',
2649
-                'padding' => array(0.5,0.2,0.5,0.2), // Like css 0 => top , 1 => right, 2 => bottom, 3 => left
2649
+                'padding' => array(0.5, 0.2, 0.5, 0.2), // Like css 0 => top , 1 => right, 2 => bottom, 3 => left
2650 2650
                 'width' => 10 + 15
2651 2651
             ),
2652 2652
         );
@@ -2769,7 +2769,7 @@  discard block
 block discarded – undo
2769 2769
 
2770 2770
         // Output Rect
2771 2771
         // KEEPTHIS => Affiche les bords extérieurs
2772
-        $this->printRectBtp($pdf, $this->marge_gauche, $tab_top, $this->page_largeur - $this->marge_gauche - $this->marge_droite, $tab_height, $hidetop, $hidebottom);  // Rect prend une longueur en 3eme param et 4eme param
2772
+        $this->printRectBtp($pdf, $this->marge_gauche, $tab_top, $this->page_largeur - $this->marge_gauche - $this->marge_droite, $tab_height, $hidetop, $hidebottom); // Rect prend une longueur en 3eme param et 4eme param
2773 2773
 
2774 2774
         $pdf->line($this->posx_cumul_anterieur - 1, $tab_top, $this->posx_cumul_anterieur - 1, $tab_top + $tab_height);
2775 2775
         if (empty($hidetop)) {
@@ -2826,7 +2826,7 @@  discard block
 block discarded – undo
2826 2826
             $pdf->SetXY($this->marge_gauche + 10, $tab_top + 24 + $i);
2827 2827
             $pdf->MultiCell(80, 2, $outputlangs->transnoentities("TotalHT") . ' ' . $TVatInfo['label'], '', 'L');
2828 2828
 
2829
-            if (! empty($this->TDataSituation['current'][$tva_tx_formated]['TVA'])) {
2829
+            if (!empty($this->TDataSituation['current'][$tva_tx_formated]['TVA'])) {
2830 2830
                 $pdf->SetXY($this->marge_gauche + 10, $tab_top + 28 + $i);
2831 2831
                 $pdf->MultiCell(80, 2, $outputlangs->transnoentities("VAT") . ' ' . $TVatInfo['label'], '', 'L');
2832 2832
             } else {
@@ -2890,7 +2890,7 @@  discard block
 block discarded – undo
2890 2890
                 $pdf->MultiCell(32, 2, price($this->TDataSituation[$col][$tva_tx_formated]['HT'], 0, '', 1, -1, 2), '', 'R');
2891 2891
 
2892 2892
                 // Total TVA
2893
-                if (! empty($this->TDataSituation['current'][$tva_tx_formated]['TVA'])) {
2893
+                if (!empty($this->TDataSituation['current'][$tva_tx_formated]['TVA'])) {
2894 2894
                     $pdf->SetXY($x, $tab_top + 28 + $i);
2895 2895
                     $pdf->MultiCell(32, 2, price($this->TDataSituation[$col][$tva_tx_formated]['TVA'], 0, '', 1, -1, 2), '', 'R');
2896 2896
                 } else {
@@ -2970,7 +2970,7 @@  discard block
 block discarded – undo
2970 2970
 
2971 2971
         $TDataSituation = array();
2972 2972
 
2973
-        if (! empty($facDerniereSituation)) {
2973
+        if (!empty($facDerniereSituation)) {
2974 2974
             $TDataSituation['derniere_situation'] = $facDerniereSituation;
2975 2975
             $TDataSituation['date_derniere_situation'] = $facDerniereSituation->date;
2976 2976
         }
@@ -2979,9 +2979,9 @@  discard block
 block discarded – undo
2979 2979
         $retenue_garantie_anterieure = 0;
2980 2980
         // Init tous les champs à 0
2981 2981
         $TDataSituation['cumul_anterieur'] = array(
2982
-            'HT' => 0,  //montant HT normal
2983
-            'TVA' => 0,   //montant de la TVA sur le HTnet
2984
-            'TTC' => 0,   //montant TTC (HTnet + TVA)
2982
+            'HT' => 0, //montant HT normal
2983
+            'TVA' => 0, //montant de la TVA sur le HTnet
2984
+            'TTC' => 0, //montant TTC (HTnet + TVA)
2985 2985
             'retenue_garantie' => 0,
2986 2986
             'travaux_sup' => 0,
2987 2987
             'HTnet' => 0, //montant HT
@@ -3011,7 +3011,7 @@  discard block
 block discarded – undo
3011 3011
                     $isFirstSituation = false;
3012 3012
                     if (!empty($l->fk_prev_id)) {
3013 3013
                         $prevSituationPercent = $l->get_prev_progress($previousInvoice->id, true);
3014
-                    } elseif (! array_key_exists($i + 1, $TPreviousInvoices)) {
3014
+                    } elseif (!array_key_exists($i + 1, $TPreviousInvoices)) {
3015 3015
                         $isFirstSituation = true;
3016 3016
                     }
3017 3017
 
@@ -3021,7 +3021,7 @@  discard block
 block discarded – undo
3021 3021
 
3022 3022
                     //1ere ligne
3023 3023
                     $amounttva = $calc_ht * ($ltvatx / 100);
3024
-                    if (! isset($TDataSituation['cumul_anterieur'][$ltvatx])) {
3024
+                    if (!isset($TDataSituation['cumul_anterieur'][$ltvatx])) {
3025 3025
                         $TDataSituation['cumul_anterieur'][$ltvatx]['HT'] = $calc_ht;
3026 3026
                         $TDataSituation['cumul_anterieur'][$ltvatx]['TVA'] = $amounttva;
3027 3027
                     } else {
@@ -3033,14 +3033,14 @@  discard block
 block discarded – undo
3033 3033
                     //le grand total de TVA
3034 3034
                     // $TDataSituation['cumul_anterieur']['TVA'] += $amounttva;
3035 3035
 
3036
-                    if (empty($l->fk_prev_id) && ! $isFirstSituation) {
3036
+                    if (empty($l->fk_prev_id) && !$isFirstSituation) {
3037 3037
                         // TODO: à clarifier, mais pour moi, un facture de situation précédente qui a des progressions à 0% c'est pas logique
3038 3038
                         $TDataSituation['cumul_anterieur']['travaux_sup'] += $calc_ht;
3039 3039
                     }
3040 3040
                 }
3041 3041
             }
3042 3042
 
3043
-            if (! empty($previousInvoice->retained_warranty) && !getDolGlobalString('USE_RETAINED_WARRANTY_ONLY_FOR_SITUATION_FINAL')) {
3043
+            if (!empty($previousInvoice->retained_warranty) && !getDolGlobalString('USE_RETAINED_WARRANTY_ONLY_FOR_SITUATION_FINAL')) {
3044 3044
                 $retenue_garantie_anterieure += $previousInvoice->getRetainedWarrantyAmount();
3045 3045
             }
3046 3046
 
@@ -3054,7 +3054,7 @@  discard block
 block discarded – undo
3054 3054
         // print json_encode($facDerniereSituation->lines);exit;
3055 3055
         $TDataSituation['current'] = $this->btpGetInvoiceAmounts($object->id);
3056 3056
 
3057
-        if (! empty($facDerniereSituation->lines)) {
3057
+        if (!empty($facDerniereSituation->lines)) {
3058 3058
             $TFacLinesKey = array_keys($facDerniereSituation->lines);
3059 3059
             $TObjectLinesKey = array_keys($object->lines);
3060 3060
             $TDiffKey = array_diff($TObjectLinesKey, $TFacLinesKey);
@@ -3220,7 +3220,7 @@  discard block
 block discarded – undo
3220 3220
      */
3221 3221
     public function btpGetInvoiceAmounts($id, $forceReadFromDB = false)
3222 3222
     {
3223
-        global $user,$langs,$conf,$mysoc,$db,$hookmanager,$nblignes;
3223
+        global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblignes;
3224 3224
 
3225 3225
         $object = new Facture($db);
3226 3226
         $object->fetch($id);
@@ -3238,16 +3238,16 @@  discard block
 block discarded – undo
3238 3238
         $facDerniereSituation = $TPreviousInvoices[0];
3239 3239
 
3240 3240
         $ret = array(
3241
-            'HT' => 0,  //montant HT normal
3241
+            'HT' => 0, //montant HT normal
3242 3242
             'HTnet' => 0, //montant HT
3243
-            'TVA' => 0,   //montant de la TVA sur le HTnet
3244
-            'TTC' => 0,   //montant TTC (HTnet + TVA)
3243
+            'TVA' => 0, //montant de la TVA sur le HTnet
3244
+            'TTC' => 0, //montant TTC (HTnet + TVA)
3245 3245
             'retenue_garantie' => 0,
3246 3246
             'travaux_sup' => 0,
3247 3247
             'total_a_payer' => 0 //montant "a payer" sur la facture
3248 3248
         );
3249 3249
 
3250
-        if (! empty($facDerniereSituation)) {
3250
+        if (!empty($facDerniereSituation)) {
3251 3251
             $ret['derniere_situation'] = $facDerniereSituation;
3252 3252
             $ret['date_derniere_situation'] = $facDerniereSituation->date;
3253 3253
         }
@@ -3379,14 +3379,14 @@  discard block
 block discarded – undo
3379 3379
             $label = $outputlangs->transnoentities("SituationInvoiceTotalProposal");
3380 3380
             $pdf->MultiCell($this->page_largeur - ($this->marge_droite + $this->marge_gauche), 3, $label, 0, 'L', 0, 1, $posx, $posy + 1);
3381 3381
 
3382
-            $amount = price($sign * ($total_ht + (! empty($propal->remise) ? $propal->remise : 0)));
3382
+            $amount = price($sign * ($total_ht + (!empty($propal->remise) ? $propal->remise : 0)));
3383 3383
             $pdf->MultiCell($width2, 3, $amount, 0, 'R', 0, 1, $posx + $width, $posy + 1);
3384 3384
 
3385 3385
             $pdf->SetFont('', '', $default_font_size - 1);
3386 3386
 
3387 3387
             // Output Rect
3388 3388
             $pdf->SetDrawColor(128, 128, 128);
3389
-            $this->printRect($pdf, $posx, $posy, $this->page_largeur - $this->marge_gauche - $this->marge_droite, 6);   // Rect prend une longueur en 3eme param et 4eme param
3389
+            $this->printRect($pdf, $posx, $posy, $this->page_largeur - $this->marge_gauche - $this->marge_droite, 6); // Rect prend une longueur en 3eme param et 4eme param
3390 3390
 
3391 3391
             $posy += 4;
3392 3392
         } elseif (count($orders)) {
@@ -3421,7 +3421,7 @@  discard block
 block discarded – undo
3421 3421
 
3422 3422
         $force_to_zero = false;
3423 3423
 
3424
-        $idinv = 0;//count($previousinvoices);
3424
+        $idinv = 0; //count($previousinvoices);
3425 3425
         while ($idinv < count($previousinvoices)) {
3426 3426
             $invoice = $previousinvoices[$idinv];
3427 3427
 
@@ -3471,7 +3471,7 @@  discard block
 block discarded – undo
3471 3471
                 if (($invoice->lines[$i]->info_bits & 0x01) == 0x01) {
3472 3472
                     $vatrate .= '*';
3473 3473
                 }
3474
-                if (! isset($tvas[$vatrate])) {
3474
+                if (!isset($tvas[$vatrate])) {
3475 3475
                     $tvas[$vatrate] = 0;
3476 3476
                 }
3477 3477
                 $tvas[$vatrate] += $tvaligne;
Please login to merge, or discard this patch.
public/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
         $maxfilesizearray = getMaxFileSizeArray();
176 176
         $maxmin = $maxfilesizearray['maxmin'];
177 177
         if ($maxmin > 0) {
178
-            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
178
+            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
179 179
         }
180 180
         $texte .= ' <input type="file" name="uploadfile">';
181 181
         $texte .= '<input type="hidden" value="FACTURE_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
@@ -410,10 +410,10 @@  discard block
 block discarded – undo
410 410
                 }
411 411
 
412 412
                 // Define substitution array
413
-                $substitutionarray = getCommonSubstitutionArray($outputlangs, 0, null, $object);    // Set tags __...__
413
+                $substitutionarray = getCommonSubstitutionArray($outputlangs, 0, null, $object); // Set tags __...__
414 414
                 $array_object_from_properties = $this->get_substitutionarray_each_var_object($object, $outputlangs);
415
-                $array_objet = $this->get_substitutionarray_object($object, $outputlangs);          // Set tags object_...
416
-                $array_user = $this->get_substitutionarray_user($user, $outputlangs);               // Set tags myuser_...
415
+                $array_objet = $this->get_substitutionarray_object($object, $outputlangs); // Set tags object_...
416
+                $array_user = $this->get_substitutionarray_user($user, $outputlangs); // Set tags myuser_...
417 417
                 $array_soc = $this->get_substitutionarray_mysoc($mysoc, $outputlangs);
418 418
                 $array_thirdparty = $this->get_substitutionarray_thirdparty($socobject, $outputlangs);
419 419
                 $array_propal = is_object($propal_object) ? $this->get_substitutionarray_object($propal_object, $outputlangs, 'propal') : array();
Please login to merge, or discard this patch.
public/htdocs/core/modules/facture/doc/pdf_crabe.modules.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
                 // $pdf->GetY() here can't be used. It is bottom of the second address box but first one may be higher
445 445
 
446 446
                 // $tab_top is y where we must continue content (90 = 42 + 48: 42 is height of logo and ref, 48 is address blocks)
447
-                $tab_top = 90 + $top_shift;     // top_shift is an addition for linked objects or addons (0 in most cases)
447
+                $tab_top = 90 + $top_shift; // top_shift is an addition for linked objects or addons (0 in most cases)
448 448
                 $tab_top_newpage = (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD') ? 42 + $top_shift : 10);
449 449
 
450 450
                 // You can add more thing under header here, if you increase $extra_under_address_shift too.
@@ -774,7 +774,7 @@  discard block
 block discarded – undo
774 774
                     if (!isset($this->tva[$vatrate])) {
775 775
                         $this->tva[$vatrate] = 0;
776 776
                     }
777
-                    $this->tva[$vatrate] += $tvaligne;  // ->tva is abandoned, we use now ->tva_array that is more complete
777
+                    $this->tva[$vatrate] += $tvaligne; // ->tva is abandoned, we use now ->tva_array that is more complete
778 778
                     $vatcode = $object->lines[$i]->vat_src_code;
779 779
                     if (empty($this->tva_array[$vatrate . ($vatcode ? ' (' . $vatcode . ')' : '')]['amount'])) {
780 780
                         $this->tva_array[$vatrate . ($vatcode ? ' (' . $vatcode . ')' : '')]['amount'] = 0;
@@ -1153,7 +1153,7 @@  discard block
 block discarded – undo
1153 1153
             $lib_condition_paiement = str_replace('\n', "\n", $lib_condition_paiement);
1154 1154
             $pdf->MultiCell(67, 4, $lib_condition_paiement, 0, 'L');
1155 1155
 
1156
-            $posy = $pdf->GetY() + 3;   // We need spaces for 2 lines payment conditions
1156
+            $posy = $pdf->GetY() + 3; // We need spaces for 2 lines payment conditions
1157 1157
         }
1158 1158
 
1159 1159
         // Show category of operations
@@ -2113,7 +2113,7 @@  discard block
 block discarded – undo
2113 2113
 
2114 2114
             $carac_client_name = pdfBuildThirdpartyName($thirdparty, $outputlangs);
2115 2115
 
2116
-            $mode =  'target';
2116
+            $mode = 'target';
2117 2117
             $carac_client = pdf_build_address($outputlangs, $this->emetteur, $object->thirdparty, ($usecontact ? $object->contact : ''), $usecontact, $mode, $object);
2118 2118
 
2119 2119
             // Show recipient
Please login to merge, or discard this patch.
public/htdocs/core/modules/takepos/mod_takepos_ref_simple.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function getExample()
83 83
     {
84
-        return $this->prefix . '0-0501-0001';     // TC0-0501-0001
84
+        return $this->prefix . '0-0501-0001'; // TC0-0501-0001
85 85
     }
86 86
 
87 87
     /**
@@ -98,10 +98,10 @@  discard block
 block discarded – undo
98 98
         $pryymm = '';
99 99
         $max = '';
100 100
 
101
-        $pos_source = 0;    // POS source = Terminal ID
101
+        $pos_source = 0; // POS source = Terminal ID
102 102
 
103 103
         // First, we get the max value
104
-        $posindice = strlen($this->prefix . $pos_source . '-____-') + 1;    // So posindice is position after TCX-YYMM-
104
+        $posindice = strlen($this->prefix . $pos_source . '-____-') + 1; // So posindice is position after TCX-YYMM-
105 105
 
106 106
         $sql  = "SELECT MAX(CAST(SUBSTRING(ref FROM " . $posindice . ") AS SIGNED)) as max";
107 107
         $sql .= " FROM " . MAIN_DB_PREFIX . "facture";
@@ -141,10 +141,10 @@  discard block
 block discarded – undo
141 141
     {
142 142
         global $db;
143 143
 
144
-        $pos_source = is_object($invoice) && $invoice->pos_source > 0 ? $invoice->pos_source : 0;   // POS source = Terminal ID
144
+        $pos_source = is_object($invoice) && $invoice->pos_source > 0 ? $invoice->pos_source : 0; // POS source = Terminal ID
145 145
 
146 146
         // First, we get the max value
147
-        $posindice = strlen($this->prefix . $pos_source . '-____-') + 1;    // So posindice is position after TCX-YYMM-
147
+        $posindice = strlen($this->prefix . $pos_source . '-____-') + 1; // So posindice is position after TCX-YYMM-
148 148
         $sql  = "SELECT MAX(CAST(SUBSTRING(ref FROM " . $posindice . ") AS SIGNED)) as max"; // This is standard SQL
149 149
         $sql .= " FROM " . MAIN_DB_PREFIX . "facture";
150 150
         $sql .= " WHERE ref LIKE '" . $db->escape($this->prefix . $pos_source . "-____-%") . "'";
Please login to merge, or discard this patch.
public/htdocs/core/modules/printing/printgcp.modules.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
                 'type' => 'info',
117 117
             );
118 118
         } else {
119
-            $keyforprovider = '';   // @FIXME
119
+            $keyforprovider = ''; // @FIXME
120 120
 
121 121
             $this->google_id = getDolGlobalString('OAUTH_GOOGLE_ID');
122 122
             $this->google_secret = getDolGlobalString('OAUTH_GOOGLE_SECRET');
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
         global $conf;
259 259
         $ret = array();
260 260
 
261
-        $keyforprovider = '';   // @FIXME
261
+        $keyforprovider = ''; // @FIXME
262 262
 
263 263
         // Token storage
264 264
         $storage = new DoliStorage($this->db, $conf, $keyforprovider);
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
             'contentType' => $contenttype,
401 401
         );
402 402
 
403
-        $keyforprovider = '';   // @FIXME
403
+        $keyforprovider = ''; // @FIXME
404 404
 
405 405
         // Dolibarr Token storage
406 406
         $storage = new DoliStorage($this->db, $conf, $keyforprovider);
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
         $error = 0;
453 453
         $html = '';
454 454
 
455
-        $keyforprovider = '';   // @FIXME
455
+        $keyforprovider = ''; // @FIXME
456 456
 
457 457
         // Token storage
458 458
         $storage = new DoliStorage($this->db, $conf, $keyforprovider);
Please login to merge, or discard this patch.