Browse Source

Fix qodana

Laurent Destailleur 2 years ago
parent
commit
169dcba959
2 changed files with 5 additions and 2 deletions
  1. 1 1
      htdocs/fourn/commande/list.php
  2. 4 1
      qodana.yaml

+ 1 - 1
htdocs/fourn/commande/list.php

@@ -1203,7 +1203,7 @@ if ($resql) {
 
 	$topicmail = "SendOrderRef";
 	$modelmail = "order_supplier_send";
-	$objecttmp = new CommandeFournisseur($db);
+	$objecttmp = new CommandeFournisseur($db);	// in case $object is not the good object
 	$trackid = 'sord'.$object->id;
 	include DOL_DOCUMENT_ROOT.'/core/tpl/massactions_pre.tpl.php';
 

+ 4 - 1
qodana.yaml

@@ -68,7 +68,10 @@ exclude:
   - name: PhpPropertyOnlyWrittenInspection
   - name: PhpCoveredCharacterInClassInspection
   - name: PhpSameParameterValueInspection  
+  - name: PhpSillyAssignmentInspection
   - name: PhpConditionCheckedByNextConditionInspection
-  - name: RegExpSingleCharAlternation  
+  - name: RegExpSingleCharAlternation
   - name: PhpSuspiciousNameCombinationInspection
+  - name: PhpWriteAccessToReferencedArrayValueWithoutUnsetInspection
+