Completed
Branch develop (30080e)
by
unknown
16:47
created
htdocs/core/actions_dellink.inc.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,9 @@
 block discarded – undo
51 51
 			$object->fetch($id);
52 52
 			$object->fetch_thirdparty();
53 53
 			$result = $object->add_object_linked($addlink, $objecttmp->id);
54
-			if (isset($_POST['reftolinkto'])) unset($_POST['reftolinkto']);
54
+			if (isset($_POST['reftolinkto'])) {
55
+				unset($_POST['reftolinkto']);
56
+			}
55 57
 		} elseif ($ret < 0) {
56 58
 			setEventMessages($objecttmp->error, $objecttmp->errors, 'errors');
57 59
 		} else {
Please login to merge, or discard this patch.
htdocs/compta/bank/card.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,9 @@
 block discarded – undo
75 75
 
76 76
 $parameters = array();
77 77
 $reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
78
-if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
78
+if ($reshook < 0) {
79
+	setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
80
+}
79 81
 
80 82
 if (empty($reshook)) {
81 83
 	$backurlforlist = DOL_URL_ROOT.'/compta/bank/list.php';
Please login to merge, or discard this patch.
htdocs/core/modules/mrp/doc/pdf_vinci.modules.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1120,7 +1120,9 @@
 block discarded – undo
1120 1120
 		global $langs, $conf, $mysoc;
1121 1121
 
1122 1122
 		$ltrdirection = 'L';
1123
-		if ($outputlangs->trans("DIRECTION") == 'rtl') $ltrdirection = 'R';
1123
+		if ($outputlangs->trans("DIRECTION") == 'rtl') {
1124
+			$ltrdirection = 'R';
1125
+		}
1124 1126
 
1125 1127
 		// Load translation files required by the page
1126 1128
 		$outputlangs->loadLangs(array("main", "orders", "companies", "bills", "sendings"));
Please login to merge, or discard this patch.
htdocs/fourn/commande/list.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -304,8 +304,11 @@
 block discarded – undo
304 304
 				}
305 305
 			}
306 306
 
307
-			if (!$error) $db->commit();
308
-			else $db->rollback();
307
+			if (!$error) {
308
+				$db->commit();
309
+			} else {
310
+				$db->rollback();
311
+			}
309 312
 		}
310 313
 	}
311 314
 
Please login to merge, or discard this patch.
htdocs/eventorganization/conferenceorbooth_list.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,9 @@
 block discarded – undo
152 152
 	accessforbidden();
153 153
 }
154 154
 $result = restrictedArea($user, 'eventorganization');
155
-if (!$permissiontoread) accessforbidden();
155
+if (!$permissiontoread) {
156
+	accessforbidden();
157
+}
156 158
 
157 159
 
158 160
 /*
Please login to merge, or discard this patch.
htdocs/fourn/paiement/list.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,9 @@
 block discarded – undo
49 49
 $socid = GETPOST('socid', 'int');
50 50
 
51 51
 // Security check
52
-if ($user->socid) $socid = $user->socid;
52
+if ($user->socid) {
53
+	$socid = $user->socid;
54
+}
53 55
 
54 56
 $search_ref				= GETPOST('search_ref', 'alpha');
55 57
 $search_date_startday	= GETPOST('search_date_startday', 'int');
Please login to merge, or discard this patch.
htdocs/compta/paiement/list.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,9 @@
 block discarded – undo
51 51
 $userid = GETPOST('userid', 'int');
52 52
 
53 53
 // Security check
54
-if ($user->socid) $socid = $user->socid;
54
+if ($user->socid) {
55
+	$socid = $user->socid;
56
+}
55 57
 $result = restrictedArea($user, 'facture', $facid, '');
56 58
 
57 59
 $search_ref = GETPOST("search_ref", "alpha");
Please login to merge, or discard this patch.
htdocs/hrm/position_document.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,8 +136,12 @@
 block discarded – undo
136 136
 //if ($user->socid > 0) $socid = $user->socid;
137 137
 //$isdraft = (($object->status == $object::STATUS_DRAFT) ? 1 : 0);
138 138
 //restrictedArea($user, $object->element, $object->id, $object->table_element, '', 'fk_soc', 'rowid', $isdraft);
139
-if (empty($conf->hrm->enabled)) accessforbidden();
140
-if (!$permissiontoread) accessforbidden();
139
+if (empty($conf->hrm->enabled)) {
140
+	accessforbidden();
141
+}
142
+if (!$permissiontoread) {
143
+	accessforbidden();
144
+}
141 145
 
142 146
 
143 147
 /*
Please login to merge, or discard this patch.
htdocs/hrm/class/evaluation.class.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -240,7 +240,9 @@  discard block
 block discarded – undo
240 240
 					$line->fk_rank = 0;
241 241
 
242 242
 					$res = $line->create($user, $notrigger);
243
-					if ($res > 0) $this->lines[] = $line;
243
+					if ($res > 0) {
244
+						$this->lines[] = $line;
245
+					}
244 246
 				}
245 247
 			}
246 248
 		}
@@ -637,8 +639,9 @@  discard block
 block discarded – undo
637 639
 
638 640
 		$Tab = $this->db->fetch_object($res);
639 641
 
640
-		if (empty($Tab)) return null;
641
-		else {
642
+		if (empty($Tab)) {
643
+			return null;
644
+		} else {
642 645
 			$evaluation = new Evaluation($this->db);
643 646
 			$evaluation->fetch($Tab->rowid);
644 647
 
Please login to merge, or discard this patch.