Completed
Branch develop (967d77)
by
unknown
19:57
created
htdocs/societe/checkvat/checkVatPopup.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
  *		\brief      Popup screen to validate VAT
22 22
  */
23 23
 
24
-if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL', '1');		// Do not roll the Anti CSRF token (used if MAIN_SECURITY_CSRF_WITH_TOKEN is on)
24
+if (!defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL', '1'); // Do not roll the Anti CSRF token (used if MAIN_SECURITY_CSRF_WITH_TOKEN is on)
25 25
 
26 26
 require "../../main.inc.php";
27 27
 require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
Please login to merge, or discard this patch.
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,10 @@
 block discarded – undo
21 21
  *		\brief      Popup screen to validate VAT
22 22
  */
23 23
 
24
-if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL', '1');		// Do not roll the Anti CSRF token (used if MAIN_SECURITY_CSRF_WITH_TOKEN is on)
24
+if (! defined('NOTOKENRENEWAL')) {
25
+	define('NOTOKENRENEWAL', '1');
26
+}
27
+// Do not roll the Anti CSRF token (used if MAIN_SECURITY_CSRF_WITH_TOKEN is on)
25 28
 
26 29
 require "../../main.inc.php";
27 30
 require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
Please login to merge, or discard this patch.
htdocs/compta/journal/sellsjournal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
 $sql .= " FROM ".MAIN_DB_PREFIX."facturedet as fd";
122 122
 $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."product as p ON p.rowid = fd.fk_product";
123 123
 if (!empty($conf->global->MAIN_PRODUCT_PERENTITY_SHARED)) {
124
-	$sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = " . ((int) $conf->entity);
124
+	$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = ".((int) $conf->entity);
125 125
 }
126 126
 $sql .= " JOIN ".MAIN_DB_PREFIX."facture as f ON f.rowid = fd.fk_facture";
127 127
 $sql .= " JOIN ".MAIN_DB_PREFIX."societe as s ON s.rowid = f.fk_soc";
Please login to merge, or discard this patch.
htdocs/core/modules/modService.class.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -154,9 +154,9 @@  discard block
 block discarded – undo
154 154
 			'p.fk_product_type'=>'Type', 'p.tosell'=>"OnSell", 'p.tobuy'=>"OnBuy",
155 155
 			'p.description'=>"Description", 'p.url'=>"PublicUrl",
156 156
 			'p.customcode'=>'CustomCode', 'p.fk_country'=>'IDCountry',
157
-			$alias_product_perentity . '.accountancy_code_sell'=>"ProductAccountancySellCode", $alias_product_perentity . '.accountancy_code_sell_intra'=>"ProductAccountancySellIntraCode",
158
-			$alias_product_perentity . '.accountancy_code_sell_export'=>"ProductAccountancySellExportCode", $alias_product_perentity . '.accountancy_code_buy'=>"ProductAccountancyBuyCode",
159
-			$alias_product_perentity . '.accountancy_code_buy_intra'=>"ProductAccountancyBuyIntraCode", $alias_product_perentity . '.accountancy_code_buy_export'=>"ProductAccountancyBuyExportCode",
157
+			$alias_product_perentity.'.accountancy_code_sell'=>"ProductAccountancySellCode", $alias_product_perentity.'.accountancy_code_sell_intra'=>"ProductAccountancySellIntraCode",
158
+			$alias_product_perentity.'.accountancy_code_sell_export'=>"ProductAccountancySellExportCode", $alias_product_perentity.'.accountancy_code_buy'=>"ProductAccountancyBuyCode",
159
+			$alias_product_perentity.'.accountancy_code_buy_intra'=>"ProductAccountancyBuyIntraCode", $alias_product_perentity.'.accountancy_code_buy_export'=>"ProductAccountancyBuyExportCode",
160 160
 			'p.note'=>"NotePrivate", 'p.note_public'=>'NotePublic',
161 161
 			'p.weight'=>"Weight", 'p.length'=>"Length", 'p.width'=>"Width", 'p.height'=>"Height", 'p.surface'=>"Surface", 'p.volume'=>"Volume",
162 162
 			'p.duration'=>"Duration",
@@ -197,8 +197,8 @@  discard block
 block discarded – undo
197 197
 			'p.ref'=>"Text", 'p.label'=>"Text",
198 198
 			'p.fk_product_type'=>'Numeric', 'p.tosell'=>"Boolean", 'p.tobuy'=>"Boolean",
199 199
 			'p.description'=>"Text", 'p.url'=>"Text",
200
-			$alias_product_perentity . '.accountancy_code_sell'=>"Text", $alias_product_perentity . '.accountancy_code_sell_intra'=>"Text", $alias_product_perentity . '.accountancy_code_sell_export'=>"Text",
201
-			$alias_product_perentity . '.accountancy_code_buy'=>"Text", $alias_product_perentity . '.accountancy_code_buy_intra'=>"Text", $alias_product_perentity . '.accountancy_code_buy_export'=>"Text",
200
+			$alias_product_perentity.'.accountancy_code_sell'=>"Text", $alias_product_perentity.'.accountancy_code_sell_intra'=>"Text", $alias_product_perentity.'.accountancy_code_sell_export'=>"Text",
201
+			$alias_product_perentity.'.accountancy_code_buy'=>"Text", $alias_product_perentity.'.accountancy_code_buy_intra'=>"Text", $alias_product_perentity.'.accountancy_code_buy_export'=>"Text",
202 202
 			'p.note'=>"Text", 'p.note_public'=>"Text",
203 203
 			'p.weight'=>"Numeric", 'p.length'=>"Numeric", 'p.width'=>"Numeric", 'p.height'=>"Numeric", 'p.surface'=>"Numeric", 'p.volume'=>"Numeric",
204 204
 			'p.customcode'=>'Text',
@@ -257,9 +257,9 @@  discard block
 block discarded – undo
257 257
 			$this->export_dependencies_array[$r] = array('category'=>'p.rowid');
258 258
 		}
259 259
 		$this->export_sql_start[$r] = 'SELECT DISTINCT ';
260
-		$this->export_sql_end[$r]  = ' FROM '.MAIN_DB_PREFIX.'product as p';
260
+		$this->export_sql_end[$r] = ' FROM '.MAIN_DB_PREFIX.'product as p';
261 261
 		if (!empty($conf->global->MAIN_PRODUCT_PERENTITY_SHARED)) {
262
-			$this->export_sql_end[$r] .= " LEFT JOIN " . MAIN_DB_PREFIX . "product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = " . ((int) $conf->entity);
262
+			$this->export_sql_end[$r] .= " LEFT JOIN ".MAIN_DB_PREFIX."product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = ".((int) $conf->entity);
263 263
 		}
264 264
 		if (!empty($conf->global->EXPORTTOOL_CATEGORIES)) {
265 265
 			$this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'categorie_product as cp ON cp.fk_product = p.rowid LEFT JOIN '.MAIN_DB_PREFIX.'categorie as cat ON cp.fk_categorie = cat.rowid';
@@ -352,9 +352,9 @@  discard block
 block discarded – undo
352 352
 				$this->export_permission[$r] = array(array("service", "export"));
353 353
 				$this->export_fields_array[$r] = array(
354 354
 					'p.rowid'=>"Id", 'p.ref'=>"Ref", 'p.label'=>"Label", 'p.description'=>"Description", 'p.url'=>"PublicUrl",
355
-					$alias_product_perentity . '.accountancy_code_sell'=>"ProductAccountancySellCode", $alias_product_perentity . '.accountancy_code_sell_intra'=>"ProductAccountancySellIntraCode",
356
-					$alias_product_perentity . '.accountancy_code_sell_export'=>"ProductAccountancySellExportCode", $alias_product_perentity . '.accountancy_code_buy'=>"ProductAccountancyBuyCode",
357
-					$alias_product_perentity . '.accountancy_code_buy_intra'=>"ProductAccountancyBuyIntraCode", $alias_product_perentity . '.accountancy_code_buy_export'=>"ProductAccountancyBuyExportCode",
355
+					$alias_product_perentity.'.accountancy_code_sell'=>"ProductAccountancySellCode", $alias_product_perentity.'.accountancy_code_sell_intra'=>"ProductAccountancySellIntraCode",
356
+					$alias_product_perentity.'.accountancy_code_sell_export'=>"ProductAccountancySellExportCode", $alias_product_perentity.'.accountancy_code_buy'=>"ProductAccountancyBuyCode",
357
+					$alias_product_perentity.'.accountancy_code_buy_intra'=>"ProductAccountancyBuyIntraCode", $alias_product_perentity.'.accountancy_code_buy_export'=>"ProductAccountancyBuyExportCode",
358 358
 					'p.note'=>"NotePrivate", 'p.note_public'=>'NotePublic',
359 359
 					'p.weight'=>"Weight", 'p.length'=>"Length", 'p.surface'=>"Surface", 'p.volume'=>"Volume", 'p.customcode'=>'CustomCode',
360 360
 					'p.price_base_type'=>"PriceBase", 'p.price'=>"UnitPriceHT", 'p.price_ttc'=>"UnitPriceTTC", 'p.tva_tx'=>'VATRate', 'p.tosell'=>"OnSell",
@@ -369,8 +369,8 @@  discard block
 block discarded – undo
369 369
 				$this->export_fields_array[$r] = array_merge($this->export_fields_array[$r], array('pa.qty'=>'Qty', 'pa.incdec'=>'ComposedProductIncDecStock'));
370 370
 				$this->export_TypeFields_array[$r] = array(
371 371
 					'p.ref'=>"Text", 'p.label'=>"Text", 'p.description'=>"Text", 'p.url'=>"Text",
372
-					$alias_product_perentity . 'p.accountancy_code_sell'=>"Text", $alias_product_perentity . '.accountancy_code_sell_intra'=>"Text", $alias_product_perentity . '.accountancy_code_sell_export'=>"Text",
373
-					$alias_product_perentity . 'p.accountancy_code_buy'=>"Text", $alias_product_perentity . '.accountancy_code_buy_intra'=>"Text", $alias_product_perentity . '.accountancy_code_buy_export'=>"Text",
372
+					$alias_product_perentity.'p.accountancy_code_sell'=>"Text", $alias_product_perentity.'.accountancy_code_sell_intra'=>"Text", $alias_product_perentity.'.accountancy_code_sell_export'=>"Text",
373
+					$alias_product_perentity.'p.accountancy_code_buy'=>"Text", $alias_product_perentity.'.accountancy_code_buy_intra'=>"Text", $alias_product_perentity.'.accountancy_code_buy_export'=>"Text",
374 374
 					'p.note'=>"Text", 'p.note_public'=>"Text",
375 375
 					'p.weight'=>"Numeric", 'p.length'=>"Numeric", 'p.surface'=>"Numeric", 'p.volume'=>"Numeric", 'p.customcode'=>'Text',
376 376
 					'p.price_base_type'=>"Text", 'p.price'=>"Numeric", 'p.price_ttc'=>"Numeric", 'p.tva_tx'=>'Numeric', 'p.tosell'=>"Boolean", 'p.tobuy'=>"Boolean",
@@ -385,8 +385,8 @@  discard block
 block discarded – undo
385 385
 				$this->export_TypeFields_array[$r] = array_merge($this->export_TypeFields_array[$r], array('pa.qty'=>'Numeric'));
386 386
 				$this->export_entities_array[$r] = array(
387 387
 					'p.rowid'=>"virtualproduct", 'p.ref'=>"virtualproduct", 'p.label'=>"virtualproduct", 'p.description'=>"virtualproduct", 'p.url'=>"virtualproduct",
388
-					$alias_product_perentity . '.accountancy_code_sell'=>'virtualproduct', $alias_product_perentity . '.accountancy_code_sell_intra'=>'virtualproduct', $alias_product_perentity . '.accountancy_code_sell_export'=>'virtualproduct',
389
-					$alias_product_perentity . '.accountancy_code_buy'=>'virtualproduct', $alias_product_perentity . '.accountancy_code_buy_intra'=>'virtualproduct', $alias_product_perentity . '.accountancy_code_buy_export'=>'virtualproduct',
388
+					$alias_product_perentity.'.accountancy_code_sell'=>'virtualproduct', $alias_product_perentity.'.accountancy_code_sell_intra'=>'virtualproduct', $alias_product_perentity.'.accountancy_code_sell_export'=>'virtualproduct',
389
+					$alias_product_perentity.'.accountancy_code_buy'=>'virtualproduct', $alias_product_perentity.'.accountancy_code_buy_intra'=>'virtualproduct', $alias_product_perentity.'.accountancy_code_buy_export'=>'virtualproduct',
390 390
 					'p.note'=>"virtualproduct", 'p.length'=>"virtualproduct",
391 391
 					'p.surface'=>"virtualproduct", 'p.volume'=>"virtualproduct", 'p.weight'=>"virtualproduct", 'p.customcode'=>'virtualproduct',
392 392
 					'p.price_base_type'=>"virtualproduct", 'p.price'=>"virtualproduct", 'p.price_ttc'=>"virtualproduct", 'p.tva_tx'=>"virtualproduct",
@@ -406,9 +406,9 @@  discard block
 block discarded – undo
406 406
 				$this->export_fields_array[$r] = array_merge($this->export_fields_array[$r], array('p2.rowid'=>"Id", 'p2.ref'=>"Ref", 'p2.label'=>"Label", 'p2.description'=>"Description"));
407 407
 				$this->export_entities_array[$r] = array_merge($this->export_entities_array[$r], array('p2.rowid'=>"subproduct", 'p2.ref'=>"subproduct", 'p2.label'=>"subproduct", 'p2.description'=>"subproduct"));
408 408
 				$this->export_sql_start[$r] = 'SELECT DISTINCT ';
409
-				$this->export_sql_end[$r]  = ' FROM '.MAIN_DB_PREFIX.'product as p';
409
+				$this->export_sql_end[$r] = ' FROM '.MAIN_DB_PREFIX.'product as p';
410 410
 				if (!empty($conf->global->MAIN_PRODUCT_PERENTITY_SHARED)) {
411
-					$this->export_sql_end[$r] .= " LEFT JOIN " . MAIN_DB_PREFIX . "product_perentity as pac ON pac.fk_product = p.rowid AND pac.entity = " . ((int) $conf->entity);
411
+					$this->export_sql_end[$r] .= " LEFT JOIN ".MAIN_DB_PREFIX."product_perentity as pac ON pac.fk_product = p.rowid AND pac.entity = ".((int) $conf->entity);
412 412
 				}
413 413
 				$this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'product_extrafields as extra ON p.rowid = extra.fk_object,';
414 414
 				$this->export_sql_end[$r] .= ' '.MAIN_DB_PREFIX.'product_association as pa, '.MAIN_DB_PREFIX.'product as p2';
Please login to merge, or discard this patch.
htdocs/core/modules/modProduct.class.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -187,16 +187,16 @@  discard block
 block discarded – undo
187 187
 			'p.fk_product_type'=>'Type', 'p.tosell'=>"OnSell", 'p.tobuy'=>"OnBuy",
188 188
 			'p.description'=>"Description", 'p.url'=>"PublicUrl",
189 189
 			'p.customcode'=>'CustomCode', 'p.fk_country'=>'IDCountry',
190
-			$alias_product_perentity . '.accountancy_code_sell'=>"ProductAccountancySellCode", $alias_product_perentity . '.accountancy_code_sell_intra'=>"ProductAccountancySellIntraCode",
191
-			$alias_product_perentity . '.accountancy_code_sell_export'=>"ProductAccountancySellExportCode", $alias_product_perentity . '.accountancy_code_buy'=>"ProductAccountancyBuyCode",
192
-			$alias_product_perentity . '.accountancy_code_buy_intra'=>"ProductAccountancyBuyIntraCode", $alias_product_perentity . '.accountancy_code_buy_export'=>"ProductAccountancyBuyExportCode",
190
+			$alias_product_perentity.'.accountancy_code_sell'=>"ProductAccountancySellCode", $alias_product_perentity.'.accountancy_code_sell_intra'=>"ProductAccountancySellIntraCode",
191
+			$alias_product_perentity.'.accountancy_code_sell_export'=>"ProductAccountancySellExportCode", $alias_product_perentity.'.accountancy_code_buy'=>"ProductAccountancyBuyCode",
192
+			$alias_product_perentity.'.accountancy_code_buy_intra'=>"ProductAccountancyBuyIntraCode", $alias_product_perentity.'.accountancy_code_buy_export'=>"ProductAccountancyBuyExportCode",
193 193
 			'p.note'=>"NotePrivate", 'p.note_public'=>'NotePublic',
194 194
 			'p.weight'=>"Weight", 'p.weight_units'=>"WeightUnits", 'p.length'=>"Length", 'p.length_units'=>"LengthUnits", 'p.width'=>"Width", 'p.width_units'=>"WidthUnits", 'p.height'=>"Height", 'p.height_units'=>"HeightUnits",
195 195
 			'p.surface'=>"Surface", 'p.surface_units'=>"SurfaceUnits", 'p.volume'=>"Volume", 'p.volume_units'=>"VolumeUnits",
196 196
 			'p.duration'=>"Duration",
197 197
 			'p.finished' => 'Nature',
198 198
 			'p.price_base_type'=>"PriceBase", 'p.price'=>"UnitPriceHT", 'p.price_ttc'=>"UnitPriceTTC",
199
-			'p.price_min'=>"MinPriceHT",'p.price_min_ttc'=>"MinPriceTTC",
199
+			'p.price_min'=>"MinPriceHT", 'p.price_min_ttc'=>"MinPriceTTC",
200 200
 			'p.tva_tx'=>'VATRate',
201 201
 			'p.datec'=>'DateCreation', 'p.tms'=>'DateModification'
202 202
 		);
@@ -232,8 +232,8 @@  discard block
 block discarded – undo
232 232
 			'p.ref'=>"Text", 'p.label'=>"Text",
233 233
 			'p.fk_product_type'=>'Numeric', 'p.tosell'=>"Boolean", 'p.tobuy'=>"Boolean",
234 234
 			'p.description'=>"Text", 'p.url'=>"Text",
235
-			$alias_product_perentity . '.accountancy_code_sell'=>"Text", $alias_product_perentity . '.accountancy_code_sell_intra'=>"Text", $alias_product_perentity . '.accountancy_code_sell_export'=>"Text",
236
-			$alias_product_perentity . '.accountancy_code_buy'=>"Text", $alias_product_perentity . '.accountancy_code_buy_intra'=>"Text", $alias_product_perentity . '.accountancy_code_buy_export'=>"Text",
235
+			$alias_product_perentity.'.accountancy_code_sell'=>"Text", $alias_product_perentity.'.accountancy_code_sell_intra'=>"Text", $alias_product_perentity.'.accountancy_code_sell_export'=>"Text",
236
+			$alias_product_perentity.'.accountancy_code_buy'=>"Text", $alias_product_perentity.'.accountancy_code_buy_intra'=>"Text", $alias_product_perentity.'.accountancy_code_buy_export'=>"Text",
237 237
 			'p.note'=>"Text", 'p.note_public'=>"Text",
238 238
 			'p.weight'=>"Numeric", 'p.length'=>"Numeric", 'p.width'=>"Numeric", 'p.height'=>"Numeric", 'p.surface'=>"Numeric", 'p.volume'=>"Numeric",
239 239
 			'p.customcode'=>'Text',
@@ -294,9 +294,9 @@  discard block
 block discarded – undo
294 294
 			$this->export_dependencies_array[$r] = array('category'=>'p.rowid');
295 295
 		}
296 296
 		$this->export_sql_start[$r] = 'SELECT DISTINCT ';
297
-		$this->export_sql_end[$r]  = ' FROM '.MAIN_DB_PREFIX.'product as p';
297
+		$this->export_sql_end[$r] = ' FROM '.MAIN_DB_PREFIX.'product as p';
298 298
 		if (!empty($conf->global->MAIN_PRODUCT_PERENTITY_SHARED)) {
299
-			$this->export_sql_end[$r] .= " LEFT JOIN " . MAIN_DB_PREFIX . "product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = " . ((int) $conf->entity);
299
+			$this->export_sql_end[$r] .= " LEFT JOIN ".MAIN_DB_PREFIX."product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = ".((int) $conf->entity);
300 300
 		}
301 301
 		if (!empty($conf->global->EXPORTTOOL_CATEGORIES)) {
302 302
 			$this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'categorie_product as cp ON cp.fk_product = p.rowid LEFT JOIN '.MAIN_DB_PREFIX.'categorie as cat ON cp.fk_categorie = cat.rowid';
@@ -391,9 +391,9 @@  discard block
 block discarded – undo
391 391
 			$this->export_permission[$r] = array(array("produit", "export"));
392 392
 			$this->export_fields_array[$r] = array(
393 393
 				'p.rowid'=>"Id", 'p.ref'=>"Ref", 'p.label'=>"Label", 'p.description'=>"Description", 'p.url'=>"PublicUrl",
394
-				$alias_product_perentity . '.accountancy_code_sell'=>"ProductAccountancySellCode", $alias_product_perentity . '.accountancy_code_sell_intra'=>"ProductAccountancySellIntraCode",
395
-				$alias_product_perentity . '.accountancy_code_sell_export'=>"ProductAccountancySellExportCode", $alias_product_perentity . '.accountancy_code_buy'=>"ProductAccountancyBuyCode",
396
-				$alias_product_perentity . '.accountancy_code_buy_intra'=>"ProductAccountancyBuyIntraCode", $alias_product_perentity . '.accountancy_code_buy_export'=>"ProductAccountancyBuyExportCode",
394
+				$alias_product_perentity.'.accountancy_code_sell'=>"ProductAccountancySellCode", $alias_product_perentity.'.accountancy_code_sell_intra'=>"ProductAccountancySellIntraCode",
395
+				$alias_product_perentity.'.accountancy_code_sell_export'=>"ProductAccountancySellExportCode", $alias_product_perentity.'.accountancy_code_buy'=>"ProductAccountancyBuyCode",
396
+				$alias_product_perentity.'.accountancy_code_buy_intra'=>"ProductAccountancyBuyIntraCode", $alias_product_perentity.'.accountancy_code_buy_export'=>"ProductAccountancyBuyExportCode",
397 397
 				'p.note'=>"NotePrivate", 'p.note_public'=>'NotePublic',
398 398
 				'p.weight'=>"Weight", 'p.length'=>"Length", 'p.surface'=>"Surface", 'p.volume'=>"Volume", 'p.customcode'=>'CustomCode',
399 399
 				'p.price_base_type'=>"PriceBase", 'p.price'=>"UnitPriceHT", 'p.price_ttc'=>"UnitPriceTTC", 'p.tva_tx'=>'VATRate', 'p.tosell'=>"OnSell",
@@ -408,8 +408,8 @@  discard block
 block discarded – undo
408 408
 			$this->export_fields_array[$r] = array_merge($this->export_fields_array[$r], array('pa.qty'=>'Qty', 'pa.incdec'=>'ComposedProductIncDecStock'));
409 409
 			$this->export_TypeFields_array[$r] = array(
410 410
 				'p.ref'=>"Text", 'p.label'=>"Text", 'p.description'=>"Text", 'p.url'=>"Text",
411
-				$alias_product_perentity . '.accountancy_code_sell'=>"Text", $alias_product_perentity . '.accountancy_code_sell_intra'=>"Text", $alias_product_perentity . '.accountancy_code_sell_export'=>"Text",
412
-				$alias_product_perentity . '.accountancy_code_buy'=>"Text", $alias_product_perentity . '.accountancy_code_buy_intra'=>"Text", $alias_product_perentity . '.accountancy_code_buy_export'=>"Text",
411
+				$alias_product_perentity.'.accountancy_code_sell'=>"Text", $alias_product_perentity.'.accountancy_code_sell_intra'=>"Text", $alias_product_perentity.'.accountancy_code_sell_export'=>"Text",
412
+				$alias_product_perentity.'.accountancy_code_buy'=>"Text", $alias_product_perentity.'.accountancy_code_buy_intra'=>"Text", $alias_product_perentity.'.accountancy_code_buy_export'=>"Text",
413 413
 				'p.note'=>"Text", 'p.note_public'=>"Text",
414 414
 				'p.weight'=>"Numeric", 'p.length'=>"Numeric", 'p.surface'=>"Numeric", 'p.volume'=>"Numeric", 'p.customcode'=>'Text',
415 415
 				'p.price_base_type'=>"Text", 'p.price'=>"Numeric", 'p.price_ttc'=>"Numeric", 'p.tva_tx'=>'Numeric', 'p.tosell'=>"Boolean", 'p.tobuy'=>"Boolean",
@@ -424,8 +424,8 @@  discard block
 block discarded – undo
424 424
 			$this->export_TypeFields_array[$r] = array_merge($this->export_TypeFields_array[$r], array('pa.qty'=>'Numeric'));
425 425
 			$this->export_entities_array[$r] = array(
426 426
 				'p.rowid'=>"virtualproduct", 'p.ref'=>"virtualproduct", 'p.label'=>"virtualproduct", 'p.description'=>"virtualproduct", 'p.url'=>"virtualproduct",
427
-				$alias_product_perentity . '.accountancy_code_sell'=>'virtualproduct', $alias_product_perentity . '.accountancy_code_sell_intra'=>'virtualproduct', $alias_product_perentity . '.accountancy_code_sell_export'=>'virtualproduct',
428
-				$alias_product_perentity . '.accountancy_code_buy'=>'virtualproduct', $alias_product_perentity . '.accountancy_code_buy_intra'=>'virtualproduct', $alias_product_perentity . '.accountancy_code_buy_export'=>'virtualproduct',
427
+				$alias_product_perentity.'.accountancy_code_sell'=>'virtualproduct', $alias_product_perentity.'.accountancy_code_sell_intra'=>'virtualproduct', $alias_product_perentity.'.accountancy_code_sell_export'=>'virtualproduct',
428
+				$alias_product_perentity.'.accountancy_code_buy'=>'virtualproduct', $alias_product_perentity.'.accountancy_code_buy_intra'=>'virtualproduct', $alias_product_perentity.'.accountancy_code_buy_export'=>'virtualproduct',
429 429
 				'p.note'=>"virtualproduct", 'p.length'=>"virtualproduct",
430 430
 				'p.surface'=>"virtualproduct", 'p.volume'=>"virtualproduct", 'p.weight'=>"virtualproduct", 'p.customcode'=>'virtualproduct',
431 431
 				'p.price_base_type'=>"virtualproduct", 'p.price'=>"virtualproduct", 'p.price_ttc'=>"virtualproduct", 'p.tva_tx'=>"virtualproduct",
@@ -445,11 +445,11 @@  discard block
 block discarded – undo
445 445
 			$this->export_fields_array[$r] = array_merge($this->export_fields_array[$r], array('p2.rowid'=>"Id", 'p2.ref'=>"Ref", 'p2.label'=>"Label", 'p2.description'=>"Description"));
446 446
 			$this->export_entities_array[$r] = array_merge($this->export_entities_array[$r], array('p2.rowid'=>"subproduct", 'p2.ref'=>"subproduct", 'p2.label'=>"subproduct", 'p2.description'=>"subproduct"));
447 447
 			$this->export_sql_start[$r] = 'SELECT DISTINCT ';
448
-			$this->export_sql_end[$r]  = ' FROM '.MAIN_DB_PREFIX.'product as p';
448
+			$this->export_sql_end[$r] = ' FROM '.MAIN_DB_PREFIX.'product as p';
449 449
 			if (!empty($conf->global->MAIN_PRODUCT_PERENTITY_SHARED)) {
450
-				$this->export_sql_end[$r] .= " LEFT JOIN " . MAIN_DB_PREFIX . "product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = " . ((int) $conf->entity);
450
+				$this->export_sql_end[$r] .= " LEFT JOIN ".MAIN_DB_PREFIX."product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = ".((int) $conf->entity);
451 451
 			}
452
-			$this->export_sql_end[$r] .=' LEFT JOIN '.MAIN_DB_PREFIX.'product_extrafields as extra ON p.rowid = extra.fk_object,';
452
+			$this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'product_extrafields as extra ON p.rowid = extra.fk_object,';
453 453
 			$this->export_sql_end[$r] .= ' '.MAIN_DB_PREFIX.'product_association as pa, '.MAIN_DB_PREFIX.'product as p2';
454 454
 			$this->export_sql_end[$r] .= ' WHERE p.entity IN ('.getEntity('product').')'; // For product and service profile
455 455
 			$this->export_sql_end[$r] .= ' AND p.rowid = pa.fk_product_pere AND p2.rowid = pa.fk_product_fils';
Please login to merge, or discard this patch.
htdocs/knowledgemanagement/class/knowledgerecord.class.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -820,7 +820,9 @@
 block discarded – undo
820 820
 		}
821 821
 
822 822
 		$statusType = 'status'.$status;
823
-		if ($status == self::STATUS_VALIDATED) $statusType = 'status4';
823
+		if ($status == self::STATUS_VALIDATED) {
824
+			$statusType = 'status4';
825
+		}
824 826
 		if ($status == self::STATUS_CANCELED) {
825 827
 			$statusType = 'status6';
826 828
 		}
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 	/**
100 100
 	 * @var array  Array with all fields and their property. Do not use it as a static var. It may be modified by constructor.
101 101
 	 */
102
-	public $fields=array(
102
+	public $fields = array(
103 103
 		'rowid' => array('type'=>'integer', 'label'=>'TechnicalID', 'enabled'=>'1', 'position'=>1, 'notnull'=>1, 'visible'=>0, 'noteditable'=>'1', 'index'=>1, 'css'=>'left', 'comment'=>"Id"),
104 104
 		'ref' => array('type'=>'varchar(128)', 'label'=>'Ref', 'enabled'=>'1', 'position'=>10, 'notnull'=>1, 'default'=>'(PROV)', 'visible'=>5, 'index'=>1, 'searchall'=>1, 'comment'=>"Reference of object", "csslist"=>"nowraponall", "showoncombobox"=>1),
105 105
 		'entity' =>array('type'=>'integer', 'label'=>'Entity', 'default'=>1, 'enabled'=>1, 'visible'=>0, 'notnull'=>1, 'position'=>20, 'index'=>1),
@@ -737,12 +737,12 @@  discard block
 block discarded – undo
737 737
 		$datas['label'] = '<br><b>'.$langs->trans('Ref').':</b> '.$this->ref;
738 738
 		$datas['question'] = '<br><b>'.$langs->trans('Question').':</b> '.$this->question;
739 739
 		$labellang = ($this->lang ? $langs->trans('Language_'.$this->lang) : '');
740
-		$datas['lang'] = '<br><b>'.$langs->trans('Language').':</b> ' . picto_from_langcode($this->lang, 'class="paddingrightonly saturatemedium opacitylow"') . $labellang;
740
+		$datas['lang'] = '<br><b>'.$langs->trans('Language').':</b> '.picto_from_langcode($this->lang, 'class="paddingrightonly saturatemedium opacitylow"').$labellang;
741 741
 		// show categories for this record only in ajax to not overload lists
742 742
 		if (isModEnabled('categorie') && !$nofetch) {
743
-			require_once DOL_DOCUMENT_ROOT . '/categories/class/categorie.class.php';
743
+			require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
744 744
 			$form = new Form($this->db);
745
-			$datas['categories'] = '<br>' . $form->showCategories($this->id, Categorie::TYPE_KNOWLEDGEMANAGEMENT, 1);
745
+			$datas['categories'] = '<br>'.$form->showCategories($this->id, Categorie::TYPE_KNOWLEDGEMANAGEMENT, 1);
746 746
 		}
747 747
 
748 748
 		return $datas;
@@ -803,7 +803,7 @@  discard block
 block discarded – undo
803 803
 				$label = $langs->trans("ShowKnowledgeRecord");
804 804
 				$linkclose .= ' alt="'.dol_escape_htmltag($label, 1).'"';
805 805
 			}
806
-			$linkclose .= ($label ? ' title="'.dol_escape_htmltag($label, 1).'"' :  ' title="tocomplete"');
806
+			$linkclose .= ($label ? ' title="'.dol_escape_htmltag($label, 1).'"' : ' title="tocomplete"');
807 807
 			$linkclose .= $dataparams.' class="'.$classfortooltip.($morecss ? ' '.$morecss : '').'"';
808 808
 		} else {
809 809
 			$linkclose = ($morecss ? ' class="'.$morecss.'"' : '');
@@ -995,7 +995,7 @@  discard block
 block discarded – undo
995 995
 		if (!empty($conf->global->KNOWLEDGEMANAGEMENT_KNOWLEDGERECORD_ADDON)) {
996 996
 			$mybool = false;
997 997
 
998
-			$file = getDolGlobalString('KNOWLEDGEMANAGEMENT_KNOWLEDGERECORD_ADDON') . ".php";
998
+			$file = getDolGlobalString('KNOWLEDGEMANAGEMENT_KNOWLEDGERECORD_ADDON').".php";
999 999
 			$classname = $conf->global->KNOWLEDGEMANAGEMENT_KNOWLEDGERECORD_ADDON;
1000 1000
 
1001 1001
 			// Include file with class
Please login to merge, or discard this patch.
htdocs/website/index.php 2 patches
Braces   +18 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,7 +26,9 @@  discard block
 block discarded – undo
26 26
 define('NOSTYLECHECK', 1);
27 27
 define('USEDOLIBARREDITOR', 1);
28 28
 define('FORCE_CKEDITOR', 1); // We need CKEditor, even if module is off.
29
-if (!defined('DISABLE_JS_GRAHP')) define('DISABLE_JS_GRAPH', 1);
29
+if (!defined('DISABLE_JS_GRAHP')) {
30
+	define('DISABLE_JS_GRAPH', 1);
31
+}
30 32
 
31 33
 //header('X-XSS-Protection:0');	// Disable XSS filtering protection of some browsers (note: use of Content-Security-Policy is more efficient). Disabled as deprecated.
32 34
 
@@ -592,7 +594,9 @@  discard block
 block discarded – undo
592 594
 		$arrayotherlang = explode(',', GETPOST('WEBSITE_OTHERLANG', 'alphanohtml'));
593 595
 		foreach ($arrayotherlang as $key => $val) {
594 596
 			// It possible we have empty val here if postparam WEBSITE_OTHERLANG is empty or set like this : 'en,,sv' or 'en,sv,'
595
-			if (empty(trim($val))) continue;
597
+			if (empty(trim($val))) {
598
+				continue;
599
+			}
596 600
 			$arrayotherlang[$key] = substr(trim($val), 0, 2); // Kept short language code only
597 601
 		}
598 602
 
@@ -1336,7 +1340,9 @@  discard block
 block discarded – undo
1336 1340
 				$arrayotherlang = explode(',', GETPOST('WEBSITE_OTHERLANG', 'alphanohtml'));
1337 1341
 				foreach ($arrayotherlang as $key => $val) {
1338 1342
 					// It possible we have empty val here if postparam WEBSITE_OTHERLANG is empty or set like this : 'en,,sv' or 'en,sv,'
1339
-					if (empty(trim($val))) continue;
1343
+					if (empty(trim($val))) {
1344
+						continue;
1345
+					}
1340 1346
 					$arrayotherlang[$key] = substr(trim($val), 0, 2); // Kept short language code only
1341 1347
 				}
1342 1348
 
@@ -1793,7 +1799,9 @@  discard block
 block discarded – undo
1793 1799
 					// Under certain conditions $sublang can be an empty string
1794 1800
 					// ($object->otherlang with empty string or with string like this 'en,,sv')
1795 1801
 					// if is the case we try to re-delete the main alias file. Avoid it.
1796
-					if (empty(trim($sublang))) continue;
1802
+					if (empty(trim($sublang))) {
1803
+						continue;
1804
+					}
1797 1805
 					$fileoldaliassub = $dirname.'/'.$sublang.'/'.$filename;
1798 1806
 					dol_delete_file($fileoldaliassub);
1799 1807
 				}
@@ -1816,7 +1824,9 @@  discard block
 block discarded – undo
1816 1824
 							// Under certain conditions $ sublang can be an empty string
1817 1825
 							// ($object->otherlang with empty string or with string like this 'en,,sv')
1818 1826
 							// if is the case we try to re-delete the main alias file. Avoid it.
1819
-							if (empty(trim($sublang))) continue;
1827
+							if (empty(trim($sublang))) {
1828
+								continue;
1829
+							}
1820 1830
 							$fileoldaliassub = $dirname.'/'.$sublang.'/'.$filename;
1821 1831
 							dol_delete_file($fileoldaliassub);
1822 1832
 						}
@@ -2903,7 +2913,9 @@  discard block
 block discarded – undo
2903 2913
 							$onlylang[$website->lang] = $website->lang.' ('.$langs->trans("Default").')';
2904 2914
 						}
2905 2915
 						foreach (explode(',', $website->otherlang) as $langkey) {
2906
-							if (empty(trim($langkey))) continue;
2916
+							if (empty(trim($langkey))) {
2917
+								continue;
2918
+							}
2907 2919
 							$onlylang[$langkey] = $langkey;
2908 2920
 						}
2909 2921
 						$textifempty = $langs->trans("Default");
Please login to merge, or discard this patch.
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
 }
344 344
 
345 345
 $usercanedit = $user->rights->website->write;
346
-$permissiontoadd = $user->rights->website->write;	// Used by the include of actions_addupdatedelete.inc.php and actions_linkedfiles
346
+$permissiontoadd = $user->rights->website->write; // Used by the include of actions_addupdatedelete.inc.php and actions_linkedfiles
347 347
 $permissiontodelete = $user->hasRight('website', 'delete');
348 348
 
349 349
 
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
 if ($sortorder) {
410 410
 	$backtopage .= '&sortorder='.urlencode($sortorder);
411 411
 }
412
-include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';	// This manage 'sendit', 'confirm_deletefile', 'renamefile' action when submitting new file.
412
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php'; // This manage 'sendit', 'confirm_deletefile', 'renamefile' action when submitting new file.
413 413
 
414 414
 $backtopage = $savbacktopage;
415 415
 //var_dump($backtopage);
@@ -1488,7 +1488,7 @@  discard block
 block discarded – undo
1488 1488
 					$error++;
1489 1489
 					setEventMessages($langs->trans('ErrorFaviconMustBeASquaredImage'), array(), 'errors');
1490 1490
 				}
1491
-				if (! $error && ($filesize[0] != 16 && $filesize[0] != 32 && $filesize[0] != 64)) {
1491
+				if (!$error && ($filesize[0] != 16 && $filesize[0] != 32 && $filesize[0] != 64)) {
1492 1492
 					$error++;
1493 1493
 					setEventMessages($langs->trans('ErrorFaviconSize'), array(), 'errors');
1494 1494
 				}
@@ -1500,7 +1500,7 @@  discard block
 block discarded – undo
1500 1500
 				if (!GETPOSTISSET('updateandstay')) {	// If we click on "Save And Stay", we don not make the redirect
1501 1501
 					$action = 'preview';
1502 1502
 					if ($backtopage) {
1503
-						$backtopage = preg_replace('/searchstring=[^&]*/', '', $backtopage);	// Clean backtopage url
1503
+						$backtopage = preg_replace('/searchstring=[^&]*/', '', $backtopage); // Clean backtopage url
1504 1504
 						header("Location: ".$backtopage);
1505 1505
 						exit;
1506 1506
 					}
@@ -1533,7 +1533,7 @@  discard block
 block discarded – undo
1533 1533
 			$phpfullcodestring = dolKeepOnlyPhpCode($dataposted);
1534 1534
 
1535 1535
 			// Security analysis
1536
-			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring);	// Contains the setEventMessages
1536
+			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages
1537 1537
 
1538 1538
 			if (!$errorphpcheck) {
1539 1539
 				$htmlheadercontent = '';
@@ -1571,7 +1571,7 @@  discard block
 block discarded – undo
1571 1571
 			$phpfullcodestring = dolKeepOnlyPhpCode($dataposted);
1572 1572
 
1573 1573
 			// Security analysis
1574
-			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring);	// Contains the setEventMessages
1574
+			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages
1575 1575
 
1576 1576
 			if (!$errorphpcheck) {
1577 1577
 				$csscontent = '';
@@ -1614,7 +1614,7 @@  discard block
 block discarded – undo
1614 1614
 			$phpfullcodestring = dolKeepOnlyPhpCode($dataposted);
1615 1615
 
1616 1616
 			// Security analysis
1617
-			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring);	// Contains the setEventMessages
1617
+			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages
1618 1618
 
1619 1619
 			if (!$errorphpcheck) {
1620 1620
 				$jscontent = '';
@@ -1652,7 +1652,7 @@  discard block
 block discarded – undo
1652 1652
 			$phpfullcodestring = dolKeepOnlyPhpCode($dataposted);
1653 1653
 
1654 1654
 			// Security analysis
1655
-			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring);	// Contains the setEventMessages
1655
+			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages
1656 1656
 
1657 1657
 			if (!$errorphpcheck) {
1658 1658
 				$robotcontent = '';
@@ -1690,7 +1690,7 @@  discard block
 block discarded – undo
1690 1690
 			$phpfullcodestring = dolKeepOnlyPhpCode($dataposted);
1691 1691
 
1692 1692
 			// Security analysis
1693
-			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring);	// Contains the setEventMessages
1693
+			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages
1694 1694
 
1695 1695
 			if (!$errorphpcheck) {
1696 1696
 				$htaccesscontent = '';
@@ -1714,7 +1714,7 @@  discard block
 block discarded – undo
1714 1714
 			$phpfullcodestring = dolKeepOnlyPhpCode($dataposted);
1715 1715
 
1716 1716
 			// Security analysis
1717
-			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring);	// Contains the setEventMessages
1717
+			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages
1718 1718
 
1719 1719
 			if (!$errorphpcheck) {
1720 1720
 				$manifestjsoncontent = '';
@@ -1752,7 +1752,7 @@  discard block
 block discarded – undo
1752 1752
 			$phpfullcodestring = dolKeepOnlyPhpCode($dataposted);
1753 1753
 
1754 1754
 			// Security analysis
1755
-			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring);	// Contains the setEventMessages
1755
+			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages
1756 1756
 
1757 1757
 			if (!$errorphpcheck) {
1758 1758
 				$readmecontent = '';
@@ -1790,7 +1790,7 @@  discard block
 block discarded – undo
1790 1790
 			$phpfullcodestring = dolKeepOnlyPhpCode($dataposted);
1791 1791
 
1792 1792
 			// Security analysis
1793
-			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring);	// Contains the setEventMessages
1793
+			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages
1794 1794
 
1795 1795
 			if (!$errorphpcheck) {
1796 1796
 				$licensecontent = '';
@@ -1832,7 +1832,7 @@  discard block
 block discarded – undo
1832 1832
 			if (!GETPOSTISSET('updateandstay')) {	// If we click on "Save And Stay", we don not make the redirect
1833 1833
 				$action = 'preview';
1834 1834
 				if ($backtopage) {
1835
-					$backtopage = preg_replace('/searchstring=[^&]*/', '', $backtopage);	// Clean backtopage url
1835
+					$backtopage = preg_replace('/searchstring=[^&]*/', '', $backtopage); // Clean backtopage url
1836 1836
 					header("Location: ".$backtopage);
1837 1837
 					exit;
1838 1838
 				}
@@ -1851,7 +1851,7 @@  discard block
 block discarded – undo
1851 1851
 
1852 1852
 	$object->fk_default_home = $pageid;
1853 1853
 	$res = $object->update($user);
1854
-	if (! ($res > 0)) {
1854
+	if (!($res > 0)) {
1855 1855
 		$error++;
1856 1856
 		setEventMessages($object->error, $object->errors, 'errors');
1857 1857
 	}
@@ -2238,7 +2238,7 @@  discard block
 block discarded – undo
2238 2238
 
2239 2239
 			$phpfullcodestringold = dolKeepOnlyPhpCode($objectpage->content);
2240 2240
 
2241
-			$objectpage->content = GETPOST('PAGE_CONTENT', 'none');	// any HTML content allowed
2241
+			$objectpage->content = GETPOST('PAGE_CONTENT', 'none'); // any HTML content allowed
2242 2242
 
2243 2243
 			$phpfullcodestring = dolKeepOnlyPhpCode($objectpage->content);
2244 2244
 
@@ -2432,7 +2432,7 @@  discard block
 block discarded – undo
2432 2432
 				$fileofzip = '';
2433 2433
 				if (GETPOSTISSET('templateuserfile')) {
2434 2434
 					// Case we selected one template
2435
-					$fileofzip = DOL_DATA_ROOT.'/doctemplates/websites/'.GETPOST('templateuserfile', 'alpha');	// $fileofzip will be sanitized later into the importWebSite()
2435
+					$fileofzip = DOL_DATA_ROOT.'/doctemplates/websites/'.GETPOST('templateuserfile', 'alpha'); // $fileofzip will be sanitized later into the importWebSite()
2436 2436
 				} elseif (!empty($_FILES) && is_array($_FILES['userfile'])) {
2437 2437
 					// Case we upload a new template
2438 2438
 					if (is_array($_FILES['userfile']['tmp_name'])) {
@@ -2511,7 +2511,7 @@  discard block
 block discarded – undo
2511 2511
 	if ($website->virtualhost) {
2512 2512
 		$domainname = $website->virtualhost;
2513 2513
 	}
2514
-	if (! preg_match('/^http/i', $domainname)) {
2514
+	if (!preg_match('/^http/i', $domainname)) {
2515 2515
 		$domainname = 'https://'.$domainname;
2516 2516
 	}
2517 2517
 
@@ -2577,7 +2577,7 @@  discard block
 block discarded – undo
2577 2577
 				$url->appendChild($lastmod);
2578 2578
 				// Add suggested frequency for refresh
2579 2579
 				if (!empty($conf->global->WEBSITE_SITEMAPS_ADD_WEEKLY_FREQ)) {
2580
-					$changefreq = $domtree->createElement('changefreq', 'weekly');	// TODO Manage other values
2580
+					$changefreq = $domtree->createElement('changefreq', 'weekly'); // TODO Manage other values
2581 2581
 					$url->appendChild($changefreq);
2582 2582
 				}
2583 2583
 				// Add higher priority for home page
@@ -2682,7 +2682,7 @@  discard block
 block discarded – undo
2682 2682
 				$url->appendChild($lastmod);
2683 2683
 				// Add suggested frequency for refresh
2684 2684
 				if (!empty($conf->global->WEBSITE_SITEMAPS_ADD_WEEKLY_FREQ)) {
2685
-					$changefreq = $domtree->createElement('changefreq', 'weekly');	// TODO Manage other values
2685
+					$changefreq = $domtree->createElement('changefreq', 'weekly'); // TODO Manage other values
2686 2686
 					$url->appendChild($changefreq);
2687 2687
 				}
2688 2688
 
@@ -2764,7 +2764,7 @@  discard block
 block discarded – undo
2764 2764
 
2765 2765
 print "\n";
2766 2766
 print '<!-- Open form for all page -->'."\n";
2767
-print '<form action="'.$_SERVER["PHP_SELF"].($action == 'file_manager' ? '?uploadform=1': '').'" method="POST" enctype="multipart/form-data" class="websiteformtoolbar">';
2767
+print '<form action="'.$_SERVER["PHP_SELF"].($action == 'file_manager' ? '?uploadform=1' : '').'" method="POST" enctype="multipart/form-data" class="websiteformtoolbar">';
2768 2768
 print '<input type="hidden" name="token" value="'.newToken().'">';
2769 2769
 print '<input type="hidden" name="backtopage" value="'.$backtopage.'">';
2770 2770
 print '<input type="hidden" name="dol_openinpopup" value="'.$dol_openinpopup.'">';
@@ -3266,7 +3266,7 @@  discard block
 block discarded – undo
3266 3266
 						$formquestion[] = array('type' => 'checkbox', 'tdclass'=>'maxwidth200', 'name' => 'is_a_translation', 'label' => $langs->trans("PageIsANewTranslation"), 'value' => 0, 'morecss'=>'margintoponly');
3267 3267
 					}
3268 3268
 
3269
-					$value= $formadmin->select_language($preselectedlanguage, 'newlang', 0, null, $textifempty, 0, 0, 'minwidth200', 1, 0, 0, $onlylang, 1);
3269
+					$value = $formadmin->select_language($preselectedlanguage, 'newlang', 0, null, $textifempty, 0, 0, 'minwidth200', 1, 0, 0, $onlylang, 1);
3270 3270
 					$formquestion[] = array('type' => 'other', 'name' => 'newlang', 'label' => $form->textwithpicto($langs->trans("Language"), $langs->trans("DefineListOfAltLanguagesInWebsiteProperties")), 'value' => $value);
3271 3271
 
3272 3272
 					$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?website='.$object->ref.'&pageid='.$pageid, $langs->trans('ClonePage'), '', 'confirm_createpagefromclone', $formquestion, 0, 1, 300, 550);
@@ -3294,7 +3294,7 @@  discard block
 block discarded – undo
3294 3294
 				print '<!-- button EditInLine and ShowSubcontainers -->'."\n";
3295 3295
 				print '<div class="websiteselectionsection inline-block">';
3296 3296
 
3297
-				print '<div class="inline-block marginrightonly">';	// Button include dynamic contant
3297
+				print '<div class="inline-block marginrightonly">'; // Button include dynamic contant
3298 3298
 				print $langs->trans("ShowSubcontainers");
3299 3299
 				if (empty($conf->global->WEBSITE_SUBCONTAINERSINLINE)) {
3300 3300
 					print '<a class="nobordertransp nohoverborder marginleftonlyshort valignmiddle"'.$disabled.' href="'.$_SERVER["PHP_SELF"].'?website='.$object->ref.'&pageid='.$websitepage->id.'&action=setshowsubcontainers&token='.newToken().'">'.img_picto($langs->trans("ShowSubContainersOnOff", $langs->transnoentitiesnoconv("Off")), 'switch_off', '', false, 0, 0, '', 'nomarginleft').'</a>';
@@ -3303,7 +3303,7 @@  discard block
 block discarded – undo
3303 3303
 				}
3304 3304
 				print '</div>';
3305 3305
 
3306
-				print '<div class="inline-block marginrightonly">';	// Button edit inline
3306
+				print '<div class="inline-block marginrightonly">'; // Button edit inline
3307 3307
 
3308 3308
 				print '<span id="switchckeditorinline">'."\n";
3309 3309
 				// Enable CKEditor inline with js on section and div with conteneditable=true
@@ -3421,7 +3421,7 @@  discard block
 block discarded – undo
3421 3421
 				} else {
3422 3422
 					$disabled = '';
3423 3423
 					$title = '';
3424
-					$url = $_SERVER["PHP_SELF"].'?action=delete&token='.newToken().'&pageid='.((int) $websitepage->id).'&website='.urlencode($website->ref);	// action=delete for webpage, deletesite for website
3424
+					$url = $_SERVER["PHP_SELF"].'?action=delete&token='.newToken().'&pageid='.((int) $websitepage->id).'&website='.urlencode($website->ref); // action=delete for webpage, deletesite for website
3425 3425
 				}
3426 3426
 				print '<a href="'.$url.'" class="button buttonDelete bordertransp'.($disabled ? ' disabled' : '').'"'.$disabled.' title="'.dol_escape_htmltag($title).'">'.img_picto('', 'delete', 'class=""').'<span class="hideonsmartphone paddingleft">'.$langs->trans("Delete").'</span></a>';
3427 3427
 				print '</span>';
@@ -3626,7 +3626,7 @@  discard block
 block discarded – undo
3626 3626
 		// Clean the php htaccesscontent file to remove php code and get only html part
3627 3627
 		$htaccesscontent = preg_replace('/<\?php \/\/ BEGIN PHP[^\?]*END PHP \?>\n*/ims', '', $htaccesscontent);
3628 3628
 	} else {
3629
-		$htaccesscontent = GETPOST('WEBSITE_HTACCESS', 'nohtml');	// We must use 'nohtml' and not 'alphanohtml' because we must accept "
3629
+		$htaccesscontent = GETPOST('WEBSITE_HTACCESS', 'nohtml'); // We must use 'nohtml' and not 'alphanohtml' because we must accept "
3630 3630
 	}
3631 3631
 	if (!trim($htaccesscontent)) {
3632 3632
 		$htaccesscontent .= "# Order allow,deny\n";
@@ -3728,7 +3728,7 @@  discard block
 block discarded – undo
3728 3728
 	$maxfilesizearray = getMaxFileSizeArray();
3729 3729
 	$maxmin = $maxfilesizearray['maxmin'];
3730 3730
 	if ($maxmin > 0) {
3731
-		print '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">';	// MAX_FILE_SIZE must precede the field type=file
3731
+		print '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">'; // MAX_FILE_SIZE must precede the field type=file
3732 3732
 	}
3733 3733
 	print '<input type="file" class="flat minwidth300" name="addedfile" id="addedfile"/>';
3734 3734
 
@@ -3984,7 +3984,7 @@  discard block
 block discarded – undo
3984 3984
 		$maxfilesizearray = getMaxFileSizeArray();
3985 3985
 		$maxmin = $maxfilesizearray['maxmin'];
3986 3986
 		if ($maxmin > 0) {
3987
-			print '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">';	// MAX_FILE_SIZE must precede the field type=file
3987
+			print '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">'; // MAX_FILE_SIZE must precede the field type=file
3988 3988
 		}
3989 3989
 		print '<input class="flat minwidth400" type="file" name="userfile[]" accept=".zip">';
3990 3990
 		print '<input type="submit" class="button small" name="buttonsubmitimportfile" value="'.dol_escape_htmltag($langs->trans("Upload")).'">';
@@ -4503,7 +4503,7 @@  discard block
 block discarded – undo
4503 4503
 
4504 4504
 
4505 4505
 	$module = 'medias';
4506
-	$formalreadyopen = 2;	// So the form to submit a new file will not be opened another time inside the core/tpl/filemanager.tpl.php
4506
+	$formalreadyopen = 2; // So the form to submit a new file will not be opened another time inside the core/tpl/filemanager.tpl.php
4507 4507
 	if (empty($url)) {
4508 4508
 		$url = DOL_URL_ROOT.'/website/index.php'; // Must be an url without param
4509 4509
 	}
@@ -4556,7 +4556,7 @@  discard block
 block discarded – undo
4556 4556
 
4557 4557
 	require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
4558 4558
 	$poscursor = array('x'=>GETPOST('PAGE_CONTENT_x'), 'y'=>GETPOST('PAGE_CONTENT_y'));
4559
-	$doleditor=new DolEditor('PAGE_CONTENT', $contentforedit, '', 500, 'Full', '', true, true, true, ROWS_5, '90%', 0, $poscursor);
4559
+	$doleditor = new DolEditor('PAGE_CONTENT', $contentforedit, '', 500, 'Full', '', true, true, true, ROWS_5, '90%', 0, $poscursor);
4560 4560
 	$doleditor->Create(0, '', false);
4561 4561
 }
4562 4562
 
@@ -4734,7 +4734,7 @@  discard block
 block discarded – undo
4734 4734
 			print getTitleFieldOfList("Categories", 0, $_SERVER['PHP_SELF']);
4735 4735
 			print getTitleFieldOfList("Language", 0, $_SERVER['PHP_SELF'], 'lang', '', $param, '', $sortfield, $sortorder, 'center ')."\n";
4736 4736
 			print getTitleFieldOfList("", 0, $_SERVER['PHP_SELF']);
4737
-			print getTitleFieldOfList("DateLastModification", 0, $_SERVER['PHP_SELF'], 'tms', '', $param, '', $sortfield, $sortorder, 'center ')."\n";		// Date last modif
4737
+			print getTitleFieldOfList("DateLastModification", 0, $_SERVER['PHP_SELF'], 'tms', '', $param, '', $sortfield, $sortorder, 'center ')."\n"; // Date last modif
4738 4738
 			print getTitleFieldOfList("", 0, $_SERVER['PHP_SELF']);
4739 4739
 			print getTitleFieldOfList($selectedfields, 0, $_SERVER["PHP_SELF"], '', '', '', '', $sortfield, $sortorder, 'center maxwidthsearch ')."\n";
4740 4740
 			print '</tr>';
Please login to merge, or discard this patch.
htdocs/contrat/card.php 2 patches
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1984,9 +1984,12 @@
 block discarded – undo
1984 1984
 
1985 1985
 				$parameters = array();
1986 1986
 				$reshook = $hookmanager->executeHooks('formAddObjectLine', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
1987
-				if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
1988
-				if (empty($reshook))
1989
-					$object->formAddObjectLine(1, $mysoc, $soc);
1987
+				if ($reshook < 0) {
1988
+					setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
1989
+				}
1990
+				if (empty($reshook)) {
1991
+									$object->formAddObjectLine(1, $mysoc, $soc);
1992
+				}
1990 1993
 			}
1991 1994
 
1992 1995
 			print '</table>';
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 $permissionnote = $user->hasRight('contrat', 'creer'); // Used by the include of actions_setnotes.inc.php
101 101
 $permissiondellink = $user->hasRight('contrat', 'creer'); // Used by the include of actions_dellink.inc.php
102 102
 $permissiontodelete = ($user->hasRight('contrat', 'creer') && $object->statut == $object::STATUS_DRAFT) || $user->hasRight('contrat', 'supprimer');
103
-$permissiontoadd   = $user->hasRight('contrat', 'creer');     //  Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php
103
+$permissiontoadd   = $user->hasRight('contrat', 'creer'); //  Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php
104 104
 $permissiontoedit = $permissiontoadd;
105 105
 $permissiontoactivate = $user->hasRight('contrat', 'activer');
106 106
 $error = 0;
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 
144 144
 	include DOL_DOCUMENT_ROOT.'/core/actions_dellink.inc.php'; // Must be include, not include_once
145 145
 
146
-	include DOL_DOCUMENT_ROOT.'/core/actions_lineupdown.inc.php';  // Must be include, not include_once
146
+	include DOL_DOCUMENT_ROOT.'/core/actions_lineupdown.inc.php'; // Must be include, not include_once
147 147
 
148 148
 	if ($action == 'confirm_active' && $confirm == 'yes' && $permissiontoactivate) {
149 149
 		$date_start = '';
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
 									$lines[$i]->pa_ht,
371 371
 									$array_options,
372 372
 									$lines[$i]->fk_unit,
373
-									$num+1
373
+									$num + 1
374 374
 								);
375 375
 
376 376
 								if ($result < 0) {
@@ -520,8 +520,8 @@  discard block
 block discarded – undo
520 520
 					$result = $prodcustprice->fetchAll('', '', 0, 0, $filter);
521 521
 					if ($result) {
522 522
 						if (count($prodcustprice->lines) > 0) {
523
-							$price_min =  price($prodcustprice->lines[0]->price_min);
524
-							$price_min_ttc =  price($prodcustprice->lines[0]->price_min_ttc);
523
+							$price_min = price($prodcustprice->lines[0]->price_min);
524
+							$price_min_ttc = price($prodcustprice->lines[0]->price_min_ttc);
525 525
 							/*$tva_tx = $prodcustprice->lines[0]->tva_tx;
526 526
 							if ($prodcustprice->lines[0]->default_vat_code && !preg_match('/\(.*\)/', $tva_tx)) {
527 527
 								$tva_tx .= ' ('.$prodcustprice->lines[0]->default_vat_code.')';
@@ -755,7 +755,7 @@  discard block
 block discarded – undo
755 755
 			// update price_ht with discount
756 756
 			// TODO Use object->updateline instead objedtline->update
757 757
 
758
-			$price_ht =  price2num(GETPOST('elprice'), 'MU');
758
+			$price_ht = price2num(GETPOST('elprice'), 'MU');
759 759
 			$remise_percent = price2num(GETPOST('elremise_percent'), 2);
760 760
 			if ($remise_percent > 0) {
761 761
 				$remise = round(($price_ht * $remise_percent / 100), 2);
@@ -861,7 +861,7 @@  discard block
 block discarded – undo
861 861
 	} elseif ($action == 'confirm_activate' && $confirm == 'yes' && $user->hasRight('contrat', 'creer')) {
862 862
 		$date_start = dol_mktime(12, 0, 0, GETPOST('d_startmonth'), GETPOST('d_startday'), GETPOST('d_startyear'));
863 863
 		$date_end   = dol_mktime(12, 0, 0, GETPOST('d_endmonth'), GETPOST('d_endday'), GETPOST('d_endyear'));
864
-		$comment      = GETPOST('comment', 'alpha');
864
+		$comment = GETPOST('comment', 'alpha');
865 865
 		$result = $object->activateAll($user, $date_start, 0, $comment, $date_end);
866 866
 		if ($result < 0) {
867 867
 			setEventMessages($object->error, $object->errors, 'errors');
@@ -997,7 +997,7 @@  discard block
 block discarded – undo
997 997
 	include DOL_DOCUMENT_ROOT.'/core/actions_printing.inc.php';
998 998
 
999 999
 	// Actions to build doc
1000
-	$upload_dir = $conf->contrat->multidir_output[!empty($object->entity)?$object->entity:$conf->entity];
1000
+	$upload_dir = $conf->contrat->multidir_output[!empty($object->entity) ? $object->entity : $conf->entity];
1001 1001
 	include DOL_DOCUMENT_ROOT.'/core/actions_builddoc.inc.php';
1002 1002
 
1003 1003
 	// Actions to send emails
@@ -1395,7 +1395,7 @@  discard block
 block discarded – undo
1395 1395
 		$morehtmlref .= '<div class="refidno">';
1396 1396
 		// Ref customer
1397 1397
 		$morehtmlref .= $form->editfieldkey("RefCustomer", 'ref_customer', $object->ref_customer, $object, $user->hasRight('contrat', 'creer'), 'string', '', 0, 1);
1398
-		$morehtmlref .= $form->editfieldval("RefCustomer", 'ref_customer', $object->ref_customer, $object, $user->hasRight('contrat', 'creer'), 'string'.(isset($conf->global->THIRDPARTY_REF_INPUT_SIZE) ? ':' . getDolGlobalString('THIRDPARTY_REF_INPUT_SIZE') : ''), '', null, null, '', 1, 'getFormatedCustomerRef');
1398
+		$morehtmlref .= $form->editfieldval("RefCustomer", 'ref_customer', $object->ref_customer, $object, $user->hasRight('contrat', 'creer'), 'string'.(isset($conf->global->THIRDPARTY_REF_INPUT_SIZE) ? ':'.getDolGlobalString('THIRDPARTY_REF_INPUT_SIZE') : ''), '', null, null, '', 1, 'getFormatedCustomerRef');
1399 1399
 		// Ref supplier
1400 1400
 		$morehtmlref .= '<br>';
1401 1401
 		$morehtmlref .= $form->editfieldkey("RefSupplier", 'ref_supplier', $object->ref_supplier, $object, $user->hasRight('contrat', 'creer'), 'string', '', 0, 1);
@@ -1489,7 +1489,7 @@  discard block
 block discarded – undo
1489 1489
 		}
1490 1490
 
1491 1491
 
1492
-		$arrayothercontracts = $object->getListOfContracts('others');	// array or -1 if technical error
1492
+		$arrayothercontracts = $object->getListOfContracts('others'); // array or -1 if technical error
1493 1493
 
1494 1494
 		/*
1495 1495
 		 * Lines of contracts
Please login to merge, or discard this patch.
htdocs/compta/paiement/rapport.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,9 @@
 block discarded – undo
118 118
 
119 119
 if ($year) {
120 120
 	if (is_dir($dir.'/'.$year)) {
121
-		if (!empty($year_dirs)) print '<br>';
121
+		if (!empty($year_dirs)) {
122
+			print '<br>';
123
+		}
122 124
 		print '<br>';
123 125
 		print '<table width="100%" class="noborder">';
124 126
 		print '<tr class="liste_titre">';
Please login to merge, or discard this patch.
htdocs/compta/facture/card-rec.php 2 patches
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1623,9 +1623,13 @@
 block discarded – undo
1623 1623
 
1624 1624
 				$parameters = array();
1625 1625
 				$reshook = $hookmanager->executeHooks('formAddObjectLine', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
1626
-				if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
1627
-				if (empty($reshook))
1628
-					$object->formAddObjectLine(0, $mysoc, $object->thirdparty); // No date selector for template invoice
1626
+				if ($reshook < 0) {
1627
+					setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
1628
+				}
1629
+				if (empty($reshook)) {
1630
+									$object->formAddObjectLine(0, $mysoc, $object->thirdparty);
1631
+				}
1632
+				// No date selector for template invoice
1629 1633
 			}
1630 1634
 		}
1631 1635
 
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -779,7 +779,7 @@  discard block
 block discarded – undo
779 779
 		// Define special_code for special lines
780 780
 		$special_code = GETPOST('special_code', 'int');
781 781
 		if ($special_code == 3) {
782
-			$special_code = 0;	// Options should not exists on invoices
782
+			$special_code = 0; // Options should not exists on invoices
783 783
 		}
784 784
 
785 785
 		/*$line = new FactureLigne($db);
@@ -1626,10 +1626,10 @@  discard block
 block discarded – undo
1626 1626
 
1627 1627
 		// Lines
1628 1628
 		print '<form name="addproduct" id="addproduct" action="'.$_SERVER["PHP_SELF"].'?id='.$object->id.(($action != 'editline') ? '#add' : '#line_'.GETPOST('lineid', 'int')).'" method="POST">';
1629
-		print '<input type="hidden" name="token" value="' . newToken().'">';
1630
-		print '<input type="hidden" name="action" value="' . (($action != 'editline') ? 'addline' : 'updateline').'">';
1629
+		print '<input type="hidden" name="token" value="'.newToken().'">';
1630
+		print '<input type="hidden" name="action" value="'.(($action != 'editline') ? 'addline' : 'updateline').'">';
1631 1631
 		print '<input type="hidden" name="mode" value="">';
1632
-		print '<input type="hidden" name="id" value="' . $object->id.'">';
1632
+		print '<input type="hidden" name="id" value="'.$object->id.'">';
1633 1633
 		print '<input type="hidden" name="page_y" value="">';
1634 1634
 
1635 1635
 		if (!empty($conf->use_javascript_ajax) && $object->statut == 0) {
@@ -1681,16 +1681,16 @@  discard block
 block discarded – undo
1681 1681
 			if (empty($object->suspended)) {
1682 1682
 				if ($user->hasRight('facture', 'creer')) {
1683 1683
 					if (!empty($object->frequency) && $object->nb_gen_max > 0 && ($object->nb_gen_done >= $object->nb_gen_max)) {
1684
-						print '<div class="inline-block divButAction"><a class="butActionRefused classfortooltip" href="#" title="' . dol_escape_htmltag($langs->trans("MaxGenerationReached")) . '">' . $langs->trans("CreateBill") . '</a></div>';
1684
+						print '<div class="inline-block divButAction"><a class="butActionRefused classfortooltip" href="#" title="'.dol_escape_htmltag($langs->trans("MaxGenerationReached")).'">'.$langs->trans("CreateBill").'</a></div>';
1685 1685
 					} else {
1686 1686
 						if (empty($object->frequency) || $object->date_when <= $nowlasthour) {
1687
-							print '<div class="inline-block divButAction"><a class="butAction" href="' . DOL_URL_ROOT . '/compta/facture/card.php?action=create&socid=' . $object->thirdparty->id . '&fac_rec=' . $object->id . '">' . $langs->trans("CreateBill") . '</a></div>';
1687
+							print '<div class="inline-block divButAction"><a class="butAction" href="'.DOL_URL_ROOT.'/compta/facture/card.php?action=create&socid='.$object->thirdparty->id.'&fac_rec='.$object->id.'">'.$langs->trans("CreateBill").'</a></div>';
1688 1688
 						} else {
1689
-							print '<div class="inline-block divButAction"><a class="butActionRefused classfortooltip" href="#" title="' . dol_escape_htmltag($langs->trans("DateIsNotEnough")) . '">' . $langs->trans("CreateBill") . '</a></div>';
1689
+							print '<div class="inline-block divButAction"><a class="butActionRefused classfortooltip" href="#" title="'.dol_escape_htmltag($langs->trans("DateIsNotEnough")).'">'.$langs->trans("CreateBill").'</a></div>';
1690 1690
 						}
1691 1691
 					}
1692 1692
 				} else {
1693
-					print '<div class="inline-block divButAction"><a class="butActionRefused classfortooltip" href="#">' . $langs->trans("CreateBill") . '</a></div>';
1693
+					print '<div class="inline-block divButAction"><a class="butActionRefused classfortooltip" href="#">'.$langs->trans("CreateBill").'</a></div>';
1694 1694
 				}
1695 1695
 			}
1696 1696
 
@@ -1703,7 +1703,7 @@  discard block
 block discarded – undo
1703 1703
 			}
1704 1704
 
1705 1705
 			// Delete
1706
-			print dolGetButtonAction($langs->trans("Delete"), '', 'delete', $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&action=delete&token=' . newToken(), 'delete', $user->hasRight('facture', 'supprimer'));
1706
+			print dolGetButtonAction($langs->trans("Delete"), '', 'delete', $_SERVER["PHP_SELF"].'?id='.$object->id.'&action=delete&token='.newToken(), 'delete', $user->hasRight('facture', 'supprimer'));
1707 1707
 		}
1708 1708
 		print '</div>';
1709 1709
 
Please login to merge, or discard this patch.