Passed
Branch develop (d85e4e)
by Laurent
84:36
created
htdocs/public/test/buttons.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 		$actionType = 'delete';
63 63
 		$n++;
64 64
 		$id = 'mybuttonid'.$n;
65
-		$url = $_SERVER['PHP_SELF'] . '?token='.newToken().'#'.$id;
65
+		$url = $_SERVER['PHP_SELF'].'?token='.newToken().'#'.$id;
66 66
 		print dolGetButtonAction($label, $html, $actionType, $url, $id, $userRight);
67 67
 
68 68
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 		$actionType = 'danger';
71 71
 		$n++;
72 72
 		$id = 'mybuttonid'.$n;
73
-		$url = $_SERVER['PHP_SELF'] . '?token='.newToken().'#'.$id;
73
+		$url = $_SERVER['PHP_SELF'].'?token='.newToken().'#'.$id;
74 74
 		print dolGetButtonAction($label, $html, $actionType, $url, $id, $userRight);
75 75
 
76 76
 	?>
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 		$actionType = 'delete';
96 96
 		$n++;
97 97
 		$id = 'mybuttonid'.$n;
98
-		$url = $_SERVER['PHP_SELF'] . '?token='.newToken().'#'.$id;
98
+		$url = $_SERVER['PHP_SELF'].'?token='.newToken().'#'.$id;
99 99
 		print dolGetButtonAction($label, $html, $actionType, $url, $id, $userRight);
100 100
 
101 101
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 		$actionType = 'danger';
104 104
 		$n++;
105 105
 		$id = 'mybuttonid'.$n;
106
-		$url = $_SERVER['PHP_SELF'] . '?token='.newToken().'#'.$id;
106
+		$url = $_SERVER['PHP_SELF'].'?token='.newToken().'#'.$id;
107 107
 		print dolGetButtonAction($label, $html, $actionType, $url, $id, $userRight);
108 108
 
109 109
 	?>
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 		$actionType = 'delete';
135 135
 		$n++;
136 136
 		$id = 'mybuttonid'.$n;
137
-		$url = $_SERVER['PHP_SELF'] . '?token='.newToken().'#'.$id;
137
+		$url = $_SERVER['PHP_SELF'].'?token='.newToken().'#'.$id;
138 138
 
139 139
 		$params = array(
140 140
 			'confirm' => array(
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 		$actionType = 'delete';
174 174
 		$n++;
175 175
 		$id = 'mybuttonid'.$n;
176
-		$url = $_SERVER['PHP_SELF'] . '?token='.newToken().'#'.$id;
176
+		$url = $_SERVER['PHP_SELF'].'?token='.newToken().'#'.$id;
177 177
 
178 178
 		$params = array(
179 179
 			'confirm' => array(
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/actions_dellink.inc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,10 +40,10 @@
 block discarded – undo
40 40
 }
41 41
 
42 42
 // Link by reference
43
-if ($action == 'addlinkbyref' && ! empty($permissiondellink) && !$cancellink && $id > 0 && !empty($addlinkref) && !empty($conf->global->MAIN_LINK_BY_REF_IN_LINKTO)) {
43
+if ($action == 'addlinkbyref' && !empty($permissiondellink) && !$cancellink && $id > 0 && !empty($addlinkref) && !empty($conf->global->MAIN_LINK_BY_REF_IN_LINKTO)) {
44 44
 	$element_prop = getElementProperties($addlink);
45 45
 	if (is_array($element_prop)) {
46
-		dol_include_once('/' . $element_prop['classpath'] . '/' . $element_prop['classfile'] . '.class.php');
46
+		dol_include_once('/'.$element_prop['classpath'].'/'.$element_prop['classfile'].'.class.php');
47 47
 
48 48
 		$objecttmp = new $element_prop['classname']($db);
49 49
 		$ret = $objecttmp->fetch(0, $addlinkref);
Please login to merge, or discard this patch.
htdocs/admin/system/security.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 $todisabletext = '';
115 115
 $i = 0;
116 116
 foreach ($arrayoffunctionstodisable as $functiontodisable) {
117
-	if (! in_array($functiontodisable, $arrayoffunctionsdisabled)) {
117
+	if (!in_array($functiontodisable, $arrayoffunctionsdisabled)) {
118 118
 		if ($i > 0) {
119 119
 			$todisabletext .= ', ';
120 120
 		}
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 $todisabletext = '';
130 130
 $i = 0;
131 131
 foreach ($arrayoffunctionstodisable2 as $functiontodisable) {
132
-	if (! in_array($functiontodisable, $arrayoffunctionsdisabled)) {
132
+	if (!in_array($functiontodisable, $arrayoffunctionsdisabled)) {
133 133
 		if ($i > 0) {
134 134
 			$todisabletext .= ', ';
135 135
 		}
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 print '<br>';
201 201
 print '<br>';
202 202
 
203
-print '<strong>'.$langs->trans("PermissionsOnFile", $conffile).'</strong>: ';		// $conffile is defined into filefunc.inc.php
203
+print '<strong>'.$langs->trans("PermissionsOnFile", $conffile).'</strong>: '; // $conffile is defined into filefunc.inc.php
204 204
 $perms = fileperms($dolibarr_main_document_root.'/'.$conffile);
205 205
 if ($perms) {
206 206
 	if (($perms & 0x0004) || ($perms & 0x0002)) {
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/admin/tools/listsessions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
  *      \brief      List of PHP sessions
23 23
  */
24 24
 
25
-if (! defined('CSRFCHECK_WITH_TOKEN')) {
26
-	define('CSRFCHECK_WITH_TOKEN', '1');		// Force use of CSRF protection with tokens even for GET
25
+if (!defined('CSRFCHECK_WITH_TOKEN')) {
26
+	define('CSRFCHECK_WITH_TOKEN', '1'); // Force use of CSRF protection with tokens even for GET
27 27
 }
28 28
 
29 29
 require '../../main.inc.php';
Please login to merge, or discard this patch.