瀏覽代碼

Fix warning

Laurent Destailleur 2 年之前
父節點
當前提交
3ca8e8c493
共有 3 個文件被更改,包括 4 次插入2 次删除
  1. 1 1
      htdocs/comm/propal/card.php
  2. 2 1
      htdocs/commande/card.php
  3. 1 0
      qodana.yaml

+ 1 - 1
htdocs/comm/propal/card.php

@@ -1830,7 +1830,7 @@ if ($action == 'create') {
 		}
 		print '<tr class="field_shipping_method_id"><td class="titlefieldcreate">'.$langs->trans('SendingMethod').'</td><td class="valuefieldcreate">';
 		print img_picto('', 'object_dollyrevert', 'class="pictofixedwidth"');
-		print $form->selectShippingMethod($shipping_method_id, 'shipping_method_id', '', 1, '', 0, 'maxwidth200 widthcentpercentminusx');
+		$form->selectShippingMethod($shipping_method_id, 'shipping_method_id', '', 1, '', 0, 'maxwidth200 widthcentpercentminusx');
 		print '</td></tr>';
 	}
 

+ 2 - 1
htdocs/commande/card.php

@@ -1833,7 +1833,8 @@ if ($action == 'create' && $usercancreate) {
 	// Shipping Method
 	if (isModEnabled('expedition')) {
 		print '<tr><td>'.$langs->trans('SendingMethod').'</td><td>';
-		print img_picto('', 'object_dolly', 'class="pictofixedwidth"').$form->selectShippingMethod($shipping_method_id, 'shipping_method_id', '', 1, '', 0, 'maxwidth200 widthcentpercentminusx');
+		print img_picto('', 'object_dolly', 'class="pictofixedwidth"');
+		$form->selectShippingMethod($shipping_method_id, 'shipping_method_id', '', 1, '', 0, 'maxwidth200 widthcentpercentminusx');
 		print '</td></tr>';
 	}
 

+ 1 - 0
qodana.yaml

@@ -69,5 +69,6 @@ exclude:
   - name: PhpCoveredCharacterInClassInspection
   - name: PhpSameParameterValueInspection  
   - name: PhpConditionCheckedByNextConditionInspection
+  - name: RegExpSingleCharAlternation  
   - name: PhpSuspiciousNameCombinationInspection