Passed
Push — EXTRACT_CLASSES ( 231cec...0382f2 )
by Rafael
65:54 queued 05:18
created
public/htdocs/comm/remise.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
 
98 98
 $form = new Form($db);
99 99
 
100
-if (! ($socid > 0)) {
100
+if (!($socid > 0)) {
101 101
     accessforbidden('Record not found');
102 102
 }
103 103
 
Please login to merge, or discard this patch.
public/htdocs/comm/propal/card.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1159,8 +1159,8 @@  discard block
 block discarded – undo
1159 1159
                         if (count($prodcustprice->lines) > 0) {
1160 1160
                             $pu_ht = price($prodcustprice->lines[0]->price);
1161 1161
                             $pu_ttc = price($prodcustprice->lines[0]->price_ttc);
1162
-                            $price_min =  price($prodcustprice->lines[0]->price_min);
1163
-                            $price_min_ttc =  price($prodcustprice->lines[0]->price_min_ttc);
1162
+                            $price_min = price($prodcustprice->lines[0]->price_min);
1163
+                            $price_min_ttc = price($prodcustprice->lines[0]->price_min_ttc);
1164 1164
                             $price_base_type = $prodcustprice->lines[0]->price_base_type;
1165 1165
                             /*$tva_tx = ($prodcustprice->lines[0]->default_vat_code ? $prodcustprice->lines[0]->tva_tx.' ('.$prodcustprice->lines[0]->default_vat_code.' )' : $prodcustprice->lines[0]->tva_tx);
1166 1166
                             if ($prodcustprice->lines[0]->default_vat_code && !preg_match('/\(.*\)/', $tva_tx)) {
@@ -1904,7 +1904,7 @@  discard block
 block discarded – undo
1904 1904
     print '<form name="addprop" action="' . $_SERVER["PHP_SELF"] . '" method="POST">';
1905 1905
     print '<input type="hidden" name="token" value="' . newToken() . '">';
1906 1906
     print '<input type="hidden" name="action" value="add">';
1907
-    print '<input type="hidden" name="changecompany" value="0">';   // will be set to 1 by javascript so we know post is done after a company change
1907
+    print '<input type="hidden" name="changecompany" value="0">'; // will be set to 1 by javascript so we know post is done after a company change
1908 1908
     print '<input type="hidden" name="backtopage" value="' . $backtopage . '">';
1909 1909
     if ($origin != 'project' && $originid) {
1910 1910
         print '<input type="hidden" name="origin" value="' . $origin . '">';
@@ -2295,7 +2295,7 @@  discard block
 block discarded – undo
2295 2295
         if (!getDolGlobalString('PROPAL_SKIP_ACCEPT_REFUSE')) {
2296 2296
             $formquestion[] = array('type' => 'select', 'name' => 'statut', 'label' => '<span class="fieldrequired">' . $langs->trans("CloseAs") . '</span>', 'values' => array($object::STATUS_SIGNED => $object->LibStatut($object::STATUS_SIGNED), $object::STATUS_NOTSIGNED => $object->LibStatut($object::STATUS_NOTSIGNED)));
2297 2297
         }
2298
-        $formquestion[] = array('type' => 'text', 'name' => 'note_private', 'label' => $langs->trans("Note"), 'value' => '');               // Field to complete private note (not replace)
2298
+        $formquestion[] = array('type' => 'text', 'name' => 'note_private', 'label' => $langs->trans("Note"), 'value' => ''); // Field to complete private note (not replace)
2299 2299
 
2300 2300
         if (getDolGlobalInt('PROPOSAL_SUGGEST_DOWN_PAYMENT_INVOICE_CREATION')) {
2301 2301
             // This is a hidden option:
@@ -2479,7 +2479,7 @@  discard block
 block discarded – undo
2479 2479
         $nbMandated = 0;
2480 2480
         foreach ($object->lines as $line) {
2481 2481
             $res = $line->fetch_product();
2482
-            if ($res  > 0) {
2482
+            if ($res > 0) {
2483 2483
                 if ($line->product->isService() && $line->product->isMandatoryPeriod() && (empty($line->date_start) || empty($line->date_end))) {
2484 2484
                     $nbMandated++;
2485 2485
                     break;
Please login to merge, or discard this patch.
public/htdocs/comm/propal/list.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
 // Search Fields
80 80
 $search_all = trim((GETPOST('search_all', 'alphanohtml') != '') ? GETPOST('search_all', 'alphanohtml') : GETPOST('sall', 'alphanohtml'));
81
-$search_user    = GETPOSTINT('search_user');
81
+$search_user = GETPOSTINT('search_user');
82 82
 if ($search_user == -1) {
83 83
     $search_user = 0;
84 84
 }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 $search_date_endday = GETPOSTINT('search_date_endday');
112 112
 $search_date_endmonth = GETPOSTINT('search_date_endmonth');
113 113
 $search_date_endyear = GETPOSTINT('search_date_endyear');
114
-$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear);   // Use tzserver
114
+$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear); // Use tzserver
115 115
 $search_date_end = dol_mktime(23, 59, 59, $search_date_endmonth, $search_date_endday, $search_date_endyear);
116 116
 $search_date_end_startday = GETPOSTINT('search_date_end_startday');
117 117
 $search_date_end_startmonth = GETPOSTINT('search_date_end_startmonth');
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 $search_date_end_endday = GETPOSTINT('search_date_end_endday');
120 120
 $search_date_end_endmonth = GETPOSTINT('search_date_end_endmonth');
121 121
 $search_date_end_endyear = GETPOSTINT('search_date_end_endyear');
122
-$search_date_end_start = dol_mktime(0, 0, 0, $search_date_end_startmonth, $search_date_end_startday, $search_date_end_startyear);   // Use tzserver
122
+$search_date_end_start = dol_mktime(0, 0, 0, $search_date_end_startmonth, $search_date_end_startday, $search_date_end_startyear); // Use tzserver
123 123
 $search_date_end_end = dol_mktime(23, 59, 59, $search_date_end_endmonth, $search_date_end_endday, $search_date_end_endyear);
124 124
 $search_date_delivery_startday = GETPOSTINT('search_date_delivery_startday');
125 125
 $search_date_delivery_startmonth = GETPOSTINT('search_date_delivery_startmonth');
Please login to merge, or discard this patch.
public/htdocs/comm/propal/class/api_proposals.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -961,7 +961,7 @@  discard block
 block discarded – undo
961 961
     }
962 962
 
963 963
 
964
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
964
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
965 965
     /**
966 966
      * Clean sensible object datas
967 967
      *
@@ -970,7 +970,7 @@  discard block
 block discarded – undo
970 970
      */
971 971
     protected function _cleanObjectDatas($object)
972 972
     {
973
-		// phpcs:enable
973
+        // phpcs:enable
974 974
         $object = parent::_cleanObjectDatas($object);
975 975
 
976 976
         unset($object->note);
Please login to merge, or discard this patch.
public/htdocs/comm/propal/class/propal.class.php 2 patches
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
     }
405 405
 
406 406
 
407
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
407
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
408 408
     /**
409 409
      *  Add line into array ->lines
410 410
      *  $this->thirdparty should be loaded
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
      */
419 419
     public function add_product($idproduct, $qty, $remise_percent = 0)
420 420
     {
421
-		// phpcs:enable
421
+        // phpcs:enable
422 422
         global $conf, $mysoc;
423 423
 
424 424
         if (!$qty) {
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
         return 1;
470 470
     }
471 471
 
472
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
472
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
473 473
     /**
474 474
      *  Adding line of fixed discount in the proposal in DB
475 475
      *
@@ -478,7 +478,7 @@  discard block
 block discarded – undo
478 478
      */
479 479
     public function insert_discount($idremise)
480 480
     {
481
-		// phpcs:enable
481
+        // phpcs:enable
482 482
         global $langs;
483 483
 
484 484
         include_once DOL_DOCUMENT_ROOT . '/core/lib/price.lib.php';
@@ -1820,7 +1820,7 @@  discard block
 block discarded – undo
1820 1820
     }
1821 1821
 
1822 1822
 
1823
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1823
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1824 1824
     /**
1825 1825
      * Load array lines
1826 1826
      *
@@ -1831,7 +1831,7 @@  discard block
 block discarded – undo
1831 1831
      */
1832 1832
     public function fetch_lines($only_product = 0, $loadalsotranslation = 0, $sqlforgedfilters = '')
1833 1833
     {
1834
-		// phpcs:enable
1834
+        // phpcs:enable
1835 1835
         $this->lines = array();
1836 1836
 
1837 1837
         $sql = 'SELECT d.rowid, d.fk_propal, d.fk_parent_line, d.label as custom_label, d.description, d.price, d.vat_src_code, d.tva_tx, d.localtax1_tx, d.localtax2_tx, d.localtax1_type, d.localtax2_type, d.qty, d.fk_remise_except, d.remise_percent, d.subprice, d.fk_product,';
@@ -2080,7 +2080,7 @@  discard block
 block discarded – undo
2080 2080
     }
2081 2081
 
2082 2082
 
2083
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2083
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2084 2084
     /**
2085 2085
      *  Define proposal date
2086 2086
      *
@@ -2091,7 +2091,7 @@  discard block
 block discarded – undo
2091 2091
      */
2092 2092
     public function set_date($user, $date, $notrigger = 0)
2093 2093
     {
2094
-		// phpcs:enable
2094
+        // phpcs:enable
2095 2095
         if (empty($date)) {
2096 2096
             $this->error = 'ErrorBadParameter';
2097 2097
             dol_syslog(get_class($this) . "::set_date " . $this->error, LOG_ERR);
@@ -2144,7 +2144,7 @@  discard block
 block discarded – undo
2144 2144
         return -1;
2145 2145
     }
2146 2146
 
2147
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2147
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2148 2148
     /**
2149 2149
      *  Define end validity date
2150 2150
      *
@@ -2155,7 +2155,7 @@  discard block
 block discarded – undo
2155 2155
      */
2156 2156
     public function set_echeance($user, $date_end_validity, $notrigger = 0)
2157 2157
     {
2158
-		// phpcs:enable
2158
+        // phpcs:enable
2159 2159
         if ($user->hasRight('propal', 'creer')) {
2160 2160
             $error = 0;
2161 2161
 
@@ -2203,7 +2203,7 @@  discard block
 block discarded – undo
2203 2203
         return -1;
2204 2204
     }
2205 2205
 
2206
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2206
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2207 2207
     /**
2208 2208
      *  Set delivery date
2209 2209
      *
@@ -2215,7 +2215,7 @@  discard block
 block discarded – undo
2215 2215
      */
2216 2216
     public function set_date_livraison($user, $delivery_date, $notrigger = 0)
2217 2217
     {
2218
-		// phpcs:enable
2218
+        // phpcs:enable
2219 2219
         return $this->setDeliveryDate($user, $delivery_date, $notrigger);
2220 2220
     }
2221 2221
 
@@ -2275,7 +2275,7 @@  discard block
 block discarded – undo
2275 2275
         return -1;
2276 2276
     }
2277 2277
 
2278
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2278
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2279 2279
     /**
2280 2280
      *  Set delivery
2281 2281
      *
@@ -2286,7 +2286,7 @@  discard block
 block discarded – undo
2286 2286
      */
2287 2287
     public function set_availability($user, $id, $notrigger = 0)
2288 2288
     {
2289
-		// phpcs:enable
2289
+        // phpcs:enable
2290 2290
         if ($user->hasRight('propal', 'creer') && $this->statut >= self::STATUS_DRAFT) {
2291 2291
             $error = 0;
2292 2292
 
@@ -2338,7 +2338,7 @@  discard block
 block discarded – undo
2338 2338
         }
2339 2339
     }
2340 2340
 
2341
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2341
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2342 2342
     /**
2343 2343
      *  Set source of demand
2344 2344
      *
@@ -2349,7 +2349,7 @@  discard block
 block discarded – undo
2349 2349
      */
2350 2350
     public function set_demand_reason($user, $id, $notrigger = 0)
2351 2351
     {
2352
-		// phpcs:enable
2352
+        // phpcs:enable
2353 2353
         if ($user->hasRight('propal', 'creer') && $this->statut >= self::STATUS_DRAFT) {
2354 2354
             $error = 0;
2355 2355
 
@@ -2403,7 +2403,7 @@  discard block
 block discarded – undo
2403 2403
         }
2404 2404
     }
2405 2405
 
2406
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2406
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2407 2407
     /**
2408 2408
      * Set customer reference number
2409 2409
      *
@@ -2414,7 +2414,7 @@  discard block
 block discarded – undo
2414 2414
      */
2415 2415
     public function set_ref_client($user, $ref_client, $notrigger = 0)
2416 2416
     {
2417
-		// phpcs:enable
2417
+        // phpcs:enable
2418 2418
         if ($user->hasRight('propal', 'creer')) {
2419 2419
             $error = 0;
2420 2420
 
@@ -2766,7 +2766,7 @@  discard block
 block discarded – undo
2766 2766
         }
2767 2767
     }
2768 2768
 
2769
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2769
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2770 2770
     /**
2771 2771
      *  Set draft status
2772 2772
      *
@@ -2776,7 +2776,7 @@  discard block
 block discarded – undo
2776 2776
      */
2777 2777
     public function setDraft($user, $notrigger = 0)
2778 2778
     {
2779
-		// phpcs:enable
2779
+        // phpcs:enable
2780 2780
         $error = 0;
2781 2781
 
2782 2782
         // Protection
@@ -2829,7 +2829,7 @@  discard block
 block discarded – undo
2829 2829
     }
2830 2830
 
2831 2831
 
2832
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2832
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2833 2833
     /**
2834 2834
      *    Return list of proposal (eventually filtered on user) into an array
2835 2835
      *
@@ -2845,7 +2845,7 @@  discard block
 block discarded – undo
2845 2845
      */
2846 2846
     public function liste_array($shortlist = 0, $draft = 0, $notcurrentuser = 0, $socid = 0, $limit = 0, $offset = 0, $sortfield = 'p.datep', $sortorder = 'DESC')
2847 2847
     {
2848
-		// phpcs:enable
2848
+        // phpcs:enable
2849 2849
         global $user;
2850 2850
 
2851 2851
         $ga = array();
@@ -2922,7 +2922,7 @@  discard block
 block discarded – undo
2922 2922
         return $this->InvoiceArrayList($this->id);
2923 2923
     }
2924 2924
 
2925
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2925
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2926 2926
     /**
2927 2927
      *  Returns an array with id and ref of related invoices
2928 2928
      *
@@ -2931,7 +2931,7 @@  discard block
 block discarded – undo
2931 2931
      */
2932 2932
     public function InvoiceArrayList($id)
2933 2933
     {
2934
-		// phpcs:enable
2934
+        // phpcs:enable
2935 2935
         $ga = array();
2936 2936
         $linkedInvoices = array();
2937 2937
 
@@ -3179,7 +3179,7 @@  discard block
 block discarded – undo
3179 3179
         }
3180 3180
     }
3181 3181
 
3182
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
3182
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
3183 3183
     /**
3184 3184
      *  Change source demand
3185 3185
      *
@@ -3190,7 +3190,7 @@  discard block
 block discarded – undo
3190 3190
      */
3191 3191
     public function demand_reason($demand_reason_id, $notrigger = 0)
3192 3192
     {
3193
-		// phpcs:enable
3193
+        // phpcs:enable
3194 3194
         global $user;
3195 3195
 
3196 3196
         if ($this->status >= self::STATUS_DRAFT) {
@@ -3300,7 +3300,7 @@  discard block
 block discarded – undo
3300 3300
         return $this->LibStatut($this->statut, $mode);
3301 3301
     }
3302 3302
 
3303
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
3303
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
3304 3304
     /**
3305 3305
      *      Return label of a status (draft, validated, ...)
3306 3306
      *
@@ -3310,7 +3310,7 @@  discard block
 block discarded – undo
3310 3310
      */
3311 3311
     public function LibStatut($status, $mode = 1)
3312 3312
     {
3313
-		// phpcs:enable
3313
+        // phpcs:enable
3314 3314
         global $hookmanager;
3315 3315
 
3316 3316
         // Init/load array of translation of status
@@ -3357,7 +3357,7 @@  discard block
 block discarded – undo
3357 3357
     }
3358 3358
 
3359 3359
 
3360
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
3360
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
3361 3361
     /**
3362 3362
      *      Load indicators for dashboard (this->nbtodo and this->nbtodolate)
3363 3363
      *
@@ -3367,7 +3367,7 @@  discard block
 block discarded – undo
3367 3367
      */
3368 3368
     public function load_board($user, $mode)
3369 3369
     {
3370
-		// phpcs:enable
3370
+        // phpcs:enable
3371 3371
         global $conf, $langs;
3372 3372
 
3373 3373
         $clause = " WHERE";
@@ -4593,7 +4593,7 @@  discard block
 block discarded – undo
4593 4593
         }
4594 4594
     }
4595 4595
 
4596
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
4596
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
4597 4597
     /**
4598 4598
      *  Update DB line fields total_xxx
4599 4599
      *  Used by migration
@@ -4602,7 +4602,7 @@  discard block
 block discarded – undo
4602 4602
      */
4603 4603
     public function update_total()
4604 4604
     {
4605
-		// phpcs:enable
4605
+        // phpcs:enable
4606 4606
         $this->db->begin();
4607 4607
 
4608 4608
         // Mise a jour ligne en base
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -219,12 +219,12 @@  discard block
 block discarded – undo
219 219
      */
220 220
     public $total;
221 221
 
222
-    public $cond_reglement_code;    // code
223
-    public $cond_reglement;         // label
224
-    public $cond_reglement_doc;     // label doc
222
+    public $cond_reglement_code; // code
223
+    public $cond_reglement; // label
224
+    public $cond_reglement_doc; // label doc
225 225
 
226
-    public $mode_reglement_code;    // code
227
-    public $mode_reglement;         // label
226
+    public $mode_reglement_code; // code
227
+    public $mode_reglement; // label
228 228
 
229 229
     public $deposit_percent;
230 230
 
@@ -261,9 +261,9 @@  discard block
 block discarded – undo
261 261
 
262 262
     public $duree_validite;
263 263
 
264
-    public $demand_reason_id;       // id
265
-    public $demand_reason_code;     // code
266
-    public $demand_reason;          // label
264
+    public $demand_reason_id; // id
265
+    public $demand_reason_code; // code
266
+    public $demand_reason; // label
267 267
 
268 268
     public $warehouse_id;
269 269
 
@@ -1619,7 +1619,7 @@  discard block
 block discarded – undo
1619 1619
                 $this->ref_customer         = $obj->ref_client;
1620 1620
                 $this->ref_ext              = $obj->ref_ext;
1621 1621
 
1622
-                $this->total                = $obj->total_ttc;          // TODO deprecated
1622
+                $this->total                = $obj->total_ttc; // TODO deprecated
1623 1623
                 $this->total_ttc            = $obj->total_ttc;
1624 1624
                 $this->total_ht             = $obj->total_ht;
1625 1625
                 $this->total_tva            = $obj->total_tva;
@@ -2535,7 +2535,7 @@  discard block
 block discarded – undo
2535 2535
      */
2536 2536
     public function closeProposal($user, $status, $note = '', $notrigger = 0)
2537 2537
     {
2538
-        global $langs,$conf;
2538
+        global $langs, $conf;
2539 2539
 
2540 2540
         $error = 0;
2541 2541
         $now = dol_now();
@@ -2566,10 +2566,10 @@  discard block
 block discarded – undo
2566 2566
         if ($resql) {
2567 2567
             // Status self::STATUS_REFUSED by default
2568 2568
             $modelpdf = getDolGlobalString('PROPALE_ADDON_PDF_ODT_CLOSED', $this->model_pdf);
2569
-            $trigger_name = 'PROPAL_CLOSE_REFUSED';     // used later in call_trigger()
2569
+            $trigger_name = 'PROPAL_CLOSE_REFUSED'; // used later in call_trigger()
2570 2570
 
2571 2571
             if ($status == self::STATUS_SIGNED) {   // Status self::STATUS_SIGNED
2572
-                $trigger_name = 'PROPAL_CLOSE_SIGNED';  // used later in call_trigger()
2572
+                $trigger_name = 'PROPAL_CLOSE_SIGNED'; // used later in call_trigger()
2573 2573
                 $modelpdf = getDolGlobalString('PROPALE_ADDON_PDF_ODT_TOBILL') ? $conf->global->PROPALE_ADDON_PDF_ODT_TOBILL : $this->model_pdf;
2574 2574
 
2575 2575
                 // The connected company is classified as a client
@@ -3100,7 +3100,7 @@  discard block
 block discarded – undo
3100 3100
                     }
3101 3101
                 }
3102 3102
                 if (file_exists($dir)) {
3103
-                    $res = @dol_delete_dir_recursive($dir);     // delete files physically + into ecm tables
3103
+                    $res = @dol_delete_dir_recursive($dir); // delete files physically + into ecm tables
3104 3104
                     if (!$res) {
3105 3105
                         $this->error = 'ErrorFailToDeleteDir';
3106 3106
                         $this->errors[] = $this->error;
Please login to merge, or discard this patch.
public/htdocs/comm/mailing/card.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
     }
472 472
 
473 473
     // Action send test emailing
474
-    if ($action == 'send' && ! $cancel && $permissiontovalidatesend) {
474
+    if ($action == 'send' && !$cancel && $permissiontovalidatesend) {
475 475
         $error = 0;
476 476
 
477 477
         $upload_dir = $conf->mailing->dir_output . "/" . get_exdir($object->id, 2, 0, 1, $object, 'mailing');
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
     if ($action == 'add' && $permissiontocreate) {
550 550
         $mesgs = array();
551 551
 
552
-        $object->messtype       = (string) GETPOST("messtype");
552
+        $object->messtype = (string) GETPOST("messtype");
553 553
         if ($object->messtype == 'sms') {
554 554
             $object->email_from     = (string) GETPOST("from_phone", 'alphawithlgt'); // Must allow 'name <email>'
555 555
         } else {
@@ -1515,7 +1515,7 @@  discard block
 block discarded – undo
1515 1515
                 $maxfilesizearray = getMaxFileSizeArray();
1516 1516
                 $maxmin = $maxfilesizearray['maxmin'];
1517 1517
                 if ($maxmin > 0) {
1518
-                    $out .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';  // MAX_FILE_SIZE must precede the field type=file
1518
+                    $out .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
1519 1519
                 }
1520 1520
                 $out .= '<input type="file" class="flat" id="addedfile" name="addedfile" value="' . $langs->trans("Upload") . '" />';
1521 1521
                 $out .= ' ';
Please login to merge, or discard this patch.
public/htdocs/comm/mailing/cibles.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
             }
395 395
         }
396 396
         if (empty($nbemail)) {
397
-            $nbemail .= ' ' . img_warning($langs->trans('ToAddRecipientsChooseHere'));//.' <span class="warning">'.$langs->trans("NoTargetYet").'</span>';
397
+            $nbemail .= ' ' . img_warning($langs->trans('ToAddRecipientsChooseHere')); //.' <span class="warning">'.$langs->trans("NoTargetYet").'</span>';
398 398
         }
399 399
         if ($text) {
400 400
             // @phan-suppress-next-line PhanPluginSuspiciousParamPosition
@@ -549,12 +549,12 @@  discard block
 block discarded – undo
549 549
                     }
550 550
                     print img_object($langs->trans("EmailingTargetSelector") . ': ' . get_class($obj), $obj->picto, 'class="valignmiddle width25 size15x"');
551 551
                     print '</div>';
552
-                    print '<div class="tagtd valignmiddle">';   //  style="height: 4em"
552
+                    print '<div class="tagtd valignmiddle">'; //  style="height: 4em"
553 553
                     print $obj->getDesc();
554 554
                     print '</div>';
555 555
 
556 556
                     try {
557
-                        $obj->evenunsubscribe = $object->evenunsubscribe;   // Set flag to include/exclude email that has opt-out.
557
+                        $obj->evenunsubscribe = $object->evenunsubscribe; // Set flag to include/exclude email that has opt-out.
558 558
 
559 559
                         $nbofrecipient = $obj->getNbOfRecipients('');
560 560
                     } catch (Exception $e) {
@@ -899,7 +899,7 @@  discard block
 block discarded – undo
899 899
                 print '<td class="center nowraponall">';
900 900
                 if ($obj->status != $object::STATUS_DRAFT) {        // If status of target line is not draft
901 901
                     // Date sent
902
-                    print $obj->date_envoi;     // @TODO Must store date in date format
902
+                    print $obj->date_envoi; // @TODO Must store date in date format
903 903
                 }
904 904
                 print '</td>';
905 905
 
Please login to merge, or discard this patch.
public/htdocs/comm/mailing/list.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 // Initialize technical objects
65 65
 $object = new Mailing($db);
66 66
 $extrafields = new ExtraFields($db);
67
-$hookmanager->initHooks(array($contextpage));   // Note that conf->hooks_modules contains array of activated contexes
67
+$hookmanager->initHooks(array($contextpage)); // Note that conf->hooks_modules contains array of activated contexes
68 68
 
69 69
 // Fetch optionals attributes and labels
70 70
 $extrafields->fetch_name_optionals_label($object->table_element);
Please login to merge, or discard this patch.
public/htdocs/comm/mailing/class/advtargetemailing.class.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
         }
266 266
     }
267 267
 
268
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
268
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
269 269
     /**
270 270
      *  Load object in memory from the database
271 271
      *
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
      */
275 275
     public function fetch_by_mailing($id = 0)
276 276
     {
277
-		// phpcs:enable
277
+        // phpcs:enable
278 278
         global $langs;
279 279
         $sql = "SELECT";
280 280
         $sql .= " t.rowid,";
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
 
328 328
 
329 329
 
330
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
330
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
331 331
     /**
332 332
      *  Load object in memory from the database
333 333
      *
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
      */
338 338
     public function fetch_by_element($id = 0, $type_element = 'mailing')
339 339
     {
340
-		// phpcs:enable
340
+        // phpcs:enable
341 341
         global $langs;
342 342
         $sql = "SELECT";
343 343
         $sql .= " t.rowid,";
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
 
520 520
 
521 521
 
522
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
522
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
523 523
     /**
524 524
      * Load object in memory from database
525 525
      *
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
      */
529 529
     public function query_thirdparty($arrayquery)
530 530
     {
531
-		// phpcs:enable
531
+        // phpcs:enable
532 532
         global $langs, $conf, $extrafields;
533 533
 
534 534
         $sql = "SELECT";
@@ -676,7 +676,7 @@  discard block
 block discarded – undo
676 676
         }
677 677
     }
678 678
 
679
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
679
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
680 680
     /**
681 681
      * Load object in memory from database
682 682
      *
@@ -686,7 +686,7 @@  discard block
 block discarded – undo
686 686
      */
687 687
     public function query_contact($arrayquery, $withThirdpartyFilter = 0)
688 688
     {
689
-		// phpcs:enable
689
+        // phpcs:enable
690 690
         global $langs, $conf;
691 691
 
692 692
         $sql = "SELECT";
Please login to merge, or discard this patch.