Passed
Branch develop (3f4b05)
by Laurent
95:01
created
htdocs/core/modules/product_batch/mod_lot_standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
 		$sql .= " AND entity = ".$conf->entity;
128 128
 
129 129
 		$resql = $db->query($sql);
130
-		if ($resql)	{
130
+		if ($resql) {
131 131
 			$obj = $db->fetch_object($resql);
132 132
 			if ($obj) {
133 133
 				$max = intval($obj->max);
Please login to merge, or discard this patch.
htdocs/fourn/class/fournisseur.commande.dispatch.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@
 block discarded – undo
221 221
 
222 222
 			if (!$notrigger) {
223 223
 				// Call triggers
224
-				$result=$this->call_trigger('LINERECEPTION_CREATE', $user);
224
+				$result = $this->call_trigger('LINERECEPTION_CREATE', $user);
225 225
 				if ($result < 0) {
226 226
 					$error++;
227 227
 				}
Please login to merge, or discard this patch.
htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -553,7 +553,7 @@  discard block
 block discarded – undo
553 553
 
554 554
 			if (!empty($object->refuse_note)) {
555 555
 				$object->actionmsg .= '<br>';
556
-				$object->actionmsg .= $langs->trans("Reason") . ': '.$object->refuse_note;
556
+				$object->actionmsg .= $langs->trans("Reason").': '.$object->refuse_note;
557 557
 			}
558 558
 
559 559
 			$object->sendtoid = 0;
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
 
569 569
 			if (!empty($object->cancel_note)) {
570 570
 				$object->actionmsg .= '<br>';
571
-				$object->actionmsg .= $langs->trans("Reason") . ': '.$object->cancel_note;
571
+				$object->actionmsg .= $langs->trans("Reason").': '.$object->cancel_note;
572 572
 			}
573 573
 
574 574
 			$object->sendtoid = 0;
@@ -583,7 +583,7 @@  discard block
 block discarded – undo
583 583
 
584 584
 			if (!empty($object->context['comments'])) {
585 585
 				$object->actionmsg .= '<br>';
586
-				$object->actionmsg .= $langs->trans("Comment") . ': '.$object->context['comments'];
586
+				$object->actionmsg .= $langs->trans("Comment").': '.$object->context['comments'];
587 587
 			}
588 588
 
589 589
 			$object->sendtoid = 0;
Please login to merge, or discard this patch.
htdocs/eventorganization/tpl/linkedobjectblock.tpl.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,22 +34,22 @@
 block discarded – undo
34 34
 $total = 0;
35 35
 foreach ($linkedObjectBlock as $key => $objectlink) {
36 36
 	echo '<tr class="oddeven">';
37
-	echo '<td>' . $langs->trans(get_class($objectlink)) . '</td>';
37
+	echo '<td>'.$langs->trans(get_class($objectlink)).'</td>';
38 38
 	echo '<td>'.$objectlink->getNomUrl(1).'</td>';
39 39
 	echo '<td class="center">';
40
-	if (get_class($objectlink)=='ConferenceOrBooth') {
40
+	if (get_class($objectlink) == 'ConferenceOrBooth') {
41 41
 		print  dol_trunc($objectlink->label, 20);
42 42
 	}
43 43
 	print '</td>';
44 44
 	echo '<td class="center">';
45
-	if (get_class($objectlink)=='ConferenceOrBoothAttendee') {
45
+	if (get_class($objectlink) == 'ConferenceOrBoothAttendee') {
46 46
 		print dol_print_date($objectlink->date_subscription);
47 47
 	} else {
48 48
 		print dol_print_date($objectlink->datep);
49 49
 	}
50 50
 	print '</td>';
51 51
 	echo '<td class="right">';
52
-	if (get_class($objectlink)=='ConferenceOrBoothAttendee') {
52
+	if (get_class($objectlink) == 'ConferenceOrBoothAttendee') {
53 53
 		print price($objectlink->amount);
54 54
 	}
55 55
 	print '</td>';
Please login to merge, or discard this patch.
htdocs/imports/emptyexample.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,8 +102,8 @@
 block discarded – undo
102 102
 
103 103
 
104 104
 // List of targets fields
105
-$headerlinefields = array();	// Array of fields (label to show)
106
-$contentlinevalues = array();	// Array of example values
105
+$headerlinefields = array(); // Array of fields (label to show)
106
+$contentlinevalues = array(); // Array of example values
107 107
 $i = 0;
108 108
 foreach ($fieldstarget as $code => $label) {
109 109
 	$withoutstar = preg_replace('/\*/', '', $fieldstarget[$code]);
Please login to merge, or discard this patch.
htdocs/salaries/class/paymentsalary.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -560,7 +560,7 @@
 block discarded – undo
560 560
 							}
561 561
 							if ($result <= 0) {
562 562
 								$this->error = $this->db->lasterror();
563
-								dol_syslog(get_class($this) . '::addPaymentToBank ' . $this->error);
563
+								dol_syslog(get_class($this).'::addPaymentToBank '.$this->error);
564 564
 								$error++;
565 565
 							}
566 566
 						}
Please login to merge, or discard this patch.
htdocs/blockedlog/admin/blockedlog_list.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -275,7 +275,7 @@
 block discarded – undo
275 275
 } else {
276 276
 	$title = $langs->trans("BrowseBlockedLog");
277 277
 }
278
-$help_url="EN:Module_Unalterable_Archives_-_Logs|FR:Module_Archives_-_Logs_Inaltérable";
278
+$help_url = "EN:Module_Unalterable_Archives_-_Logs|FR:Module_Archives_-_Logs_Inaltérable";
279 279
 
280 280
 llxHeader('', $title, $help_url);
281 281
 
Please login to merge, or discard this patch.
htdocs/blockedlog/admin/blockedlog.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
 $block_static->loadTrackedEvents();
81 81
 
82 82
 $title = $langs->trans("BlockedLogSetup");
83
-$help_url="EN:Module_Unalterable_Archives_-_Logs|FR:Module_Archives_-_Logs_Inaltérable";
83
+$help_url = "EN:Module_Unalterable_Archives_-_Logs|FR:Module_Archives_-_Logs_Inaltérable";
84 84
 
85 85
 llxHeader('', $title, $help_url);
86 86
 
Please login to merge, or discard this patch.
htdocs/filefunc.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@
 block discarded – undo
196 196
 		if ($csrfattack) {
197 197
 			//print 'NOCSRFCHECK='.defined('NOCSRFCHECK').' REQUEST_METHOD='.$_SERVER['REQUEST_METHOD'].' HTTP_HOST='.$_SERVER['HTTP_HOST'].' HTTP_REFERER='.$_SERVER['HTTP_REFERER'];
198 198
 			// Note: We can't use dol_escape_htmltag here to escape output because lib functions.lib.ph is not yet loaded.
199
-			dol_syslog("--- Access to ".(empty($_SERVER["REQUEST_METHOD"])?'':$_SERVER["REQUEST_METHOD"].' ').$_SERVER["PHP_SELF"]." refused by CSRF protection (Bad referer).", LOG_WARNING);
199
+			dol_syslog("--- Access to ".(empty($_SERVER["REQUEST_METHOD"]) ? '' : $_SERVER["REQUEST_METHOD"].' ').$_SERVER["PHP_SELF"]." refused by CSRF protection (Bad referer).", LOG_WARNING);
200 200
 			print "Access refused by CSRF protection in main.inc.php. Referer of form (".htmlentities($_SERVER['HTTP_REFERER'], ENT_COMPAT, 'UTF-8').") is outside the server that serve this page (with method = ".htmlentities($_SERVER['REQUEST_METHOD'], ENT_COMPAT, 'UTF-8').").\n";
201 201
 			print "If you access your server behind a proxy using url rewriting, you might check that all HTTP headers are propagated (or add the line \$dolibarr_nocsrfcheck=1 into your conf.php file to remove this security check).\n";
202 202
 			die;
Please login to merge, or discard this patch.