Passed
Branch develop (fc1365)
by Laurent
84:32
created
htdocs/dav/fileserver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
 
83 83
 
84 84
 // Authentication callback function
85
-$authBackend = new \Sabre\DAV\Auth\Backend\BasicCallBack(function ($username, $password) {
85
+$authBackend = new \Sabre\DAV\Auth\Backend\BasicCallBack(function($username, $password) {
86 86
 	global $user;
87 87
 	global $conf;
88 88
 	global $dolibarr_main_authentication, $dolibarr_auto_user;
Please login to merge, or discard this patch.
htdocs/debugbar/class/autoloader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * Simple autoloader, so we don't need Composer just for this.
5 5
  */
6 6
 
7
-spl_autoload_register(function ($class) {
7
+spl_autoload_register(function($class) {
8 8
 	if (preg_match('/^DebugBar/', $class)) {
9 9
 		$file = DOL_DOCUMENT_ROOT.'/includes/maximebf/debugbar/src/'.str_replace('\\', DIRECTORY_SEPARATOR, $class).'.php';
10 10
 		//var_dump($class.' - '.file_exists($file).' - '.$file);
Please login to merge, or discard this patch.
htdocs/api/class/api_access.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
 // Create the autoloader for Luracast
20 20
 require_once DOL_DOCUMENT_ROOT.'/includes/restler/framework/Luracast/Restler/AutoLoader.php';
21
-call_user_func(function () {
21
+call_user_func(function() {
22 22
 	$loader = Luracast\Restler\AutoLoader::instance();
23 23
 	spl_autoload_register($loader);
24 24
 	return $loader;
Please login to merge, or discard this patch.
htdocs/loan/payment/payment.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -152,15 +152,15 @@
 block discarded – undo
152 152
 
153 153
 			// Create a line of payments
154 154
 			$payment = new PaymentLoan($db);
155
-			$payment->chid				= $chid;
155
+			$payment->chid = $chid;
156 156
 			$payment->datep             = $datepaid;
157 157
 			$payment->label             = $loan->label;
158
-			$payment->amount_capital	= $pay_amount_capital;
159
-			$payment->amount_insurance	= $pay_amount_insurance;
160
-			$payment->amount_interest	= $pay_amount_interest;
158
+			$payment->amount_capital = $pay_amount_capital;
159
+			$payment->amount_insurance = $pay_amount_insurance;
160
+			$payment->amount_interest = $pay_amount_interest;
161 161
 			$payment->fk_bank           = GETPOST('accountid', 'int');
162 162
 			$payment->paymenttype       = GETPOST('paymenttype', 'int');
163
-			$payment->num_payment		= GETPOST('num_payment');
163
+			$payment->num_payment = GETPOST('num_payment');
164 164
 			$payment->note_private      = GETPOST('note_private', 'restricthtml');
165 165
 			$payment->note_public       = GETPOST('note_public', 'restricthtml');
166 166
 
Please login to merge, or discard this patch.
htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
 		$this->db = $db;
136 136
 		$this->name = "cornas";
137 137
 		$this->description = $langs->trans('SuppliersCommandModel');
138
-		$this->update_main_doc_field = 1;		// Save the name of generated file as the main doc when generating a doc with this template
138
+		$this->update_main_doc_field = 1; // Save the name of generated file as the main doc when generating a doc with this template
139 139
 
140 140
 		// Page size for A4 format
141 141
 		$this->type = 'pdf';
Please login to merge, or discard this patch.
htdocs/projet/admin/project.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -849,7 +849,7 @@
 block discarded – undo
849 849
 $key = 'PROJECT_CLASSIFY_CLOSED_WHEN_ALL_TASKS_DONE';
850 850
 echo '<tr class="oddeven">',
851 851
 		'<td class="left">',
852
-			$form->textwithpicto($langs->transnoentities($key), $langs->transnoentities($key . '_help')),
852
+			$form->textwithpicto($langs->transnoentities($key), $langs->transnoentities($key.'_help')),
853 853
 		'</td>',
854 854
 		'<td class="right" colspan="2">',
855 855
 			ajax_constantonoff($key),
Please login to merge, or discard this patch.
htdocs/core/class/link.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -166,11 +166,11 @@
 block discarded – undo
166 166
 		}
167 167
 
168 168
 		// Clean parameters
169
-		$this->url       = clean_url($this->url, 1);
169
+		$this->url = clean_url($this->url, 1);
170 170
 		if (empty($this->label)) {
171 171
 			$this->label = basename($this->url);
172 172
 		}
173
-		$this->label     = trim($this->label);
173
+		$this->label = trim($this->label);
174 174
 
175 175
 
176 176
 		$this->db->begin();
Please login to merge, or discard this patch.
htdocs/core/class/commondocgenerator.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1349,7 +1349,7 @@
 block discarded – undo
1349 1349
 
1350 1350
 		if (!empty($fields)) {
1351 1351
 			// Sort extrafields by rank
1352
-			uasort($fields, function ($a, $b) {
1352
+			uasort($fields, function($a, $b) {
1353 1353
 				return  ($a->rank > $b->rank) ? 1 : -1;
1354 1354
 			});
1355 1355
 
Please login to merge, or discard this patch.
htdocs/core/modules/barcode/mod_barcode_product_standard.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -205,12 +205,12 @@
 block discarded – undo
205 205
 
206 206
 		$numFinal = get_next_value($db, $mask, 'product', $field, $where, '', $now);
207 207
 		//Begin barcode with key: for barcode with key (EAN13...) calculate and substitute the last  character (* or ?) used in the mask by the key
208
-		if ((substr($numFinal, -1)=='*') or (substr($numFinal, -1)=='?')) { // if last mask character is * or ? a joker, probably we have to calculate a key as last character (EAN13...)
208
+		if ((substr($numFinal, -1) == '*') or (substr($numFinal, -1) == '?')) { // if last mask character is * or ? a joker, probably we have to calculate a key as last character (EAN13...)
209 209
 			$literaltype = '';
210
-			$literaltype = $this->literalBarcodeType($db, $type);//get literal_Barcode_Type
210
+			$literaltype = $this->literalBarcodeType($db, $type); //get literal_Barcode_Type
211 211
 			switch ($literaltype) {
212 212
 				case 'EAN13': //EAN13 rowid = 2
213
-					if (strlen($numFinal)==13) {// be sure that the mask length is correct for EAN13
213
+					if (strlen($numFinal) == 13) {// be sure that the mask length is correct for EAN13
214 214
 						$ean = substr($numFinal, 0, 12); //take first 12 digits
215 215
 							$eansum = barcode_gen_ean_sum($ean);
216 216
 							$ean .= $eansum; //substitute the las character by the key
Please login to merge, or discard this patch.