Completed
Branch develop (429b57)
by
unknown
20:37
created
htdocs/fourn/facture/card.php 1 patch
Spacing   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
 	// Action clone object
191 191
 	if ($action == 'confirm_clone' && $confirm == 'yes' && $permissiontoadd) {
192 192
 		$objectutil = dol_clone($object, 1); // To avoid to denaturate loaded object when setting some properties for clone. We use native clone to keep this->db valid.
193
-		'@phan-var-force FactureFournisseur $objectutil';  // Same object type for cloned object
193
+		'@phan-var-force FactureFournisseur $objectutil'; // Same object type for cloned object
194 194
 
195 195
 		if (GETPOST('newsupplierref', 'alphanohtml')) {
196 196
 			$objectutil->ref_supplier = GETPOST('newsupplierref', 'alphanohtml');
@@ -776,7 +776,7 @@  discard block
 block discarded – undo
776 776
 		$db->begin();
777 777
 
778 778
 		$error = 0;
779
-		$tmpproject = 0;  // Ensure a value
779
+		$tmpproject = 0; // Ensure a value
780 780
 
781 781
 		// Fill array 'array_options' with data from add form
782 782
 		$ret = $extrafields->setOptionalsFromPost(null, $object);
@@ -784,7 +784,7 @@  discard block
 block discarded – undo
784 784
 			$error++;
785 785
 		}
786 786
 
787
-		$dateinvoice = dol_mktime(0, 0, 0, GETPOSTINT('remonth'), GETPOSTINT('reday'), GETPOSTINT('reyear'), 'tzserver');	// If we enter the 02 january, we need to save the 02 january for server
787
+		$dateinvoice = dol_mktime(0, 0, 0, GETPOSTINT('remonth'), GETPOSTINT('reday'), GETPOSTINT('reyear'), 'tzserver'); // If we enter the 02 january, we need to save the 02 january for server
788 788
 		$datedue = dol_mktime(0, 0, 0, GETPOSTINT('echmonth'), GETPOSTINT('echday'), GETPOSTINT('echyear'), 'tzserver');
789 789
 		//var_dump($dateinvoice.' '.dol_print_date($dateinvoice, 'dayhour'));
790 790
 		//var_dump(dol_now('tzuserrel').' '.dol_get_last_hour(dol_now('tzuserrel')).' '.dol_print_date(dol_now('tzuserrel'),'dayhour').' '.dol_print_date(dol_get_last_hour(dol_now('tzuserrel')), 'dayhour'));
@@ -823,7 +823,7 @@  discard block
 block discarded – undo
823 823
 				$object->ref_supplier = GETPOST('ref_supplier', 'alpha');
824 824
 				$object->socid = GETPOSTINT('socid');
825 825
 				$object->label = GETPOST('label', 'alphanohtml');
826
-				$object->libelle = $object->label;	// deprecated
826
+				$object->libelle = $object->label; // deprecated
827 827
 				$object->date = $dateinvoice;
828 828
 				$object->date_echeance = $datedue;
829 829
 				$object->note_public = GETPOST('note_public', 'restricthtml');
@@ -897,7 +897,7 @@  discard block
 block discarded – undo
897 897
 				$object->subtype            = GETPOST('subtype', 'alphanohtml');
898 898
 				$object->socid				= GETPOSTINT('socid');
899 899
 				$object->label				= GETPOST('label', 'alphanohtml');
900
-				$object->libelle            = $object->label;  // Deprecated
900
+				$object->libelle            = $object->label; // Deprecated
901 901
 				$object->date               = $dateinvoice;
902 902
 				$object->date_echeance      = $datedue;
903 903
 				$object->note_public        = GETPOST('note_public', 'restricthtml');
@@ -1007,7 +1007,7 @@  discard block
 block discarded – undo
1007 1007
 				$object->cond_reglement_id	= (GETPOSTINT('type') == 3 ? 1 : GETPOST('cond_reglement_id'));
1008 1008
 				$object->mode_reglement_id	= GETPOSTINT('mode_reglement_id');
1009 1009
 				$object->fk_account         = GETPOSTINT('fk_account');
1010
-				$object->amount             = (float) price2num(GETPOST('amount'));  // FIXME: FactureFournisseur::$amount is deprecated and not used?
1010
+				$object->amount             = (float) price2num(GETPOST('amount')); // FIXME: FactureFournisseur::$amount is deprecated and not used?
1011 1011
 				//$object->remise_absolue		= price2num(GETPOST('remise_absolue'), 'MU');
1012 1012
 				//$object->remise_percent		= price2num(GETPOST('remise_percent'), '', 2);
1013 1013
 				$object->fk_incoterms       = GETPOSTINT('incoterm_id');
@@ -1060,28 +1060,28 @@  discard block
 block discarded – undo
1060 1060
 				$tmpproject = GETPOSTINT('projectid');
1061 1061
 
1062 1062
 				// Creation invoice
1063
-				$object->socid				= GETPOSTINT('socid');
1064
-				$object->type				= GETPOST('type', 'alphanohtml');
1065
-				$object->subtype            = GETPOSTINT('subtype');
1066
-				$object->ref				= GETPOST('ref', 'alphanohtml');
1067
-				$object->ref_supplier		= GETPOST('ref_supplier', 'alphanohtml');
1063
+				$object->socid = GETPOSTINT('socid');
1064
+				$object->type = GETPOST('type', 'alphanohtml');
1065
+				$object->subtype = GETPOSTINT('subtype');
1066
+				$object->ref = GETPOST('ref', 'alphanohtml');
1067
+				$object->ref_supplier = GETPOST('ref_supplier', 'alphanohtml');
1068 1068
 				$object->socid				= GETPOSTINT('socid');
1069 1069
 				$object->label				= GETPOST('label', 'alphanohtml');
1070
-				$object->libelle			= $object->label;	// deprecated
1071
-				$object->date				= $dateinvoice;
1072
-				$object->date_echeance		= $datedue;
1073
-				$object->note_public		= GETPOST('note_public', 'restricthtml');
1074
-				$object->note_private		= GETPOST('note_private', 'restricthtml');
1070
+				$object->libelle = $object->label; // deprecated
1071
+				$object->date = $dateinvoice;
1072
+				$object->date_echeance = $datedue;
1073
+				$object->note_public = GETPOST('note_public', 'restricthtml');
1074
+				$object->note_private = GETPOST('note_private', 'restricthtml');
1075 1075
 				$object->cond_reglement_id	= GETPOST('cond_reglement_id');
1076 1076
 				$object->mode_reglement_id	= GETPOST('mode_reglement_id');
1077 1077
 				$object->fk_account			= GETPOSTINT('fk_account');
1078 1078
 				$object->vat_reverse_charge	= GETPOST('vat_reverse_charge') == 'on' ? 1 : 0;
1079 1079
 				$object->fk_project			= ($tmpproject > 0) ? $tmpproject : null;
1080
-				$object->fk_incoterms		= GETPOSTINT('incoterm_id');
1080
+				$object->fk_incoterms = GETPOSTINT('incoterm_id');
1081 1081
 				$object->location_incoterms	= GETPOST('location_incoterms', 'alpha');
1082 1082
 				$object->multicurrency_code	= GETPOST('multicurrency_code', 'alpha');
1083
-				$object->multicurrency_tx	= GETPOSTINT('originmulticurrency_tx');
1084
-				$object->transport_mode_id	= GETPOSTINT('transport_mode_id');
1083
+				$object->multicurrency_tx = GETPOSTINT('originmulticurrency_tx');
1084
+				$object->transport_mode_id = GETPOSTINT('transport_mode_id');
1085 1085
 
1086 1086
 				// Auto calculation of date due if not filled by user
1087 1087
 				if (empty($object->date_echeance)) {
@@ -1293,7 +1293,7 @@  discard block
 block discarded – undo
1293 1293
 									0,
1294 1294
 									$object->lines[0]->date_start,
1295 1295
 									$object->lines[0]->date_end,
1296
-									array(),  // array_options
1296
+									array(), // array_options
1297 1297
 									0,
1298 1298
 									0,
1299 1299
 									'',
@@ -1425,7 +1425,7 @@  discard block
 block discarded – undo
1425 1425
 		// Edit line
1426 1426
 		$db->begin();
1427 1427
 
1428
-		if (! $object->fetch($id) > 0) {
1428
+		if (!$object->fetch($id) > 0) {
1429 1429
 			dol_print_error($db);
1430 1430
 		}
1431 1431
 		$object->fetch_thirdparty();
@@ -1578,7 +1578,7 @@  discard block
 block discarded – undo
1578 1578
 			$idprod = GETPOSTINT('idprod');
1579 1579
 		}
1580 1580
 
1581
-		$tva_tx = (GETPOST('tva_tx') ? GETPOST('tva_tx') : 0);		// Can be '1.2' or '1.2 (CODE)'
1581
+		$tva_tx = (GETPOST('tva_tx') ? GETPOST('tva_tx') : 0); // Can be '1.2' or '1.2 (CODE)'
1582 1582
 
1583 1583
 		$price_ht = price2num(GETPOST('price_ht'), 'MU', 2);
1584 1584
 		$price_ht_devise = price2num(GETPOST('multicurrency_price_ht'), 'CU', 2);
@@ -2074,7 +2074,7 @@  discard block
 block discarded – undo
2074 2074
 // Mode creation
2075 2075
 if ($action == 'create') {
2076 2076
 	$facturestatic = new FactureFournisseur($db);
2077
-	$selectedLines = array();  // Ensure initialised
2077
+	$selectedLines = array(); // Ensure initialised
2078 2078
 
2079 2079
 	print load_fiche_titre($langs->trans('NewSupplierInvoice'), '', 'supplier_invoice');
2080 2080
 
@@ -2268,7 +2268,7 @@  discard block
 block discarded – undo
2268 2268
 	print '<form name="add" action="'.$_SERVER["PHP_SELF"].'" method="post">';
2269 2269
 	print '<input type="hidden" name="token" value="'.newToken().'">';
2270 2270
 	print '<input type="hidden" name="action" value="add">';
2271
-	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
2271
+	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
2272 2272
 
2273 2273
 	if (!empty($societe->id) && $societe->id > 0) {
2274 2274
 		print '<input type="hidden" name="socid" value="'.$societe->id.'">'."\n";
@@ -2352,7 +2352,7 @@  discard block
 block discarded – undo
2352 2352
 
2353 2353
 			$sql = 'SELECT r.rowid, r.titre as title, r.total_ttc';
2354 2354
 			$sql .= ' FROM '.MAIN_DB_PREFIX.'facture_fourn_rec as r';
2355
-			$sql .= ' WHERE r.fk_soc = '. (int) $invoice_predefined->socid;
2355
+			$sql .= ' WHERE r.fk_soc = '.(int) $invoice_predefined->socid;
2356 2356
 
2357 2357
 			$resql = $db->query($sql);
2358 2358
 			if ($resql) {
@@ -2419,7 +2419,7 @@  discard block
 block discarded – undo
2419 2419
 			// Deposit - Down payment
2420 2420
 			if (!getDolGlobalString('INVOICE_DISABLE_DEPOSIT')) {
2421 2421
 				print '<div class="tagtr listofinvoicetype"><div class="tagtd listofinvoicetype">';
2422
-				$tmp = '<input type="radio" id="radio_deposit" name="type" value="3"' . (GETPOSTINT('type') == 3 ? ' checked' : '') . '> ';
2422
+				$tmp = '<input type="radio" id="radio_deposit" name="type" value="3"'.(GETPOSTINT('type') == 3 ? ' checked' : '').'> ';
2423 2423
 				print '<script type="text/javascript">
2424 2424
 				jQuery(document).ready(function() {
2425 2425
 					jQuery("#typestandardinvoice, #valuestandardinvoice").click(function() {
@@ -2466,7 +2466,7 @@  discard block
 block discarded – undo
2466 2466
 					print $form->selectarray('typedeposit', $arraylist, GETPOST('typedeposit', 'aZ09'), 0, 0, 0, '', 1);
2467 2467
 					print '</td>';
2468 2468
 					print '<td class="nowrap" style="padding-left: 5px">';
2469
-					print '<span class="opacitymedium paddingleft">'.$langs->trans("AmountOrPercent").'</span><input type="text" id="valuedeposit" name="valuedeposit" class="width75 right" value="' . GETPOSTINT('valuedeposit') . '"/>';
2469
+					print '<span class="opacitymedium paddingleft">'.$langs->trans("AmountOrPercent").'</span><input type="text" id="valuedeposit" name="valuedeposit" class="width75 right" value="'.GETPOSTINT('valuedeposit').'"/>';
2470 2470
 					print '</td>';
2471 2471
 				}
2472 2472
 				print '</tr></table>';
@@ -2716,8 +2716,8 @@  discard block
 block discarded – undo
2716 2716
 
2717 2717
 		// Vat reverse-charge by default
2718 2718
 		if (getDolGlobalString('ACCOUNTING_FORCE_ENABLE_VAT_REVERSE_CHARGE')) {
2719
-			require_once DOL_DOCUMENT_ROOT . '/core/lib/company.lib.php';
2720
-			print '<tr><td>' . $langs->trans('VATReverseCharge') . '</td><td>';
2719
+			require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
2720
+			print '<tr><td>'.$langs->trans('VATReverseCharge').'</td><td>';
2721 2721
 			// Try to propose to use VAT reverse charge even if the VAT reverse charge is not activated in the supplier card, if this corresponds to the context of use, the activation is proposed
2722 2722
 			if ($vat_reverse_charge == 1 || $societe->vat_reverse_charge == 1 || ($societe->country_code != 'FR' && isInEEC($societe) && !empty($societe->tva_intra))) {
2723 2723
 				$vat_reverse_charge = 1;
@@ -2725,7 +2725,7 @@  discard block
 block discarded – undo
2725 2725
 				$vat_reverse_charge = 0;
2726 2726
 			}
2727 2727
 
2728
-			print '<input type="checkbox" name="vat_reverse_charge"'. (!empty($vat_reverse_charge) ? ' checked ' : '') . '>';
2728
+			print '<input type="checkbox" name="vat_reverse_charge"'.(!empty($vat_reverse_charge) ? ' checked ' : '').'>';
2729 2729
 			print '</td></tr>';
2730 2730
 		}
2731 2731
 
@@ -3295,7 +3295,7 @@  discard block
 block discarded – undo
3295 3295
 					$facavoir->fetch($id);
3296 3296
 					$invoicecredits[] = $facavoir->getNomUrl(1);
3297 3297
 				}
3298
-				print ' <span class="opacitymediumbycolor paddingleft">'.$langs->transnoentities("InvoiceHasAvoir") . (count($invoicecredits) ? ' ' : '') . implode(',', $invoicecredits);
3298
+				print ' <span class="opacitymediumbycolor paddingleft">'.$langs->transnoentities("InvoiceHasAvoir").(count($invoicecredits) ? ' ' : '').implode(',', $invoicecredits);
3299 3299
 				print '</span>';
3300 3300
 			}
3301 3301
 			if (isset($objectidnext) && $objectidnext > 0) {
@@ -3491,12 +3491,12 @@  discard block
 block discarded – undo
3491 3491
 					print '<input type="hidden" name="action" value="setvatreversecharge">';
3492 3492
 					print '<input type="hidden" name="token" value="'.newToken().'">';
3493 3493
 
3494
-					print '<input type="checkbox" name="vat_reverse_charge"' . ($object->vat_reverse_charge == '1' ? ' checked ' : '') . '>';
3494
+					print '<input type="checkbox" name="vat_reverse_charge"'.($object->vat_reverse_charge == '1' ? ' checked ' : '').'>';
3495 3495
 
3496 3496
 					print '<input type="submit" class="button valignmiddle" value="'.$langs->trans("Modify").'">';
3497 3497
 					print '</form>';
3498 3498
 				} else {
3499
-					print '<input type="checkbox" name="vat_reverse_charge"'. ($object->vat_reverse_charge == '1' ? ' checked ' : '') . ' disabled>';
3499
+					print '<input type="checkbox" name="vat_reverse_charge"'.($object->vat_reverse_charge == '1' ? ' checked ' : '').' disabled>';
3500 3500
 				}
3501 3501
 				print '</td></tr>';
3502 3502
 			}
@@ -3562,15 +3562,15 @@  discard block
 block discarded – undo
3562 3562
 			print '<table class="border tableforfield centpercent">';
3563 3563
 
3564 3564
 			print '<tr>';
3565
-			print '<td class="titlefieldmiddle">' . $langs->trans('AmountHT') . '</td>';
3566
-			print '<td class="nowrap amountcard right">' . price($object->total_ht, 0, $langs, 0, -1, -1, $conf->currency) . '</td>';
3565
+			print '<td class="titlefieldmiddle">'.$langs->trans('AmountHT').'</td>';
3566
+			print '<td class="nowrap amountcard right">'.price($object->total_ht, 0, $langs, 0, -1, -1, $conf->currency).'</td>';
3567 3567
 			if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) {
3568
-				print '<td class="nowrap amountcard right">' . price($object->multicurrency_total_ht, 0, $langs, 0, -1, -1, $object->multicurrency_code) . '</td>';
3568
+				print '<td class="nowrap amountcard right">'.price($object->multicurrency_total_ht, 0, $langs, 0, -1, -1, $object->multicurrency_code).'</td>';
3569 3569
 			}
3570 3570
 			print '</tr>';
3571 3571
 
3572 3572
 			print '<tr>';
3573
-			print '<td>' . $langs->trans('AmountVAT') . '</td>';
3573
+			print '<td>'.$langs->trans('AmountVAT').'</td>';
3574 3574
 			print '<td class="nowrap amountcard right">';
3575 3575
 			if (GETPOST('calculationrule')) {
3576 3576
 				$calculationrule = GETPOST('calculationrule', 'alpha');
@@ -3584,40 +3584,40 @@  discard block
 block discarded – undo
3584 3584
 			}
3585 3585
 			// Show link for "recalculate"
3586 3586
 			if ($object->getVentilExportCompta() == 0) {
3587
-				$s = '<span class="hideonsmartphone opacitymedium">' . $langs->trans("ReCalculate") . ' </span>';
3588
-				$s .= '<a href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&action=calculate&calculationrule=totalofround">' . $langs->trans("Mode1") . '</a>';
3587
+				$s = '<span class="hideonsmartphone opacitymedium">'.$langs->trans("ReCalculate").' </span>';
3588
+				$s .= '<a href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=calculate&calculationrule=totalofround">'.$langs->trans("Mode1").'</a>';
3589 3589
 				$s .= ' / ';
3590
-				$s .= '<a href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&action=calculate&calculationrule=roundoftotal">' . $langs->trans("Mode2") . '</a>';
3590
+				$s .= '<a href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=calculate&calculationrule=roundoftotal">'.$langs->trans("Mode2").'</a>';
3591 3591
 				print '<div class="inline-block">';
3592
-				print $form->textwithtooltip($s, $langs->trans("CalculationRuleDesc", $calculationrulenum) . '<br>' . $langs->trans("CalculationRuleDescSupplier"), 2, 1, img_picto('', 'help'), '', 3, '', 0, 'recalculate');
3592
+				print $form->textwithtooltip($s, $langs->trans("CalculationRuleDesc", $calculationrulenum).'<br>'.$langs->trans("CalculationRuleDescSupplier"), 2, 1, img_picto('', 'help'), '', 3, '', 0, 'recalculate');
3593 3593
 				print '&nbsp; &nbsp; &nbsp; &nbsp;';
3594 3594
 				print '</div>';
3595 3595
 			}
3596 3596
 			print price($object->total_tva, 1, $langs, 0, -1, -1, $conf->currency);
3597 3597
 			print '</td>';
3598 3598
 			if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) {
3599
-				print '<td class="nowrap amountcard right">' . price($object->multicurrency_total_tva, 0, $langs, 0, -1, -1, $object->multicurrency_code) . '</td>';
3599
+				print '<td class="nowrap amountcard right">'.price($object->multicurrency_total_tva, 0, $langs, 0, -1, -1, $object->multicurrency_code).'</td>';
3600 3600
 			}
3601 3601
 			print '</tr>';
3602 3602
 
3603 3603
 			if ($societe->localtax1_assuj == "1") { //Localtax1
3604 3604
 				print '<tr>';
3605
-				print '<td>' . $langs->transcountry("AmountLT1", $societe->country_code) . '</td>';
3606
-				print '<td class="nowrap amountcard right">' . price($object->total_localtax1, 1, $langs, 0, -1, -1, $conf->currency) . '</td>';
3605
+				print '<td>'.$langs->transcountry("AmountLT1", $societe->country_code).'</td>';
3606
+				print '<td class="nowrap amountcard right">'.price($object->total_localtax1, 1, $langs, 0, -1, -1, $conf->currency).'</td>';
3607 3607
 				print '</tr>';
3608 3608
 			}
3609 3609
 			if ($societe->localtax2_assuj == "1") { //Localtax2
3610 3610
 				print '<tr>';
3611
-				print '<td>' . $langs->transcountry("AmountLT2", $societe->country_code) . '</td>';
3612
-				print '<td class="nowrap amountcard right">' . price($object->total_localtax2, 1, $langs, 0, -1, -1, $conf->currency) . '</td>';
3611
+				print '<td>'.$langs->transcountry("AmountLT2", $societe->country_code).'</td>';
3612
+				print '<td class="nowrap amountcard right">'.price($object->total_localtax2, 1, $langs, 0, -1, -1, $conf->currency).'</td>';
3613 3613
 				print '</tr>';
3614 3614
 			}
3615 3615
 
3616 3616
 			print '<tr>';
3617
-			print '<td>' . $langs->trans('AmountTTC') . '</td>';
3618
-			print '<td class="nowrap amountcard right">' . price($object->total_ttc, 0, $langs, 0, -1, -1, $conf->currency) . '</td>';
3617
+			print '<td>'.$langs->trans('AmountTTC').'</td>';
3618
+			print '<td class="nowrap amountcard right">'.price($object->total_ttc, 0, $langs, 0, -1, -1, $conf->currency).'</td>';
3619 3619
 			if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) {
3620
-				print '<td class="nowrap amountcard right">' . price($object->multicurrency_total_ttc, 0, $langs, 0, -1, -1, $object->multicurrency_code) . '</td>';
3620
+				print '<td class="nowrap amountcard right">'.price($object->multicurrency_total_ttc, 0, $langs, 0, -1, -1, $object->multicurrency_code).'</td>';
3621 3621
 			}
3622 3622
 			print '</tr>';
3623 3623
 
@@ -4161,7 +4161,7 @@  discard block
 block discarded – undo
4161 4161
 				}
4162 4162
 
4163 4163
 				// Clone as predefined / Create template
4164
-				if (($object->type ==  FactureFournisseur::TYPE_STANDARD || $object->type == FactureFournisseur::TYPE_DEPOSIT) && $object->status == 0 && $usercancreate) {
4164
+				if (($object->type == FactureFournisseur::TYPE_STANDARD || $object->type == FactureFournisseur::TYPE_DEPOSIT) && $object->status == 0 && $usercancreate) {
4165 4165
 					if (!$objectidnext && count($object->lines) > 0) {
4166 4166
 						print '<a class="butAction" href="'.DOL_URL_ROOT.'/fourn/facture/card-rec.php?facid='.$object->id.'&action=create">'.$langs->trans("ChangeIntoRepeatableInvoice").'</a>';
4167 4167
 					}
Please login to merge, or discard this patch.
htdocs/mrp/mo_list.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 $object = new Mo($db);
73 73
 $extrafields = new ExtraFields($db);
74 74
 $diroutputmassaction = $conf->mrp->dir_output.'/temp/massgeneration/'.$user->id;
75
-$hookmanager->initHooks(array($contextpage)); 	// Note that conf->hooks_modules contains array of activated contexes
75
+$hookmanager->initHooks(array($contextpage)); // Note that conf->hooks_modules contains array of activated contexes
76 76
 
77 77
 // Fetch optionals attributes and labels
78 78
 $extrafields->fetch_name_optionals_label($object->table_element);
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
 }
484 484
 
485 485
 $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
486
-$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN'));  // This also change content of $arrayfields with user setup
486
+$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup
487 487
 $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : '');
488 488
 $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
489 489
 
Please login to merge, or discard this patch.
htdocs/core/tpl/objectline_title.tpl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@
 block discarded – undo
150 150
 if (isset($this->situation_cycle_ref) && $this->situation_cycle_ref) {
151 151
 	print '<th class="linecolcycleref right">'.$langs->trans('Progress').'</th>';
152 152
 	if (getDolGlobalInt('INVOICE_USE_SITUATION') == 2) {
153
-		print '<th class="linecolcycleref2 right">' . $langs->trans('SituationInvoiceProgressCurrent') . '</th>';
153
+		print '<th class="linecolcycleref2 right">'.$langs->trans('SituationInvoiceProgressCurrent').'</th>';
154 154
 	}
155 155
 	print '<th class="linecolcycleref2 right">'.$form->textwithpicto($langs->trans('TotalHT100Short'), $langs->trans('UnitPriceXQtyLessDiscount')).'</th>';
156 156
 }
Please login to merge, or discard this patch.
htdocs/core/tpl/objectline_edit.tpl.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
 
310 310
 			print '<td class="nowrap right linecolcycleref"><input class="right" type="text" size="1" value="'.$fieldv.'" name="progress">%</td>';
311 311
 		} else {
312
-			print '<td class="nowrap right linecolcycleref"><input class="right" type="text" size="1" value="' . (GETPOSTISSET('progress') ? GETPOST('progress') : $line->situation_percent) . '" name="progress">%</td>';
312
+			print '<td class="nowrap right linecolcycleref"><input class="right" type="text" size="1" value="'.(GETPOSTISSET('progress') ? GETPOST('progress') : $line->situation_percent).'" name="progress">%</td>';
313 313
 		}
314 314
 		$coldisplay++;
315 315
 		print '<td></td>';
@@ -407,16 +407,16 @@  discard block
 block discarded – undo
407 407
 	}
408 408
 	if (!$line->date_start) {
409 409
 		if (isset($conf->global->MAIN_DEFAULT_DATE_START_HOUR)) {
410
-			print 'jQuery("#date_starthour").val("' . getDolGlobalString('MAIN_DEFAULT_DATE_START_HOUR').'");';
410
+			print 'jQuery("#date_starthour").val("'.getDolGlobalString('MAIN_DEFAULT_DATE_START_HOUR').'");';
411 411
 		}
412 412
 
413 413
 
414 414
 		if (isset($conf->global->MAIN_DEFAULT_DATE_START_MIN)) {
415
-			print 'jQuery("#date_startmin").val("' . getDolGlobalString('MAIN_DEFAULT_DATE_START_MIN').'");';
415
+			print 'jQuery("#date_startmin").val("'.getDolGlobalString('MAIN_DEFAULT_DATE_START_MIN').'");';
416 416
 		}
417 417
 
418 418
 		$res = $line->fetch_product();
419
-		if ($res  > 0) {
419
+		if ($res > 0) {
420 420
 			if ($line->product->isMandatoryPeriod() && $line->product->isService()) {
421 421
 				print  'jQuery("#date_start").addClass("error");';
422 422
 			}
@@ -424,15 +424,15 @@  discard block
 block discarded – undo
424 424
 	}
425 425
 	if (!$line->date_end) {
426 426
 		if (isset($conf->global->MAIN_DEFAULT_DATE_END_HOUR)) {
427
-			print 'jQuery("#date_endhour").val("' . getDolGlobalString('MAIN_DEFAULT_DATE_END_HOUR').'");';
427
+			print 'jQuery("#date_endhour").val("'.getDolGlobalString('MAIN_DEFAULT_DATE_END_HOUR').'");';
428 428
 		}
429 429
 		if (isset($conf->global->MAIN_DEFAULT_DATE_END_MIN)) {
430
-			print 'jQuery("#date_endmin").val("' . getDolGlobalString('MAIN_DEFAULT_DATE_END_MIN').'");';
430
+			print 'jQuery("#date_endmin").val("'.getDolGlobalString('MAIN_DEFAULT_DATE_END_MIN').'");';
431 431
 		}
432 432
 
433 433
 		$res = $line->fetch_product();
434 434
 		// on doit fetch le product là !!! pour connaître le type
435
-		if ($res  > 0) {
435
+		if ($res > 0) {
436 436
 			if ($line->product->isMandatoryperiod() && $line->product->isService()) {
437 437
 				print  'jQuery("#date_end").addClass("error");';
438 438
 			}
Please login to merge, or discard this patch.
dev/tools/phan/config_extended.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -64,33 +64,33 @@
 block discarded – undo
64 64
 		// Dolibarr uses a lot of internal deprecated stuff, not reporting
65 65
 		'PhanDeprecatedProperty',
66 66
 
67
-		'PhanCompatibleNegativeStringOffset',	// return false positive
68
-		'PhanPluginConstantVariableBool',		// a lot of false positive, in most cases, we want to keep the code as it is
69
-		'PhanTypeInvalidDimOffset',				// this option costs more time to be supported than it solves time
67
+		'PhanCompatibleNegativeStringOffset', // return false positive
68
+		'PhanPluginConstantVariableBool', // a lot of false positive, in most cases, we want to keep the code as it is
69
+		'PhanTypeInvalidDimOffset', // this option costs more time to be supported than it solves time
70 70
 		'PhanTypeObjectUnsetDeclaredProperty',
71
-		'PhanTypePossiblyInvalidDimOffset',		// a lot of false positive, in most cases, we want to keep the code as it is
71
+		'PhanTypePossiblyInvalidDimOffset', // a lot of false positive, in most cases, we want to keep the code as it is
72 72
 
73
-		'PhanPluginWhitespaceTab',		// Dolibarr used tabs
74
-		'PhanPluginCanUsePHP71Void',	// Dolibarr is maintaining 7.0 compatibility
75
-		'PhanPluginShortArray',			// Dolibarr uses array()
76
-		'PhanPluginShortArrayList',		// Dolibarr uses array()
73
+		'PhanPluginWhitespaceTab', // Dolibarr used tabs
74
+		'PhanPluginCanUsePHP71Void', // Dolibarr is maintaining 7.0 compatibility
75
+		'PhanPluginShortArray', // Dolibarr uses array()
76
+		'PhanPluginShortArrayList', // Dolibarr uses array()
77 77
 		// Fixers From PHPDocToRealTypesPlugin:
78
-		'PhanPluginCanUseParamType',			// Fixer - Report/Add types in the function definition (function abc(string $var) (adds string)
79
-		'PhanPluginCanUseReturnType',			// Fixer - Report/Add return types in the function definition (function abc(string $var) (adds string)
80
-		'PhanPluginCanUseNullableParamType',	// Fixer - Report/Add nullable parameter types in the function definition
81
-		'PhanPluginCanUseNullableReturnType',	// Fixer - Report/Add nullable return types in the function definition
78
+		'PhanPluginCanUseParamType', // Fixer - Report/Add types in the function definition (function abc(string $var) (adds string)
79
+		'PhanPluginCanUseReturnType', // Fixer - Report/Add return types in the function definition (function abc(string $var) (adds string)
80
+		'PhanPluginCanUseNullableParamType', // Fixer - Report/Add nullable parameter types in the function definition
81
+		'PhanPluginCanUseNullableReturnType', // Fixer - Report/Add nullable return types in the function definition
82 82
 
83
-		'PhanPluginNonBoolBranch',			// Not essential - 31240+ occurrences
84
-		'PhanPluginNumericalComparison',	// Not essential - 19870+ occurrences
85
-		'PhanTypeMismatchArgument',			// Not essential - 12300+ occurrences
86
-		'PhanPluginNonBoolInLogicalArith',	// Not essential - 11040+ occurrences
87
-		'PhanPluginConstantVariableScalar',	// Not essential - 5180+ occurrences
83
+		'PhanPluginNonBoolBranch', // Not essential - 31240+ occurrences
84
+		'PhanPluginNumericalComparison', // Not essential - 19870+ occurrences
85
+		'PhanTypeMismatchArgument', // Not essential - 12300+ occurrences
86
+		'PhanPluginNonBoolInLogicalArith', // Not essential - 11040+ occurrences
87
+		'PhanPluginConstantVariableScalar', // Not essential - 5180+ occurrences
88 88
 		'PhanPluginDuplicateAdjacentStatement',
89
-		'PhanPluginDuplicateConditionalTernaryDuplication',		// 2750+ occurrences
90
-		'PhanPluginDuplicateConditionalNullCoalescing',	// Not essential - 990+ occurrences
91
-		'PhanPluginRedundantAssignmentInGlobalScope',	// Not essential, a lot of false warning
92
-		'PhanPluginRedundantAssignment',				// Not essential, useless
93
-		'PhanPluginDuplicateCatchStatementBody',  // Requires PHP7.1 - 50+ occurrences
89
+		'PhanPluginDuplicateConditionalTernaryDuplication', // 2750+ occurrences
90
+		'PhanPluginDuplicateConditionalNullCoalescing', // Not essential - 990+ occurrences
91
+		'PhanPluginRedundantAssignmentInGlobalScope', // Not essential, a lot of false warning
92
+		'PhanPluginRedundantAssignment', // Not essential, useless
93
+		'PhanPluginDuplicateCatchStatementBody', // Requires PHP7.1 - 50+ occurrences
94 94
 ];
95 95
 
96 96
 return $config;
Please login to merge, or discard this patch.
dev/tools/phan/config.php 1 patch
Spacing   +74 added lines, -74 removed lines patch added patch discarded remove patch
@@ -83,12 +83,12 @@  discard block
 block discarded – undo
83 83
 	'bom' => 'Bom',
84 84
 	'bookcal' => 'BookCal',
85 85
 	'bookmark' => 'Bookmark',
86
-	'cashdesk' => null,  // TODO: fill in proper class
86
+	'cashdesk' => null, // TODO: fill in proper class
87 87
 	'category' => 'Categorie',
88 88
 	'clicktodial' => 'ClickToDial',
89 89
 	'collab' => 'Collab',
90 90
 	'comptabilite' => 'Comptabilite',
91
-	'contact' => null,  // TODO: fill in proper class
91
+	'contact' => null, // TODO: fill in proper class
92 92
 	'contract' => 'Contrat',
93 93
 	'cron' => 'Cron',
94 94
 	'datapolicy' => 'DataPolicy',
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	'don' => 'Don',
101 101
 	'dynamicprices' => 'DynamicPrices',
102 102
 	'ecm' => 'ECM',
103
-	'ecotax' => null,  // TODO: External module ?
103
+	'ecotax' => null, // TODO: External module ?
104 104
 	'emailcollector' => 'EmailCollector',
105 105
 	'eventorganization' => 'EventOrganization',
106 106
 	'expensereport' => 'ExpenseReport',
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 	'fournisseur' => 'Fournisseur',
112 112
 	'ftp' => 'FTP',
113 113
 	'geoipmaxmind' => 'GeoIPMaxmind',
114
-	'google' => null,  // External ?
114
+	'google' => null, // External ?
115 115
 	'gravatar' => 'Gravatar',
116 116
 	'holiday' => 'Holiday',
117 117
 	'hrm' => 'HRM',
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 	'ldap' => 'Ldap',
126 126
 	'loan' => 'Loan',
127 127
 	'mailing' => 'Mailing',
128
-	'mailman' => null,  // Same module as mailmanspip -> MailmanSpip ??
128
+	'mailman' => null, // Same module as mailmanspip -> MailmanSpip ??
129 129
 	'mailmanspip' => 'MailmanSpip',
130 130
 	'margin' => 'Margin',
131 131
 	'member' => 'Adherent',
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 	'notification' => 'Notification',
139 139
 	'numberwords' => null, // Not provided by default, no module tests
140 140
 	'oauth' => 'Oauth',
141
-	'openstreetmap' => null,  // External module?
141
+	'openstreetmap' => null, // External module?
142 142
 	'opensurvey' => 'OpenSurvey',
143 143
 	'order' => 'Commande',
144 144
 	'partnership' => 'Partnership',
@@ -165,8 +165,8 @@  discard block
 block discarded – undo
165 165
 	'stock' => 'Stock',
166 166
 	'stocktransfer' => 'StockTransfer',
167 167
 	'stripe' => 'Stripe',
168
-	'supplier_invoice' => null,  // Special case, uses invoice
169
-	'supplier_order' => null,  // Special case, uses invoice
168
+	'supplier_invoice' => null, // Special case, uses invoice
169
+	'supplier_order' => null, // Special case, uses invoice
170 170
 	'supplier_proposal' => 'SupplierProposal',
171 171
 	'syslog' => 'Syslog',
172 172
 	'takepos' => 'TakePos',
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
 	//	'processes' => 6,
229 229
 	'backward_compatibility_checks' => false,
230 230
 	'simplify_ast' => true,
231
-	'analyzed_file_extensions' => ['php','inc'],
231
+	'analyzed_file_extensions' => ['php', 'inc'],
232 232
 	'globals_type_map' => [
233 233
 		'action' => 'string',
234 234
 		'actioncode' => 'string',
@@ -273,12 +273,12 @@  discard block
 block discarded – undo
273 273
 		'menumanager' => '\MenuManager',
274 274
 		'mysoc' => '\Societe',
275 275
 		'nblines' => '\int',
276
-		'obj' => '\CommonObject',     // Deprecated
276
+		'obj' => '\CommonObject', // Deprecated
277 277
 		'object_rights' => 'int|stdClass',
278 278
 		'objectoffield' => '\CommonObject',
279 279
 		'senderissupplier' => 'int<0,2>',
280 280
 		'user' => '\User',
281
-		'website' => 'string',  // See discussion https://github.com/Dolibarr/dolibarr/pull/28891#issuecomment-2002268334  // Disable because Phan infers Website type
281
+		'website' => 'string', // See discussion https://github.com/Dolibarr/dolibarr/pull/28891#issuecomment-2002268334  // Disable because Phan infers Website type
282 282
 		'websitepage' => '\WebSitePage',
283 283
 		'websitepagefile' => 'string',
284 284
 		// 'object' => '\CommonObject',  // Deprecated, not enabled because conflicts with $object assignments
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
 	// your application should be included in this list.
303 303
 	'directory_list' => [
304 304
 		'htdocs',
305
-		PHAN_DIR . '/stubs/',
305
+		PHAN_DIR.'/stubs/',
306 306
 	],
307 307
 
308 308
 	// A directory list that defines files that will be excluded
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
 		'htdocs/includes/',
321 321
 		'htdocs/install/doctemplates/websites/',
322 322
 		'htdocs/core/class/lessc.class.php', // External library
323
-		PHAN_DIR . '/stubs/',
323
+		PHAN_DIR.'/stubs/',
324 324
 	],
325 325
 	//'exclude_file_regex' => '@^vendor/.*/(tests?|Tests?)/@',
326 326
 	'exclude_file_regex' => '@^('  // @phpstan-ignore-line
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
 		.'|htdocs/includes/stripe/.*'  // @phpstan-ignore-line
336 336
 		.'|htdocs/conf/conf.php'  // @phpstan-ignore-line
337 337
 		// .'|htdocs/[^h].*/.*'  // For testing @phpstan-ignore-line
338
-		.')@',  // @phpstan-ignore-line
338
+		.')@', // @phpstan-ignore-line
339 339
 
340 340
 	// A list of plugin files to execute.
341 341
 	// Plugins which are bundled with Phan can be added here by providing their name
@@ -351,14 +351,14 @@  discard block
 block discarded – undo
351 351
 		'/^isModEnabled$/' => [0, $moduleNameRegex, 'UnknownModuleName'],
352 352
 		// Note: trick to have different key for same regex:
353 353
 		'/^isModEnable[d]$/' => [0, $deprecatedModuleNameRegex, "DeprecatedModuleName"],
354
-		'/^sanitizeVal$/' => [1, $sanitizeRegex,"UnknownSanitizeType"],
355
-		'/^checkVal$/' => [1, $sanitizeRegex,"UnknownCheckValSanitizeType"],
356
-		'/^\\\\ExtraFields::addExtraField$/' => [2, $extraFieldTypeRegex,"UnknownExtrafieldTypeBack"],
357
-		'/^dol_now$/' => [0, '{^(?:auto|gmt|tz(?:server|ref|user(?:rel)?))$}',"InvalidDolNowArgument"],  // '', 0, 1 match bool and int values
358
-		'/^dol_mktime$/' => [6, '{^(?:|0|1|auto|gmt|tz(?:server|ref|user(?:rel)?|,[+a-zA-Z-/]+))$}',"InvalidDolMktimeArgument"],  // '', 0, 1 match bool and int values
359
-		'/^dol_print_date$/' => [2, '{^(?:|0|1|auto|gmt|tz(?:server|user(?:rel)?))$}',"InvalidDolMktimeArgument"],
360
-		'/^GETPOSTFLOAT$/' => [1, '{^(?:|M[UTS]|C[UT]|\d+)$}',"InvalidGetPostFloatRounding"],
361
-		'/^price2num$/' => [1, '{^(?:|M[UTS]|C[UT]|\d+)$}',"InvalidPrice2NumRounding"],
354
+		'/^sanitizeVal$/' => [1, $sanitizeRegex, "UnknownSanitizeType"],
355
+		'/^checkVal$/' => [1, $sanitizeRegex, "UnknownCheckValSanitizeType"],
356
+		'/^\\\\ExtraFields::addExtraField$/' => [2, $extraFieldTypeRegex, "UnknownExtrafieldTypeBack"],
357
+		'/^dol_now$/' => [0, '{^(?:auto|gmt|tz(?:server|ref|user(?:rel)?))$}', "InvalidDolNowArgument"], // '', 0, 1 match bool and int values
358
+		'/^dol_mktime$/' => [6, '{^(?:|0|1|auto|gmt|tz(?:server|ref|user(?:rel)?|,[+a-zA-Z-/]+))$}', "InvalidDolMktimeArgument"], // '', 0, 1 match bool and int values
359
+		'/^dol_print_date$/' => [2, '{^(?:|0|1|auto|gmt|tz(?:server|user(?:rel)?))$}', "InvalidDolMktimeArgument"],
360
+		'/^GETPOSTFLOAT$/' => [1, '{^(?:|M[UTS]|C[UT]|\d+)$}', "InvalidGetPostFloatRounding"],
361
+		'/^price2num$/' => [1, '{^(?:|M[UTS]|C[UT]|\d+)$}', "InvalidPrice2NumRounding"],
362 362
 	],
363 363
 	'plugins' => [
364 364
 		__DIR__.'/plugins/NoVarDumpPlugin.php',
@@ -419,38 +419,38 @@  discard block
 block discarded – undo
419 419
 		// Dolibarr uses a lot of internal deprecated stuff, not reporting
420 420
 		'PhanDeprecatedProperty',
421 421
 
422
-		'PhanCompatibleNegativeStringOffset',	// return false positive
423
-		'PhanPluginConstantVariableBool',		// a lot of false positive, in most cases, we want to keep the code as it is
424
-		'PhanTypeInvalidDimOffset',				// this option costs more time to be supported than it solves time
422
+		'PhanCompatibleNegativeStringOffset', // return false positive
423
+		'PhanPluginConstantVariableBool', // a lot of false positive, in most cases, we want to keep the code as it is
424
+		'PhanTypeInvalidDimOffset', // this option costs more time to be supported than it solves time
425 425
 		'PhanTypeObjectUnsetDeclaredProperty',
426
-		'PhanTypePossiblyInvalidDimOffset',		// a lot of false positive, in most cases, we want to keep the code as it is
426
+		'PhanTypePossiblyInvalidDimOffset', // a lot of false positive, in most cases, we want to keep the code as it is
427 427
 
428
-		'PhanPluginWhitespaceTab',		// Dolibarr used tabs
429
-		'PhanPluginCanUsePHP71Void',	// Dolibarr is maintaining 7.0 compatibility
430
-		'PhanPluginShortArray',			// Dolibarr uses array()
431
-		'PhanPluginShortArrayList',		// Dolibarr uses array()
428
+		'PhanPluginWhitespaceTab', // Dolibarr used tabs
429
+		'PhanPluginCanUsePHP71Void', // Dolibarr is maintaining 7.0 compatibility
430
+		'PhanPluginShortArray', // Dolibarr uses array()
431
+		'PhanPluginShortArrayList', // Dolibarr uses array()
432 432
 		// Fixers From PHPDocToRealTypesPlugin:
433
-		'PhanPluginCanUseParamType',			// Fixer - Report/Add types in the function definition (function abc(string $var) (adds string)
434
-		'PhanPluginCanUseReturnType',			// Fixer - Report/Add return types in the function definition (function abc(string $var) (adds string)
435
-		'PhanPluginCanUseNullableParamType',	// Fixer - Report/Add nullable parameter types in the function definition
436
-		'PhanPluginCanUseNullableReturnType',	// Fixer - Report/Add nullable return types in the function definition
433
+		'PhanPluginCanUseParamType', // Fixer - Report/Add types in the function definition (function abc(string $var) (adds string)
434
+		'PhanPluginCanUseReturnType', // Fixer - Report/Add return types in the function definition (function abc(string $var) (adds string)
435
+		'PhanPluginCanUseNullableParamType', // Fixer - Report/Add nullable parameter types in the function definition
436
+		'PhanPluginCanUseNullableReturnType', // Fixer - Report/Add nullable return types in the function definition
437 437
 
438
-		'PhanPluginNonBoolBranch',			// Not essential - 31240+ occurrences
439
-		'PhanPluginNumericalComparison',	// Not essential - 19870+ occurrences
440
-		'PhanTypeMismatchArgument',			// Not essential - 12300+ occurrences
441
-		'PhanPluginNonBoolInLogicalArith',	// Not essential - 11040+ occurrences
442
-		'PhanPluginConstantVariableScalar',	// Not essential - 5180+ occurrences
438
+		'PhanPluginNonBoolBranch', // Not essential - 31240+ occurrences
439
+		'PhanPluginNumericalComparison', // Not essential - 19870+ occurrences
440
+		'PhanTypeMismatchArgument', // Not essential - 12300+ occurrences
441
+		'PhanPluginNonBoolInLogicalArith', // Not essential - 11040+ occurrences
442
+		'PhanPluginConstantVariableScalar', // Not essential - 5180+ occurrences
443 443
 		'PhanPluginDuplicateAdjacentStatement',
444
-		'PhanPluginDuplicateConditionalTernaryDuplication',		// 2750+ occurrences
445
-		'PhanPluginDuplicateConditionalNullCoalescing',	// Not essential - 990+ occurrences
446
-		'PhanPluginRedundantAssignmentInGlobalScope',	// Not essential, a lot of false warning
447
-		'PhanPluginRedundantAssignment',				// Not essential, useless
448
-		'PhanPluginDuplicateCatchStatementBody',  // Requires PHP7.1 - 50+ occurrences
444
+		'PhanPluginDuplicateConditionalTernaryDuplication', // 2750+ occurrences
445
+		'PhanPluginDuplicateConditionalNullCoalescing', // Not essential - 990+ occurrences
446
+		'PhanPluginRedundantAssignmentInGlobalScope', // Not essential, a lot of false warning
447
+		'PhanPluginRedundantAssignment', // Not essential, useless
448
+		'PhanPluginDuplicateCatchStatementBody', // Requires PHP7.1 - 50+ occurrences
449 449
 
450
-		'PhanPluginUnknownArrayMethodParamType',	// Too many troubles to manage. Is enabled into config_extended only.
451
-		'PhanPluginUnknownArrayMethodReturnType',	// Too many troubles to manage. Is enabled into config_extended only.
452
-		'PhanUndeclaredGlobalVariable',			// Too many false positives on .tpl.php files. Is enabled into config_extended only.
453
-		'PhanPluginUnknownObjectMethodCall',	// False positive for some class. Is enabled into config_extended only.
450
+		'PhanPluginUnknownArrayMethodParamType', // Too many troubles to manage. Is enabled into config_extended only.
451
+		'PhanPluginUnknownArrayMethodReturnType', // Too many troubles to manage. Is enabled into config_extended only.
452
+		'PhanUndeclaredGlobalVariable', // Too many false positives on .tpl.php files. Is enabled into config_extended only.
453
+		'PhanPluginUnknownObjectMethodCall', // False positive for some class. Is enabled into config_extended only.
454 454
 	],
455 455
 	// You can put relative paths to internal stubs in this config option.
456 456
 	// Phan will continue using its detailed type annotations,
@@ -469,31 +469,31 @@  discard block
 block discarded – undo
469 469
 		//'xdebug'	=> 'vendor/phan/phan/.phan/internal_stubs/xdebug.phan_php',
470 470
 		//'memcached'  => PHAN_DIR . '/your_internal_stubs_folder_name/memcached.phan_php',
471 471
 		//'PDO'  => PHAN_DIR . '/stubs/PDO.phan_php',
472
-		'brotli'  => PHAN_DIR . '/stubs/brotli.phan_php',
473
-		'curl'  => PHAN_DIR . '/stubs/curl.phan_php',
474
-		'calendar'  => PHAN_DIR . '/stubs/calendar.phan_php',
475
-		'fileinfo'  => PHAN_DIR . '/stubs/fileinfo.phan_php',
476
-		'ftp'  => PHAN_DIR . '/stubs/ftp.phan_php',
477
-		'gd'  => PHAN_DIR . '/stubs/gd.phan_php',
478
-		'geoip'  => PHAN_DIR . '/stubs/geoip.phan_php',
479
-		'imagick'  => PHAN_DIR . '/stubs/imagick.phan_php',
480
-		'imap'  => PHAN_DIR . '/stubs/imap.phan_php',
481
-		'intl'  => PHAN_DIR . '/stubs/intl.phan_php',
482
-		'ldap'  => PHAN_DIR . '/stubs/ldap.phan_php',
483
-		'mcrypt'  => PHAN_DIR . '/stubs/mcrypt.phan_php',
484
-		'memcache'  => PHAN_DIR . '/stubs/memcache.phan_php',
485
-		'memcached' => PHAN_DIR . '/stubs/memcached.phan_php',
486
-		'mysqli'  => PHAN_DIR . '/stubs/mysqli.phan_php',
487
-		'pdo_cubrid'  => PHAN_DIR . '/stubs/pdo_cubrid.phan_php',
488
-		'pdo_mysql'  => PHAN_DIR . '/stubs/pdo_mysql.phan_php',
489
-		'pdo_pgsql'  => PHAN_DIR . '/stubs/pdo_pgsql.phan_php',
490
-		'pdo_sqlite'  => PHAN_DIR . '/stubs/pdo_sqlite.phan_php',
491
-		'pgsql'  => PHAN_DIR . '/stubs/pgsql.phan_php',
492
-		'session'  => PHAN_DIR . '/stubs/session.phan_php',
493
-		'simplexml'  => PHAN_DIR . '/stubs/SimpleXML.phan_php',
494
-		'soap'  => PHAN_DIR . '/stubs/soap.phan_php',
495
-		'sockets'  => PHAN_DIR . '/stubs/sockets.phan_php',
496
-		'tidy'  => PHAN_DIR . '/stubs/tidy.phan_php',
497
-		'zip'  => PHAN_DIR . '/stubs/zip.phan_php',
472
+		'brotli'  => PHAN_DIR.'/stubs/brotli.phan_php',
473
+		'curl'  => PHAN_DIR.'/stubs/curl.phan_php',
474
+		'calendar'  => PHAN_DIR.'/stubs/calendar.phan_php',
475
+		'fileinfo'  => PHAN_DIR.'/stubs/fileinfo.phan_php',
476
+		'ftp'  => PHAN_DIR.'/stubs/ftp.phan_php',
477
+		'gd'  => PHAN_DIR.'/stubs/gd.phan_php',
478
+		'geoip'  => PHAN_DIR.'/stubs/geoip.phan_php',
479
+		'imagick'  => PHAN_DIR.'/stubs/imagick.phan_php',
480
+		'imap'  => PHAN_DIR.'/stubs/imap.phan_php',
481
+		'intl'  => PHAN_DIR.'/stubs/intl.phan_php',
482
+		'ldap'  => PHAN_DIR.'/stubs/ldap.phan_php',
483
+		'mcrypt'  => PHAN_DIR.'/stubs/mcrypt.phan_php',
484
+		'memcache'  => PHAN_DIR.'/stubs/memcache.phan_php',
485
+		'memcached' => PHAN_DIR.'/stubs/memcached.phan_php',
486
+		'mysqli'  => PHAN_DIR.'/stubs/mysqli.phan_php',
487
+		'pdo_cubrid'  => PHAN_DIR.'/stubs/pdo_cubrid.phan_php',
488
+		'pdo_mysql'  => PHAN_DIR.'/stubs/pdo_mysql.phan_php',
489
+		'pdo_pgsql'  => PHAN_DIR.'/stubs/pdo_pgsql.phan_php',
490
+		'pdo_sqlite'  => PHAN_DIR.'/stubs/pdo_sqlite.phan_php',
491
+		'pgsql'  => PHAN_DIR.'/stubs/pgsql.phan_php',
492
+		'session'  => PHAN_DIR.'/stubs/session.phan_php',
493
+		'simplexml'  => PHAN_DIR.'/stubs/SimpleXML.phan_php',
494
+		'soap'  => PHAN_DIR.'/stubs/soap.phan_php',
495
+		'sockets'  => PHAN_DIR.'/stubs/sockets.phan_php',
496
+		'tidy'  => PHAN_DIR.'/stubs/tidy.phan_php',
497
+		'zip'  => PHAN_DIR.'/stubs/zip.phan_php',
498 498
 	],
499 499
 ];
Please login to merge, or discard this patch.