Completed
Branch develop (7eeef6)
by
unknown
23:28
created
htdocs/core/modules/accountancy/doc/pdf_balance.modules.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1615,7 +1615,9 @@
 block discarded – undo
1615 1615
 		global $conf, $langs;
1616 1616
 
1617 1617
 		$ltrdirection = 'L';
1618
-		if ($outputlangs->trans("DIRECTION") == 'rtl') $ltrdirection = 'R';
1618
+		if ($outputlangs->trans("DIRECTION") == 'rtl') {
1619
+			$ltrdirection = 'R';
1620
+		}
1619 1621
 
1620 1622
 		// Load traductions files required by page
1621 1623
 		$outputlangs->loadLangs(array("main", "bills", "propal", "companies"));
Please login to merge, or discard this patch.
htdocs/accountancy/class/bookkeeping.class.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3385,11 +3385,15 @@
 block discarded – undo
3385 3385
 				if ($bookkeeping->fetch($id)) {
3386 3386
 					if ( !getDolGlobalString('ACCOUNTING_ACCOUNT_CUSTOMER')) {
3387 3387
 						$accountcustcode = '411';
3388
-					} else $accountcustcode = getDolGlobalString('ACCOUNTING_ACCOUNT_CUSTOMER');
3388
+					} else {
3389
+						$accountcustcode = getDolGlobalString('ACCOUNTING_ACCOUNT_CUSTOMER');
3390
+					}
3389 3391
 
3390 3392
 					if ( !getDolGlobalString('ACCOUNTING_ACCOUNT_SUPPLIER')) {
3391 3393
 						$accountsuppcode = '401';
3392
-					} else $accountsuppcode = getDolGlobalString('ACCOUNTING_ACCOUNT_SUPPLIER');
3394
+					} else {
3395
+						$accountsuppcode = getDolGlobalString('ACCOUNTING_ACCOUNT_SUPPLIER');
3396
+					}
3393 3397
 
3394 3398
 					if (strpos($bookkeeping->numero_compte, $accountcustcode) === 0 || strpos($bookkeeping->numero_compte, $accountsuppcode) === 0) {
3395 3399
 						$echecT[]=$bookkeeping->numero_compte;
Please login to merge, or discard this patch.
htdocs/api/class/api_documents.class.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -639,7 +639,9 @@
 block discarded – undo
639 639
 								$filearray[$i] = array_merge($filearray[$i], (array) $line);
640 640
 							}
641 641
 						}
642
-						if (isset($line->filename)) $filearray[$i]['content-type'] = dol_mimetype($line->filename);
642
+						if (isset($line->filename)) {
643
+							$filearray[$i]['content-type'] = dol_mimetype($line->filename);
644
+						}
643 645
 						$arraycontenttype = explode(",", $content_type);
644 646
 						if (!empty($content_type) && isset($line->filename) && !in_array(dol_mimetype($line->filename), $arraycontenttype)) {
645 647
 							unset($filearray[$i]);
Please login to merge, or discard this patch.
htdocs/contrat/class/contrat.class.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1268,7 +1268,10 @@
 block discarded – undo
1268 1268
 		// Delete record into ECM index and physically
1269 1269
 		if (!$error) {
1270 1270
 			$res = $this->deleteEcmFiles(0); // Deleting files physically is done later with the dol_delete_dir_recursive
1271
-			if ($res) $res = $this->deleteEcmFiles(1); // Deleting files physically is done later with the dol_delete_dir_recursive
1271
+			if ($res) {
1272
+				$res = $this->deleteEcmFiles(1);
1273
+			}
1274
+			// Deleting files physically is done later with the dol_delete_dir_recursive
1272 1275
 			if (!$res) {
1273 1276
 				$error++;
1274 1277
 			}
Please login to merge, or discard this patch.
htdocs/accountancy/journal/bankjournal.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -404,7 +404,9 @@
 block discarded – undo
404 404
 			$resultamount = $db->query($sqlamount);
405 405
 			if ($resultamount) {
406 406
 				$objamount = $db->fetch_object($resultamount);
407
-				if (!empty($objamount->amount)) $amounttouse = $objamount->amount;
407
+				if (!empty($objamount->amount)) {
408
+					$amounttouse = $objamount->amount;
409
+				}
408 410
 			}
409 411
 		}
410 412
 
Please login to merge, or discard this patch.