Selaa lähdekoodia

Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpen

Frédéric FRANCE 5 vuotta sitten
vanhempi
commit
e75f7d448c
100 muutettua tiedostoa jossa 11 lisäystä ja 249 poistoa
  1. 0 1
      dev/initdata/generate-thirdparty.php
  2. 7 5
      dev/setup/codesniffer/ruleset.xml
  3. 0 1
      htdocs/accountancy/admin/accountmodel.php
  4. 0 1
      htdocs/accountancy/admin/card.php
  5. 0 2
      htdocs/accountancy/admin/categories.php
  6. 3 4
      htdocs/accountancy/admin/categories_list.php
  7. 0 1
      htdocs/accountancy/admin/closure.php
  8. 0 3
      htdocs/accountancy/admin/defaultaccounts.php
  9. 1 2
      htdocs/accountancy/admin/export.php
  10. 0 1
      htdocs/accountancy/admin/journals_list.php
  11. 0 2
      htdocs/accountancy/admin/productaccount.php
  12. 0 1
      htdocs/accountancy/bookkeeping/balancebymonth.php
  13. 0 3
      htdocs/accountancy/bookkeeping/card.php
  14. 0 5
      htdocs/accountancy/bookkeeping/list.php
  15. 0 3
      htdocs/accountancy/bookkeeping/listbyaccount.php
  16. 0 2
      htdocs/accountancy/bookkeeping/thirdparty_lettering_customer.php
  17. 0 2
      htdocs/accountancy/bookkeeping/thirdparty_lettering_supplier.php
  18. 0 5
      htdocs/accountancy/class/accountancyexport.class.php
  19. 0 1
      htdocs/accountancy/class/accountingaccount.class.php
  20. 0 2
      htdocs/accountancy/class/bookkeeping.class.php
  21. 0 1
      htdocs/accountancy/class/lettering.class.php
  22. 0 1
      htdocs/accountancy/customer/card.php
  23. 0 4
      htdocs/accountancy/customer/index.php
  24. 0 3
      htdocs/accountancy/expensereport/index.php
  25. 0 3
      htdocs/accountancy/journal/bankjournal.php
  26. 0 2
      htdocs/accountancy/journal/expensereportsjournal.php
  27. 0 2
      htdocs/accountancy/journal/purchasesjournal.php
  28. 0 2
      htdocs/accountancy/journal/sellsjournal.php
  29. 0 3
      htdocs/accountancy/supplier/index.php
  30. 0 1
      htdocs/adherents/class/adherent.class.php
  31. 0 1
      htdocs/adherents/class/adherent_type.class.php
  32. 0 1
      htdocs/adherents/document.php
  33. 0 1
      htdocs/adherents/tpl/linkedobjectblock.tpl.php
  34. 0 1
      htdocs/adherents/type.php
  35. 0 2
      htdocs/admin/agenda_other.php
  36. 0 2
      htdocs/admin/bank.php
  37. 0 3
      htdocs/admin/barcode.php
  38. 0 2
      htdocs/admin/bom.php
  39. 0 1
      htdocs/admin/boxes.php
  40. 0 3
      htdocs/admin/commande.php
  41. 0 7
      htdocs/admin/company.php
  42. 0 1
      htdocs/admin/compta.php
  43. 0 1
      htdocs/admin/const.php
  44. 0 3
      htdocs/admin/contract.php
  45. 0 8
      htdocs/admin/delais.php
  46. 0 1
      htdocs/admin/dict.php
  47. 0 1
      htdocs/admin/dolistore/class/dolistore.class.php
  48. 0 1
      htdocs/admin/expedition.php
  49. 0 3
      htdocs/admin/expensereport.php
  50. 0 1
      htdocs/admin/external_rss.php
  51. 0 1
      htdocs/admin/facture.php
  52. 0 3
      htdocs/admin/fichinter.php
  53. 0 3
      htdocs/admin/holiday.php
  54. 0 1
      htdocs/admin/limits.php
  55. 0 2
      htdocs/admin/livraison.php
  56. 0 2
      htdocs/admin/mails.php
  57. 0 1
      htdocs/admin/mails_emailing.php
  58. 0 1
      htdocs/admin/menus/edit.php
  59. 0 1
      htdocs/admin/modules.php
  60. 0 2
      htdocs/admin/notification.php
  61. 0 2
      htdocs/admin/oauthlogintokens.php
  62. 0 2
      htdocs/admin/propal.php
  63. 0 1
      htdocs/admin/reception_setup.php
  64. 0 2
      htdocs/admin/security.php
  65. 0 1
      htdocs/admin/sms.php
  66. 0 2
      htdocs/admin/supplier_invoice.php
  67. 0 1
      htdocs/admin/supplier_order.php
  68. 0 2
      htdocs/admin/supplier_payment.php
  69. 0 4
      htdocs/admin/supplier_proposal.php
  70. 0 1
      htdocs/admin/syslog.php
  71. 0 1
      htdocs/admin/system/database-tables.php
  72. 0 1
      htdocs/admin/ticket.php
  73. 0 2
      htdocs/admin/translation.php
  74. 0 1
      htdocs/admin/user.php
  75. 0 1
      htdocs/admin/usergroup.php
  76. 0 1
      htdocs/admin/website.php
  77. 0 1
      htdocs/asset/type.php
  78. 0 1
      htdocs/barcode/printsheet.php
  79. 0 1
      htdocs/blockedlog/admin/blockedlog_list.php
  80. 0 2
      htdocs/blockedlog/ajax/authority.php
  81. 0 3
      htdocs/blockedlog/class/authority.class.php
  82. 0 3
      htdocs/blockedlog/class/blockedlog.class.php
  83. 0 1
      htdocs/bom/class/bom.class.php
  84. 0 1
      htdocs/bookmarks/bookmarks.lib.php
  85. 0 1
      htdocs/bookmarks/card.php
  86. 0 2
      htdocs/cashdesk/admin/cashdesk.php
  87. 0 33
      htdocs/cashdesk/class/Facturation.class.php
  88. 0 2
      htdocs/cashdesk/facturation.php
  89. 0 2
      htdocs/cashdesk/tpl/liste_articles.tpl.php
  90. 0 5
      htdocs/cashdesk/tpl/validation1.tpl.php
  91. 0 1
      htdocs/categories/class/categorie.class.php
  92. 0 1
      htdocs/categories/photos.php
  93. 0 2
      htdocs/categories/viewcat.php
  94. 0 1
      htdocs/comm/action/card.php
  95. 0 2
      htdocs/comm/action/peruser.php
  96. 0 1
      htdocs/comm/action/rapport/index.php
  97. 0 4
      htdocs/comm/index.php
  98. 0 8
      htdocs/comm/mailing/advtargetemailing.php
  99. 0 8
      htdocs/comm/mailing/class/advtargetemailing.class.php
  100. 0 8
      htdocs/comm/mailing/class/html.formadvtargetemailing.class.php

+ 0 - 1
dev/initdata/generate-thirdparty.php

@@ -116,7 +116,6 @@ for ($s = 0 ; $s < GEN_NUMBER_SOCIETE ; $s++)
             $contact->firstname = $listoflastname[mt_rand(0, count($listoflastname)-1)];
             if ( $contact->create($user) )
             {
-
             }
         }
 

+ 7 - 5
dev/setup/codesniffer/ruleset.xml

@@ -122,14 +122,14 @@
     <rule ref="Generic.Functions.CallTimePassByReference" />
 
 	<rule ref="Generic.Functions.FunctionCallArgumentSpacing" />
-	
+
 	<rule ref="Generic.Functions.FunctionCallArgumentSpacing.NoSpaceBeforeEquals">
 		<severity>0</severity>
 	</rule>
 	<rule ref="Generic.Functions.FunctionCallArgumentSpacing.NoSpaceBeforeEquals">
 		<severity>0</severity>
 	</rule>
-	
+
     <!-- Disallow several spaces after comma -->
 	<!-- We want to allow this because we want to be able to align params on several similare functions on different lines -->
 	<rule ref="Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma">
@@ -195,7 +195,7 @@
 	  </properties>
 	</rule>
 	-->
-	
+
     <rule ref="Squiz.WhiteSpace.ScopeClosingBrace.Indent" />
 
     <!-- There MUST NOT be trailing whitespace at the end of non-blank lines. -->
@@ -213,6 +213,8 @@
     <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines">
         <severity>0</severity>
     </rule>
+
+    <rule ref="Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpen" />
     <rule ref="Squiz.WhiteSpace.ControlStructureSpacing.SpacingBeforeClose" />
 
     <rule ref="Squiz.ControlStructures.ForEachLoopDeclaration.SpaceAfterOpen" />
@@ -337,7 +339,7 @@
     <rule ref="PEAR.Commenting.InlineComment" />
 
 	<!-- Check position of { after a control structure like if (), while (), etc... -->
-	<!-- 
+	<!--
 	<rule ref="PEAR.ControlStructures.ControlSignature" />
 	-->
 
@@ -375,7 +377,7 @@
     <rule ref="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket">
         <severity>0</severity>
     </rule>
-   
+
 	<rule ref="PEAR.Functions.FunctionCallSignature.EmptyLine">
 	    <severity>0</severity>
 	</rule>

+ 0 - 1
htdocs/accountancy/admin/accountmodel.php

@@ -677,7 +677,6 @@ if ($id)
 					{
 						foreach ($fieldlist as $field => $value)
 						{
-
 							$showfield=1;
 							$class="left";
 							$valuetoshow=$obj->{$fieldlist[$field]};

+ 0 - 1
htdocs/accountancy/admin/card.php

@@ -273,7 +273,6 @@ if ($action == 'create') {
 	print '</form>';
 }
 elseif ($id > 0 || $ref) {
-
 	$result = $object->fetch($id, $ref, 1);
 
 	if ($result > 0) {

+ 0 - 2
htdocs/accountancy/admin/categories.php

@@ -130,7 +130,6 @@ if (! empty($cat_id))
 	}
 
 	if (is_array($accountingcategory->lines_cptbk) && count($accountingcategory->lines_cptbk) > 0) {
-
 		print $form->multiselectarray('cpt_bk', $arraykeyvalue, GETPOST('cpt_bk', 'array'), null, null, null, null, "90%");
 		print '<br>';
 		/*print '<select class="flat minwidth200" size="8" name="cpt_bk[]" multiple>';
@@ -153,7 +152,6 @@ print '</form>';
 
 
 if ($action == 'display' || $action == 'delete') {
-
     print "<table class='noborder' width='100%'>\n";
     print '<tr class="liste_titre">';
 	print '<td class="liste_titre">'.$langs->trans("AccountAccounting")."</td>";

+ 3 - 4
htdocs/accountancy/admin/categories_list.php

@@ -170,7 +170,7 @@ if (GETPOST('actionadd', 'alpha') || GETPOST('actionmodify', 'alpha'))
     }
     if (isset($_POST["code"]))
     {
-    	if ($_POST["code"]=='0')
+        if ($_POST["code"]=='0')
     	{
         	$ok=0;
     		setEventMessages($langs->transnoentities('ErrorCodeCantContainZero'), null, 'errors');
@@ -468,7 +468,7 @@ if ($id)
             $valuetoshow=$langs->trans($valuetoshow);   // try to translate
             $class="left";
             if ($fieldlist[$field]=='type') {
-				if ($tabname[$id] == MAIN_DB_PREFIX."c_paiement") {
+                if ($tabname[$id] == MAIN_DB_PREFIX."c_paiement") {
                     $valuetoshow=$form->textwithtooltip($langs->trans("Type"), $langs->trans("TypePaymentDesc"), 2, 1, img_help(1, ''));
                 } else {
                     $valuetoshow=$langs->trans("Type");
@@ -501,7 +501,7 @@ if ($id)
             if ($fieldlist[$field]=='range_account') {
                 $valuetoshow=$langs->trans("Comment");
             }
-			if ($fieldlist[$field]=='category_type') {
+            if ($fieldlist[$field]=='category_type') {
                 $valuetoshow=$langs->trans("Calculated");
             }
 
@@ -742,7 +742,6 @@ if ($id)
                     {
                         foreach ($fieldlist as $field => $value)
                         {
-
                             $showfield=1;
                         	$class="left";
                             $valuetoshow=$obj->{$fieldlist[$field]};

+ 0 - 1
htdocs/accountancy/admin/closure.php

@@ -99,7 +99,6 @@ print '<input type="hidden" name="action" value="update">';
 print '<table class="noborder" width="100%">';
 
 foreach ($list_account_main as $key) {
-
     print '<tr class="oddeven value">';
     // Param
     $label = $langs->trans($key);

+ 0 - 3
htdocs/accountancy/admin/defaultaccounts.php

@@ -83,7 +83,6 @@ if (GETPOST('change_chart', 'alpha'))
     $chartofaccounts = GETPOST('chartofaccounts', 'int');
 
     if (! empty($chartofaccounts)) {
-
         if (! dolibarr_set_const($db, 'CHARTOFACCOUNTS', $chartofaccounts, 'chaine', 0, '', $conf->entity)) {
             $error ++;
         }
@@ -144,7 +143,6 @@ print '<input type="hidden" name="action" value="update">';
 print '<table class="noborder" width="100%">';
 
 foreach ($list_account_main as $key) {
-
     print '<tr class="oddeven value">';
     // Param
     $label = $langs->trans($key);
@@ -172,7 +170,6 @@ print '<br>';
 print '<table class="noborder" width="100%">';
 
 foreach ($list_account as $key) {
-
 	print '<tr class="oddeven value">';
 	// Param
 	$label = $langs->trans($key);

+ 1 - 2
htdocs/accountancy/admin/export.php

@@ -114,7 +114,7 @@ if ($action == 'update') {
                 $error ++;
             }
         }
-	}
+    }
 
 	if (! $error) {
         // reload
@@ -203,7 +203,6 @@ print "</tr>\n";
 $num = count($main_option);
 if ($num) {
 	foreach ($main_option as $key) {
-
 		print '<tr class="oddeven value">';
 
 		// Param

+ 0 - 1
htdocs/accountancy/admin/journals_list.php

@@ -609,7 +609,6 @@ if ($id)
                         $langs->load("accountancy");
 						foreach ($fieldlist as $field => $value)
 						{
-
 							$showfield=1;
 							$class="left";
 							$valuetoshow=$obj->{$fieldlist[$field]};

+ 0 - 2
htdocs/accountancy/admin/productaccount.php

@@ -117,7 +117,6 @@ if ($action == 'update') {
 		);
 
 		if (in_array($accounting_product_mode, $accounting_product_modes)) {
-
 			if (! dolibarr_set_const($db, 'ACCOUNTING_PRODUCT_MODE', $accounting_product_mode, 'chaine', 0, '', $conf->entity)) {
 				$error ++;
 			}
@@ -129,7 +128,6 @@ if ($action == 'update') {
 	if (! empty($btn_changeaccount)) {
 		//$msg = '<div><span class="accountingprocessing">' . $langs->trans("Processing") . '...</span></div>';
 		if (! empty($chk_prod)) {
-
 			$accounting = new AccountingAccount($db);
 
 			//$msg .= '<div><span  class="accountingprocessing">' . count($chk_prod) . ' ' . $langs->trans("SelectedLines") . '</span></div>';

+ 0 - 1
htdocs/accountancy/bookkeeping/balancebymonth.php

@@ -105,7 +105,6 @@ if ($resql) {
 	$num = $db->num_rows($resql);
 
 	while ( $i < $num ) {
-
 		$row = $db->fetch_row($resql);
 
 		print '<tr class="oddeven"><td width="14%">' . length_accountg($row[0]) . '</td>';

+ 0 - 3
htdocs/accountancy/bookkeeping/card.php

@@ -83,7 +83,6 @@ $object = new BookKeeping($db);
  */
 
 if ($action == "confirm_update") {
-
 	$error = 0;
 
 	if ((floatval($debit) != 0.0) && (floatval($credit) != 0.0)) {
@@ -585,7 +584,6 @@ if ($action == 'create')
 		if ($result < 0) {
 			setEventMessages($object->error, $object->errors, 'errors');
 		} else {
-
 			print load_fiche_titre($langs->trans("ListeMvts"), '', '');
 
 			print '<form action="' . $_SERVER["PHP_SELF"] . '?piece_num=' . $object->piece_num . '" method="post">';
@@ -601,7 +599,6 @@ if ($action == 'create')
 
 			print "<table class=\"noborder\" width=\"100%\">";
 			if (count($object->linesmvt) > 0) {
-
 				$total_debit = 0;
 				$total_credit = 0;
 

+ 0 - 5
htdocs/accountancy/bookkeeping/list.php

@@ -316,7 +316,6 @@ if (empty($reshook))
 }
 
 if ($action == 'delbookkeeping' && $user->rights->accounting->mouvements->supprimer) {
-
 	$import_key = GETPOST('importkey', 'alpha');
 
 	if (! empty($import_key)) {
@@ -331,7 +330,6 @@ if ($action == 'delbookkeeping' && $user->rights->accounting->mouvements->suppri
 	}
 }
 if ($action == 'delbookkeepingyearconfirm' && $user->rights->accounting->mouvements->supprimer_tous) {
-
 	$delyear = GETPOST('delyear', 'int');
 	if ($delyear==-1) {
 		$delyear=0;
@@ -362,7 +360,6 @@ if ($action == 'delbookkeepingyearconfirm' && $user->rights->accounting->mouveme
 	}
 }
 if ($action == 'delmouvconfirm' && $user->rights->accounting->mouvements->supprimer) {
-
 	$mvt_num = GETPOST('mvt_num', 'int');
 
 	if (! empty($mvt_num)) {
@@ -468,7 +465,6 @@ if (! empty($sortfield)) {
 // Export into a file with format defined into setup (FEC, CSV, ...)
 // Must be after definition of $sql
 if ($action == 'export_file' && $user->rights->accounting->mouvements->export) {
-
 	// TODO Replace the fetchAll + ->export later that consume too much memory on large export with the query($sql) and loop on each line to export them.
 	$result = $object->fetchAll($sortorder, $sortfield, 0, 0, $filter, 'AND', $conf->global->ACCOUNTING_REEXPORT);
 
@@ -578,7 +574,6 @@ if ($action == 'delmouv') {
 	print $formconfirm;
 }
 if ($action == 'delbookkeepingyear') {
-
 	$form_question = array ();
 	$delyear = GETPOST('delyear');
 	$deljournal = GETPOST('deljournal');

+ 0 - 3
htdocs/accountancy/bookkeeping/listbyaccount.php

@@ -179,7 +179,6 @@ if (! empty($search_credit)) {
 
 
 if ($action == 'delmouvconfirm') {
-
 	$mvt_num = GETPOST('mvt_num', 'int');
 
 	if (! empty($mvt_num)) {
@@ -229,7 +228,6 @@ if ($action == 'delmouv') {
 	print $formconfirm;
 }
 if ($action == 'delbookkeepingyear') {
-
 	$form_question = array ();
 	$delyear = GETPOST('delyear');
 
@@ -338,7 +336,6 @@ while ($i < min($num, $limit))
 
 	// Is it a break ?
 	if ($accountg != $displayed_account_number || ! isset($displayed_account_number)) {
-
 		// Affiche un Sous-Total par compte comptable
 		if (isset($displayed_account_number)) {
 			print '<tr class="liste_total"><td class="right" colspan="5">'.$langs->trans("SubTotal").':</td><td class="nowrap right">'.price($sous_total_debit).'</td><td class="nowrap right">'.price($sous_total_credit).'</td>';

+ 0 - 2
htdocs/accountancy/bookkeeping/thirdparty_lettering_customer.php

@@ -100,7 +100,6 @@ if ($result < 0)
  */
 
 if ($action == 'lettering') {
-
 	$result = $lettering->updateLettering($toselect);
 
 	if ($result < 0) {
@@ -251,7 +250,6 @@ if ($resql) {
 	$tmp = '';
 
     while ( $obj = $db->fetch_object($resql) ) {
-
 		if ($tmp != $obj->lettering_code || empty($tmp))						$tmp = $obj->lettering_code;
 		/*if ($tmp != $obj->lettering_code || empty($obj->lettering_code))*/	$solde += ($obj->credit - $obj->debit);
 

+ 0 - 2
htdocs/accountancy/bookkeeping/thirdparty_lettering_supplier.php

@@ -99,7 +99,6 @@ if ($result<0)
  * Action
  */
 if ($action == 'lettering') {
-
 	$result = $lettering->updateLettering($toselect);
 
 	if ($result < 0) {
@@ -248,7 +247,6 @@ if ($resql) {
 	$solde = 0;
 	$tmp = '';
 	while ($obj = $db->fetch_object($resql)) {
-
 		if ($tmp != $obj->lettering_code || empty($tmp))						$tmp = $obj->lettering_code;
 		/*if ($tmp != $obj->lettering_code || empty($obj->lettering_code))*/	$solde += ($obj->credit - $obj->debit);
 

+ 0 - 5
htdocs/accountancy/class/accountancyexport.class.php

@@ -549,7 +549,6 @@ class AccountancyExport
 		$end_line = "\n";
 
 		foreach ($objectLines as $line) {
-
 			$date = dol_print_date($line->doc_date, '%d%m%Y');
 
 			print $line->id . $separator;
@@ -585,7 +584,6 @@ class AccountancyExport
 		$end_line = "\n";
 
 		foreach ($objectLines as $line) {
-
 			$date = dol_print_date($line->doc_date, '%d%m%Y');
 
 			print $line->piece_num . $separator;
@@ -625,7 +623,6 @@ class AccountancyExport
         $end_line = "\n";
 
         foreach ($objectLines as $line) {
-
             $date = dol_print_date($line->doc_date, '%d/%m/%Y');
 
             print $date . $separator;
@@ -934,7 +931,6 @@ class AccountancyExport
 		$end_line = "\r\n";
 
 		foreach ($objectLines as $line) {
-
 			$date_document = dol_print_date($line->doc_date, '%Y%m%d');
 			$date_creation = dol_print_date($line->date_creation,  '%Y%m%d');
 
@@ -1087,7 +1083,6 @@ class AccountancyExport
 		print $end_line;
 
 		foreach($objectLines as $line) {
-
 			$date = dol_print_date($line->doc_date, '%Y%m%d');
 			print $date . $separator; //Date
 

+ 0 - 1
htdocs/accountancy/class/accountingaccount.class.php

@@ -407,7 +407,6 @@ class AccountingAccount extends CommonObject
 		$result = $this->checkUsage();
 
 		if ($result > 0) {
-
 			$this->db->begin();
 
 			// if (! $error) {

+ 0 - 2
htdocs/accountancy/class/bookkeeping.class.php

@@ -1584,9 +1584,7 @@ class BookKeeping extends CommonObject
 		dol_syslog(get_class($this) . "::" . __METHOD__, LOG_DEBUG);
 		$result = $this->db->query($sql);
 		if ($result) {
-
 			while ($obj = $this->db->fetch_object($result)) {
-
 				$line = new BookKeepingLine();
 
 				$line->id = $obj->rowid;

+ 0 - 1
htdocs/accountancy/class/lettering.class.php

@@ -149,7 +149,6 @@ class Lettering extends BookKeeping
 						}
 					}
 				} elseif ($obj->type == 'payment') {
-
 					$sql = 'SELECT DISTINCT bk.rowid, fac.ref, fac.ref, pay.fk_bank, fac.rowid as fact_id';
 					$sql .= " FROM " . MAIN_DB_PREFIX . "facture fac ";
 					$sql .= " INNER JOIN " . MAIN_DB_PREFIX . "paiement_facture as payfac ON  payfac.fk_facture=fac.rowid";

+ 0 - 1
htdocs/accountancy/customer/card.php

@@ -112,7 +112,6 @@ if (! empty($id)) {
 		$i = 0;
 
 		if ($num_lines) {
-
 			$objp = $db->fetch_object($result);
 
 			print '<form action="' . $_SERVER["PHP_SELF"] . '?id=' . $id . '" method="post">' . "\n";

+ 0 - 4
htdocs/accountancy/customer/index.php

@@ -97,7 +97,6 @@ if ($action == 'clean' || $action == 'validatehistory')
 }
 
 if ($action == 'validatehistory') {
-
 	$error = 0;
 	$db->begin();
 
@@ -195,7 +194,6 @@ if ($resql) {
 	$num = $db->num_rows($resql);
 
 	while ( $row = $db->fetch_row($resql)) {
-
 		print '<tr class="oddeven"><td>';
 		if ($row[0] == 'tobind')
 		{
@@ -271,7 +269,6 @@ if ($resql) {
 	$num = $db->num_rows($resql);
 
 	while ( $row = $db->fetch_row($resql)) {
-
 		print '<tr class="oddeven"><td>';
 		if ($row[0] == 'tobind')
 		{
@@ -398,7 +395,6 @@ if ($conf->global->MAIN_FEATURES_LEVEL > 0) // This part of code looks strange.
 			$num = $db->num_rows($resql);
 
 			while ($row = $db->fetch_row($resql)) {
-
 				print '<tr><td>' . $row[0] . '</td>';
 				for($i = 1; $i <= 12; $i ++) {
 					print '<td class="nowrap right">' . price(price2num($row[$i])) . '</td>';

+ 0 - 3
htdocs/accountancy/expensereport/index.php

@@ -94,7 +94,6 @@ if ($action == 'clean' || $action == 'validatehistory')
 }
 
 if ($action == 'validatehistory') {
-
 	$error = 0;
 	$db->begin();
 
@@ -187,7 +186,6 @@ if ($resql) {
 	$num = $db->num_rows($resql);
 
 	while ( $row = $db->fetch_row($resql)) {
-
 		print '<tr class="oddeven"><td>';
 		if ($row[0] == 'tobind')
 		{
@@ -259,7 +257,6 @@ if ($resql) {
 	$num = $db->num_rows($resql);
 
 	while ( $row = $db->fetch_row($resql)) {
-
 		print '<tr class="oddeven"><td>';
 		if ($row[0] == 'tobind')
 		{

+ 0 - 3
htdocs/accountancy/journal/bankjournal.php

@@ -167,7 +167,6 @@ $journal_label = $accountingjournalstatic->label;
 dol_syslog("accountancy/journal/bankjournal.php", LOG_DEBUG);
 $result = $db->query($sql);
 if ($result) {
-
 	$num = $db->num_rows($result);
 	//print $sql;
 
@@ -268,10 +267,8 @@ if ($result) {
 
 		// get_url may return -1 which is not traversable
 		if (is_array($links) && count($links) > 0) {
-
 			// Now loop on each link of record in bank.
 			foreach ($links as $key => $val) {
-
 				if (in_array($links[$key]['type'], array('sc', 'payment_sc', 'payment', 'payment_supplier', 'payment_vat', 'payment_expensereport', 'banktransfert', 'payment_donation', 'member', 'payment_loan', 'payment_salary', 'payment_various')))
 				{
 					// So we excluded 'company' and 'user' here. We want only payment lines

+ 0 - 2
htdocs/accountancy/journal/expensereportsjournal.php

@@ -115,7 +115,6 @@ $sql .= " ORDER BY er.date_debut";
 dol_syslog('accountancy/journal/expensereportsjournal.php', LOG_DEBUG);
 $result = $db->query($sql);
 if ($result) {
-
 	$taber = array ();
 	$tabht = array ();
 	$tabtva = array ();
@@ -485,7 +484,6 @@ if ($action == 'exportcsv') {		// ISO and not UTF8 !
 }
 
 if (empty($action) || $action == 'view') {
-
 	llxHeader('', $langs->trans("ExpenseReportsJournal"));
 
 	$nom = $langs->trans("ExpenseReportsJournal") . ' | ' . $accountingjournalstatic->getNomUrl(0, 1, 1, '', 1);

+ 0 - 2
htdocs/accountancy/journal/purchasesjournal.php

@@ -242,7 +242,6 @@ if ($action == 'writebookkeeping') {
 	$invoicestatic = new FactureFournisseur($db);
 
 	foreach ($tabfac as $key => $val) {		// Loop on each invoice
-
 		$errorforline = 0;
 
 		$totalcredit = 0;
@@ -716,7 +715,6 @@ if ($action == 'exportcsv') {		// ISO and not UTF8 !
 }
 
 if (empty($action) || $action == 'view') {
-
 	llxHeader('', $langs->trans("PurchasesJournal"));
 
 	$nom = $langs->trans("PurchasesJournal") . ' | ' . $accountingjournalstatic->getNomUrl(0, 1, 1, '', 1);

+ 0 - 2
htdocs/accountancy/journal/sellsjournal.php

@@ -255,7 +255,6 @@ if ($action == 'writebookkeeping') {
 	$invoicestatic = new Facture($db);
 
 	foreach ($tabfac as $key => $val) {		// Loop on each invoice
-
 		$errorforline = 0;
 
 		$totalcredit = 0;
@@ -654,7 +653,6 @@ if ($action == 'exportcsv') {		// ISO and not UTF8 !
 
 
 if (empty($action) || $action == 'view') {
-
 	llxHeader('', $langs->trans("SellsJournal"));
 
 	$nom = $langs->trans("SellsJournal") . ' | ' . $accountingjournalstatic->getNomUrl(0, 1, 1, '', 1);

+ 0 - 3
htdocs/accountancy/supplier/index.php

@@ -95,7 +95,6 @@ if ($action == 'clean' || $action == 'validatehistory')
 }
 
 if ($action == 'validatehistory') {
-
 	$error = 0;
 	$db->begin();
 
@@ -187,7 +186,6 @@ if ($resql) {
 	$num = $db->num_rows($resql);
 
 	while ( $row = $db->fetch_row($resql)) {
-
 		print '<tr class="oddeven"><td>';
 		if ($row[0] == 'tobind')
 		{
@@ -258,7 +256,6 @@ if ($resql) {
     $num = $db->num_rows($resql);
 
     while ( $row = $db->fetch_row($resql)) {
-
 		print '<tr class="oddeven"><td>';
 		if ($row[0] == 'tobind')
 		{

+ 0 - 1
htdocs/adherents/class/adherent.class.php

@@ -2370,7 +2370,6 @@ class Adherent extends CommonObject
 		$langs->load("orders");
 
 		if (! dol_strlen($modele)) {
-
 			$modele = 'standard';
 
 			if ($this->modelpdf) {

+ 0 - 1
htdocs/adherents/class/adherent_type.class.php

@@ -383,7 +383,6 @@ class AdherentType extends CommonObject
 		$result = $this->db->query($sql);
 		if ($result)
 		{
-    
                 $this->description = $this->db->escape($this->note);
 
                 // Multilangs

+ 0 - 1
htdocs/adherents/document.php

@@ -90,7 +90,6 @@ if ($id > 0)
     $result=$membert->fetch($object->typeid);
 	if ($result > 0)
 	{
-
 		// Build file list
 		$filearray=dol_dir_list($upload_dir, "files", 0, '', '(\.meta|_preview.*\.png)$', $sortfield, (strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC), 1);
 		$totalsize=0;

+ 0 - 1
htdocs/adherents/tpl/linkedobjectblock.tpl.php

@@ -39,7 +39,6 @@ $langs->load("members");
 $total=0;
 foreach($linkedObjectBlock as $key => $objectlink)
 {
-
 ?>
 <tr class="oddeven" >
     <td><?php echo $langs->trans("Subscription"); ?></td>

+ 0 - 1
htdocs/adherents/type.php

@@ -94,7 +94,6 @@ $hookmanager->initHooks(array('membertypecard','globalcard'));
  */
 
 if ($cancel) {
-
 	$action='';
 
 	if (! empty($backtopage)) {

+ 0 - 2
htdocs/admin/agenda_other.php

@@ -268,7 +268,6 @@ if ($conf->global->MAIN_FEATURES_LEVEL >= 2)
             			// Active
             			if (in_array($name, $def))
             			{
-
             			print '<td class="center">'."\n";
             			if ($conf->global->ACTION_EVENT_ADDON_PDF != "$name")
             			{
@@ -363,7 +362,6 @@ print '</td></tr>'."\n";
 
 if (! empty($conf->global->AGENDA_USE_EVENT_TYPE))
 {
-
     print '<!-- AGENDA_USE_EVENT_TYPE_DEFAULT -->';
     print '<tr class="oddeven">'."\n";
     print '<td>'.$langs->trans("AGENDA_USE_EVENT_TYPE_DEFAULT").'</td>'."\n";

+ 0 - 2
htdocs/admin/bank.php

@@ -253,7 +253,6 @@ $i = 0;
 
 $nbofbank = count($bankorder);
 while ($i < $nbofbank) {
-
     print '<tr class="oddeven">';
     print '<td>' . $bankorder[$i][0] . "</td><td>\n";
     print $bankorder[$i][1];
@@ -341,7 +340,6 @@ foreach ($dirmodels as $reldir) {
 
                 foreach ($filelist as $file) {
                     if (preg_match('/\.modules\.php$/i', $file) && preg_match('/^(pdf_|doc_)/', $file)) {
-
                         if (file_exists($dir . '/' . $file)) {
                             $name = substr($file, 4, dol_strlen($file) - 16);
                             $classname = substr($file, 0, dol_strlen($file) - 12);

+ 0 - 3
htdocs/admin/barcode.php

@@ -319,7 +319,6 @@ print '</tr>';
 // Chemin du binaire genbarcode sous linux
 if (! isset($_SERVER['WINDIR']))
 {
-
 	print '<tr class="oddeven">';
 	print '<td>'.$langs->trans("GenbarcodeLocation").'</td>';
 	print '<td width="60" class="center">';
@@ -335,7 +334,6 @@ if (! isset($_SERVER['WINDIR']))
 // Module products
 if (! empty($conf->product->enabled))
 {
-
 	print '<tr class="oddeven">';
 	print '<td>'.$langs->trans("SetDefaultBarcodeTypeProducts").'</td>';
 	print '<td width="60" class="right">';
@@ -346,7 +344,6 @@ if (! empty($conf->product->enabled))
 // Module thirdparty
 if (! empty($conf->societe->enabled))
 {
-
 	print '<tr class="oddeven">';
 	print '<td>'.$langs->trans("SetDefaultBarcodeTypeThirdParties").'</td>';
 	print '<td width="60" class="right">';

+ 0 - 2
htdocs/admin/bom.php

@@ -255,7 +255,6 @@ foreach ($dirmodels as $reldir)
 
 					if ($module->isEnabled())
 					{
-
 						print '<tr class="oddeven"><td>'.$module->name."</td><td>\n";
 						print $module->info();
 						print '</td>';
@@ -381,7 +380,6 @@ if ($conf->global->MAIN_FEATURES_LEVEL >= 2)
                     {
                         if (preg_match('/\.modules\.php$/i', $file) && preg_match('/^(pdf_|doc_)/', $file))
                         {
-
                         	if (file_exists($dir.'/'.$file))
                         	{
                         		$name = substr($file, 4, dol_strlen($file) -16);

+ 0 - 1
htdocs/admin/boxes.php

@@ -474,7 +474,6 @@ print '</tr>';
 
 // Activate FileCache - Developement
 if ($conf->global->MAIN_FEATURES_LEVEL == 2 || ! empty($conf->global->MAIN_ACTIVATE_FILECACHE)) {
-
     print '<tr class="oddeven"><td width="35%">'.$langs->trans("EnableFileCache").'</td><td>';
     print $form->selectyesno('MAIN_ACTIVATE_FILECACHE', $conf->global->MAIN_ACTIVATE_FILECACHE, 1);
     print '</td>';

+ 0 - 3
htdocs/admin/commande.php

@@ -282,7 +282,6 @@ foreach ($dirmodels as $reldir)
 		$handle = opendir($dir);
 		if (is_resource($handle))
 		{
-
 			while (($file = readdir($handle))!==false)
 			{
 				if (substr($file, 0, 13) == 'mod_commande_' && substr($file, dol_strlen($file)-3, 3) == 'php')
@@ -299,7 +298,6 @@ foreach ($dirmodels as $reldir)
 
 					if ($module->isEnabled())
 					{
-
 						print '<tr class="oddeven"><td>'.$module->name."</td><td>\n";
 						print $module->info();
 						print '</td>';
@@ -423,7 +421,6 @@ foreach ($dirmodels as $reldir)
                 {
                     if (preg_match('/\.modules\.php$/i', $file) && preg_match('/^(pdf_|doc_)/', $file))
                     {
-
                     	if (file_exists($dir.'/'.$file))
                     	{
                     		$name = substr($file, 4, dol_strlen($file) -16);

+ 0 - 7
htdocs/admin/company.php

@@ -470,7 +470,6 @@ print '</td></tr>'."\n";
 
 // Barcode
 if (! empty($conf->barcode->enabled)) {
-
 	print '<tr class="oddeven"><td><label for="barcode">'.$langs->trans("Gencod").'</label></td><td>';
 	print '<input name="barcode" id="barcode" class="minwidth150" value="'. dol_escape_htmltag($conf->global->MAIN_INFO_SOCIETE_GENCOD) . '"></td></tr>';
 	print '</td></tr>';
@@ -555,7 +554,6 @@ print '</td></tr>';
 // ProfID1
 if ($langs->transcountry("ProfId1", $mysoc->country_code) != '-')
 {
-
 	print '<tr class="oddeven"><td><label for="profid1">'.$langs->transcountry("ProfId1", $mysoc->country_code).'</label></td><td>';
 	if (! empty($mysoc->country_code))
 	{
@@ -571,7 +569,6 @@ if ($langs->transcountry("ProfId1", $mysoc->country_code) != '-')
 // ProfId2
 if ($langs->transcountry("ProfId2", $mysoc->country_code) != '-')
 {
-
 	print '<tr class="oddeven"><td><label for="profid2">'.$langs->transcountry("ProfId2", $mysoc->country_code).'</label></td><td>';
 	if (! empty($mysoc->country_code))
 	{
@@ -587,7 +584,6 @@ if ($langs->transcountry("ProfId2", $mysoc->country_code) != '-')
 // ProfId3
 if ($langs->transcountry("ProfId3", $mysoc->country_code) != '-')
 {
-
 	print '<tr class="oddeven"><td><label for="profid3">'.$langs->transcountry("ProfId3", $mysoc->country_code).'</label></td><td>';
 	if (! empty($mysoc->country_code))
 	{
@@ -603,7 +599,6 @@ if ($langs->transcountry("ProfId3", $mysoc->country_code) != '-')
 // ProfId4
 if ($langs->transcountry("ProfId4", $mysoc->country_code) != '-')
 {
-
 	print '<tr class="oddeven"><td><label for="profid4">'.$langs->transcountry("ProfId4", $mysoc->country_code).'</label></td><td>';
 	if (! empty($mysoc->country_code))
 	{
@@ -619,7 +614,6 @@ if ($langs->transcountry("ProfId4", $mysoc->country_code) != '-')
 // ProfId5
 if ($langs->transcountry("ProfId5", $mysoc->country_code) != '-')
 {
-
 	print '<tr class="oddeven"><td><label for="profid5">'.$langs->transcountry("ProfId5", $mysoc->country_code).'</label></td><td>';
 	if (! empty($mysoc->country_code))
 	{
@@ -635,7 +629,6 @@ if ($langs->transcountry("ProfId5", $mysoc->country_code) != '-')
 // ProfId6
 if ($langs->transcountry("ProfId6", $mysoc->country_code) != '-')
 {
-
 	print '<tr class="oddeven"><td><label for="profid6">'.$langs->transcountry("ProfId6", $mysoc->country_code).'</label></td><td>';
 	if (! empty($mysoc->country_code))
 	{

+ 0 - 1
htdocs/admin/compta.php

@@ -68,7 +68,6 @@ if ($action == 'update')
 
 
     if (in_array($accounting_mode, $accounting_modes)) {
-
         if (!dolibarr_set_const($db, 'ACCOUNTING_MODE', $accounting_mode, 'chaine', 0, '', $conf->entity)) {
             $error++;
         }

+ 0 - 1
htdocs/admin/const.php

@@ -118,7 +118,6 @@ if (! empty($consts) && $action == 'update')
 // Mass delete
 if (! empty($consts) && $action == 'delete')
 {
-
 	$nbdeleted=0;
 	foreach($consts as $const)
 	{

+ 0 - 3
htdocs/admin/contract.php

@@ -219,7 +219,6 @@ foreach ($dirmodels as $reldir)
 		$handle = opendir($dir);
 		if (is_resource($handle))
 		{
-
 			while (($file = readdir($handle))!==false)
 			{
 				if (substr($file, 0, 13) == 'mod_contract_' && substr($file, dol_strlen($file)-3, 3) == 'php')
@@ -236,7 +235,6 @@ foreach ($dirmodels as $reldir)
 
 					if ($module->isEnabled())
 					{
-
 						print '<tr class="oddeven"><td>'.$module->nom."</td><td>\n";
 						print $module->info();
 						print '</td>';
@@ -359,7 +357,6 @@ foreach ($dirmodels as $reldir)
                 {
                     if (preg_match('/\.modules\.php$/i', $file) && preg_match('/^(pdf_|doc_)/', $file))
                     {
-
                     	if (file_exists($dir.'/'.$file))
                     	{
                     		$name = substr($file, 4, dol_strlen($file) -16);

+ 0 - 8
htdocs/admin/delais.php

@@ -265,7 +265,6 @@ print '<br>';
 print '<span class="opacitymedium">'.$langs->trans("DescWeather").'</span> ';
 
 if($action == 'edit') {
-
 	$str_mode_std = $langs->trans('MeteoStdModEnabled').' : '.$langs->trans('MeteoUseMod', $langs->transnoentitiesnoconv('MeteoPercentageMod'));
 	$str_mode_percentage = $langs->trans('MeteoPercentageModEnabled').' : '.$langs->trans('MeteoUseMod', $langs->transnoentitiesnoconv('MeteoStdMod'));
 	if(empty($conf->global->MAIN_USE_METEO_WITH_PERCENTAGE)) $str_mode_enabled = $str_mode_std;
@@ -292,8 +291,6 @@ $text=''; $options='class="valignmiddle" height="60px"';
 
 
 if ($action == 'edit') {
-
-
 	print '<div id="standard" '.(empty($conf->global->MAIN_USE_METEO_WITH_PERCENTAGE) ? '' : 'style="display:none;"').'>';
 
 	print '<div>';
@@ -364,9 +361,7 @@ if ($action == 'edit') {
 
 	<?php
 } else {
-
 	if(!empty($conf->global->MAIN_USE_METEO_WITH_PERCENTAGE)) {
-
 		print '<div>';
 		print '<div class="inline-block" style="padding-right: 20px">';
 		print img_weather($text, 0, $options);
@@ -386,7 +381,6 @@ if ($action == 'edit') {
 		print '</div>';
 		print '</div>';
 	} else {
-
 		print '<div>';
 		print '<div class="inline-block" style="padding-right: 20px">';
 		print img_weather($text, 0, $options);
@@ -411,11 +405,9 @@ if ($action == 'edit') {
 print '</div>';
 
 if($action == 'edit') {
-
 	print '<br><div class="center"><input type="submit" class="button" value="'.$langs->trans("Save").'"></div>';
 	print '<br></form>';
 } else {
-
 	print '<br><div class="tabsAction">';
 	print '<a class="butAction" href="delais.php?action=edit">'.$langs->trans("Modify").'</a></div>';
 }

+ 0 - 1
htdocs/admin/dict.php

@@ -1728,7 +1728,6 @@ else
         {
         	if ($showemptyline)
         	{
-
         		print '<tr class="oddeven"><td width="50%">&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>';
         		$showemptyline=0;
         	}

+ 0 - 1
htdocs/admin/dolistore/class/dolistore.class.php

@@ -226,7 +226,6 @@ class Dolistore
 						$html   .= self::get_categories($cat->id);
 						$html   .= "</li>\n";
 			} else {
-
 			}
 		}
 

+ 0 - 1
htdocs/admin/expedition.php

@@ -366,7 +366,6 @@ foreach ($dirmodels as $reldir)
                 {
                     if (preg_match('/\.modules\.php$/i', $file) && preg_match('/^(pdf_|doc_)/', $file))
                     {
-
                     	if (file_exists($dir.'/'.$file))
                     	{
                     		$name = substr($file, 4, dol_strlen($file) -16);

+ 0 - 3
htdocs/admin/expensereport.php

@@ -247,7 +247,6 @@ foreach ($dirmodels as $reldir)
 
 					if ($module->isEnabled())
 					{
-
 						print '<tr class="oddeven"><td>'.$module->nom."</td><td>\n";
 						print $module->info();
 						print '</td>';
@@ -367,10 +366,8 @@ foreach ($dirmodels as $reldir)
 			{
 				if (preg_match('/\.modules\.php$/i', $file) && preg_match('/^(pdf_|doc_)/', $file))
 		    	{
-
 		    		if (file_exists($dir.'/'.$file))
 		    		{
-
 		    			$name = substr($file, 4, dol_strlen($file) -16);
 		    			$classname = substr($file, 0, dol_strlen($file) -12);
 

+ 0 - 1
htdocs/admin/external_rss.php

@@ -300,7 +300,6 @@ if ($resql)
 		// Logo
 	    if ($result > 0 && empty($rss->error))
 	    {
-
 			print '<tr class="oddeven">';
 			print "<td>".$langs->trans("Logo")."</td>";
 			print '<td>';

+ 0 - 1
htdocs/admin/facture.php

@@ -720,7 +720,6 @@ if ($resql)
     $i = 0;
     while ($i < $num)
     {
-
         $row = $db->fetch_row($resql);
 
         print '<option value="'.$row[0].'"';

+ 0 - 3
htdocs/admin/fichinter.php

@@ -293,7 +293,6 @@ foreach ($dirmodels as $reldir)
 		$handle = opendir($dir);
 		if (is_resource($handle))
 		{
-
 			while (($file = readdir($handle))!==false)
 			{
 				if (preg_match('/^(mod_.*)\.php$/i', $file, $reg))
@@ -433,8 +432,6 @@ foreach ($dirmodels as $reldir)
 		    	{
 		    		if (file_exists($dir.'/'.$file))
 		    		{
-
-
 		    			$name = substr($file, 4, dol_strlen($file) -16);
 		    			$classname = substr($file, 0, dol_strlen($file) -12);
 

+ 0 - 3
htdocs/admin/holiday.php

@@ -238,7 +238,6 @@ foreach ($dirmodels as $reldir)
 
 					if ($module->isEnabled())
 					{
-
 						print '<tr class="oddeven"><td>'.$module->nom."</td><td>\n";
 						print $module->info();
 						print '</td>';
@@ -303,7 +302,6 @@ print '<br>';
 
 if ($conf->global->MAIN_FEATURES_LEVEL >= 2)
 {
-
 /*
  *  Documents models for Holidays
  */
@@ -369,7 +367,6 @@ foreach ($dirmodels as $reldir)
                 {
                     if (preg_match('/\.modules\.php$/i', $file) && preg_match('/^(pdf_|doc_)/', $file))
                     {
-
                     	if (file_exists($dir.'/'.$file))
                     	{
                     		$name = substr($file, 4, dol_strlen($file) -16);

+ 0 - 1
htdocs/admin/limits.php

@@ -172,7 +172,6 @@ if (empty($mysoc->country_code))
 }
 else
 {
-
 	// Show examples
 	print '<b>'.$langs->trans("ExamplesWithCurrentSetup").":</b><br>\n";
 

+ 0 - 2
htdocs/admin/livraison.php

@@ -356,8 +356,6 @@ foreach ($dirmodels as $reldir)
                 {
                 	if (file_exists($dir.'/'.$file))
                 	{
-
-
 		    			$name = substr($file, 4, dol_strlen($file) -16);
 		    			$classname = substr($file, 0, dol_strlen($file) -12);
 

+ 0 - 2
htdocs/admin/mails.php

@@ -364,7 +364,6 @@ if ($action == 'edit')
 	// ID
 	if (! empty($conf->use_javascript_ajax) || (isset($conf->global->MAIN_MAIL_SENDMODE) && in_array($conf->global->MAIN_MAIL_SENDMODE, array('smtps', 'swiftmailer'))))
 	{
-
 		$mainstmpid=(! empty($conf->global->MAIN_MAIL_SMTPS_ID)?$conf->global->MAIN_MAIL_SMTPS_ID:'');
 		print '<tr class="drag drop oddeven"><td>'.$langs->trans("MAIN_MAIL_SMTPS_ID").'</td><td>';
 		// SuperAdministrator access only
@@ -384,7 +383,6 @@ if ($action == 'edit')
 	// PW
 	if (! empty($conf->use_javascript_ajax) || (isset($conf->global->MAIN_MAIL_SENDMODE) && in_array($conf->global->MAIN_MAIL_SENDMODE, array('smtps', 'swiftmailer'))))
 	{
-
 		$mainsmtppw=(! empty($conf->global->MAIN_MAIL_SMTPS_PW)?$conf->global->MAIN_MAIL_SMTPS_PW:'');
 		print '<tr class="drag drop oddeven"><td>'.$langs->trans("MAIN_MAIL_SMTPS_PW").'</td><td>';
 		// SuperAdministrator access only

+ 0 - 1
htdocs/admin/mails_emailing.php

@@ -316,7 +316,6 @@ if ($action == 'edit')
 	// ID
 	if (! empty($conf->use_javascript_ajax) || (isset($conf->global->MAIN_MAIL_SENDMODE_EMAILING) && in_array($conf->global->MAIN_MAIL_SENDMODE_EMAILING, array('smtps', 'swiftmailer'))))
 	{
-
 		$mainstmpid=(! empty($conf->global->MAIN_MAIL_SMTPS_ID_EMAILING)?$conf->global->MAIN_MAIL_SMTPS_ID_EMAILING:'');
 		print '<tr class="drag drop oddeven hideifdefault"><td>'.$langs->trans("MAIN_MAIL_SMTPS_ID").'</td><td>';
 		// SuperAdministrator access only

+ 0 - 1
htdocs/admin/menus/edit.php

@@ -323,7 +323,6 @@ if ($action == 'create')
         $res  = $db->query($sql);
         if ($res)
         {
-
             while ($menu = $db->fetch_array($res))
             {
                 $parent_rowid = $menu['rowid'];

+ 0 - 1
htdocs/admin/modules.php

@@ -729,7 +729,6 @@ if ($mode == 'common')
         			print '</a>';
         		}
         		else {
-
         			print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?id='.$objMod->numero.'&amp;module_position='.$module_position.'&amp;action=reset&amp;value=' . $modName . '&amp;mode=' . $mode .'&amp;confirm=yes' . $param . '">';
         			print img_picto($langs->trans("Activated"), 'switch_on');
         			print '</a>';

+ 0 - 2
htdocs/admin/notification.php

@@ -164,7 +164,6 @@ print '<td>';
 $i=0;
 foreach($listofnotifiedevents as $notifiedevent)
 {
-
     $label=$langs->trans("Notify_".$notifiedevent['code']); //!=$langs->trans("Notify_".$notifiedevent['code'])?$langs->trans("Notify_".$notifiedevent['code']):$notifiedevent['label'];
     $elementLabel = $langs->trans(ucfirst($notifiedevent['elementtype']));
 
@@ -209,7 +208,6 @@ $listofnotifiedevents=$notificationtrigger->getListOfManagedEvents();
 
 foreach($listofnotifiedevents as $notifiedevent)
 {
-
     $label=$langs->trans("Notify_".$notifiedevent['code']); //!=$langs->trans("Notify_".$notifiedevent['code'])?$langs->trans("Notify_".$notifiedevent['code']):$notifiedevent['label'];
 
     $elementLabel = $langs->trans(ucfirst($notifiedevent['elementtype']));

+ 0 - 2
htdocs/admin/oauthlogintokens.php

@@ -122,7 +122,6 @@ dol_fiche_head($head, 'tokengeneration', '', -1, 'technic');
 
 if ($mode == 'setup' && $user->admin)
 {
-
     print $langs->trans("OAuthSetupForLogin")."<br><br>\n";
 
     foreach($list as $key)
@@ -381,7 +380,6 @@ if ($mode == 'userconf' && $user->admin)
     $sql = 'SELECT p.rowid, p.printer_name, p.printer_location, p.printer_id, p.copy, p.module, p.driver, p.userid, u.login FROM '.MAIN_DB_PREFIX.'printing as p, '.MAIN_DB_PREFIX.'user as u WHERE p.userid=u.rowid';
     $resql = $db->query($sql);
     while ($row=$db->fetch_array($resql)) {
-
         print '<tr class="oddeven">';
         print '<td>'.$row['login'].'</td>';
         print '<td>'.$row['module'].'</td>';

+ 0 - 2
htdocs/admin/propal.php

@@ -294,7 +294,6 @@ foreach ($dirmodels as $reldir)
 
 					if ($module->isEnabled())
 					{
-
 						print '<tr class="oddeven"><td>'.$module->nom."</td><td>\n";
 						print $module->info();
 						print '</td>';
@@ -596,7 +595,6 @@ if (empty($conf->facture->enabled))
 		$i = 0;
 		while ($i < $num)
 		{
-
 			$row = $db->fetch_row($resql);
 
 			print '<option value="'.$row[0].'"';

+ 0 - 1
htdocs/admin/reception_setup.php

@@ -371,7 +371,6 @@ foreach ($dirmodels as $reldir)
                 {
                     if (preg_match('/\.modules\.php$/i', $file) && preg_match('/^(pdf_|doc_)/', $file))
                     {
-
                     	if (file_exists($dir.'/'.$file))
                     	{
                     		$name = substr($file, 4, dol_strlen($file) -16);

+ 0 - 2
htdocs/admin/security.php

@@ -289,8 +289,6 @@ print '</form>';
 //if($conf->global->MAIN_SECURITY_DISABLEFORGETPASSLINK == 1)
 // Patter for Password Perso
 if ($conf->global->USER_PASSWORD_GENERATED == "Perso"){
-
-
 	$tabConf = explode(";", $conf->global->USER_PASSWORD_PATTERN);
 	print '<br>';
 	print '<table class="noborder" width="100%">';

+ 0 - 1
htdocs/admin/sms.php

@@ -207,7 +207,6 @@ if ($action == 'edit')
 }
 else
 {
-
 	if (! count($listofmethods)) print '<div class="warning">'.$langs->trans("NoSmsEngine", '<a target="_blank" href="http://www.dolistore.com/search.php?orderby=position&orderway=desc&search_query=smsmanager">DoliStore</a>').'</div>';
 
 	print '<table class="noborder" width="100%">';

+ 0 - 2
htdocs/admin/supplier_invoice.php

@@ -237,7 +237,6 @@ foreach ($dirmodels as $reldir)
         $handle = opendir($dir);
         if (is_resource($handle))
         {
-
             while (($file = readdir($handle))!==false)
             {
                 if (substr($file, 0, 24) == 'mod_facture_fournisseur_' && substr($file, dol_strlen($file)-3, 3) == 'php')
@@ -365,7 +364,6 @@ foreach ($dirmodels as $reldir)
 
     if (is_dir($dir))
     {
-
         $handle=opendir($dir);
 
 

+ 0 - 1
htdocs/admin/supplier_order.php

@@ -267,7 +267,6 @@ foreach ($dirmodels as $reldir)
         $handle = opendir($dir);
         if (is_resource($handle))
         {
-
             while (($file = readdir($handle))!==false)
             {
                 if (substr($file, 0, 25) == 'mod_commande_fournisseur_' && substr($file, dol_strlen($file)-3, 3) == 'php')

+ 0 - 2
htdocs/admin/supplier_payment.php

@@ -213,7 +213,6 @@ foreach ($dirmodels as $reldir)
         $handle = opendir($dir);
         if (is_resource($handle))
         {
-
             while (($file = readdir($handle))!==false)
             {
                 if (! is_dir($dir.$file) || (substr($file, 0, 1) <> '.' && substr($file, 0, 3) <> 'CVS'))
@@ -337,7 +336,6 @@ foreach ($dirmodels as $reldir)
 
     if (is_dir($dir))
     {
-
         $handle=opendir($dir);
 
 

+ 0 - 4
htdocs/admin/supplier_proposal.php

@@ -246,7 +246,6 @@ foreach ($dirmodels as $reldir)
 		$handle = opendir($dir);
 		if (is_resource($handle))
 		{
-
 			while (($file = readdir($handle))!==false)
 			{
 				if (substr($file, 0, 22) == 'mod_supplier_proposal_' && substr($file, dol_strlen($file)-3, 3) == 'php')
@@ -263,7 +262,6 @@ foreach ($dirmodels as $reldir)
 
 					if ($module->isEnabled())
 					{
-
 						print '<tr class="oddeven"><td>'.$module->nom."</td><td>\n";
 						print $module->info();
 						print '</td>';
@@ -537,7 +535,6 @@ print '</form>';
 
 if ($conf->banque->enabled)
 {
-
     print '<tr class="oddeven"><td>';
     print $langs->trans("BANK_ASK_PAYMENT_BANK_DURING_SUPPLIER_PROPOSAL").'</td><td>&nbsp</td><td class="right">';
     if (! empty($conf->use_javascript_ajax))
@@ -559,7 +556,6 @@ if ($conf->banque->enabled)
 }
 else
 {
-
     print '<tr class="oddeven"><td>';
     print $langs->trans("BANK_ASK_PAYMENT_BANK_DURING_SUPPLIER_PROPOSAL").'</td><td>&nbsp;</td><td align="center">'.$langs->trans('NotAvailable').'</td></tr>';
 }

+ 0 - 1
htdocs/admin/syslog.php

@@ -50,7 +50,6 @@ foreach ($dirsyslogs as $reldir) {
 		$handle = opendir($newdir);
 
 		if (is_resource($handle)) {
-
 			while (($file = readdir($handle)) !== false) {
 				if (substr($file, 0, 11) == 'mod_syslog_' && substr($file, dol_strlen($file) - 3, 3) == 'php') {
 					$file = substr($file, 0, dol_strlen($file) - 4);

+ 0 - 1
htdocs/admin/system/database-tables.php

@@ -202,7 +202,6 @@ else
 		if ($resql)
 		{
 			while ($row = $db->fetch_row($resql)) {
-
 				$rescount = $db->query("SELECT COUNT(*) FROM " . $row[0]);
 				if ($rescount) {
 					$row_count = $db->fetch_row($rescount);

+ 0 - 1
htdocs/admin/ticket.php

@@ -214,7 +214,6 @@ foreach ($dirmodels as $reldir) {
     if (is_dir($dir)) {
         $handle = opendir($dir);
         if (is_resource($handle)) {
-
             while (($file = readdir($handle)) !== false) {
                 if (preg_match('/^(mod_.*)\.php$/i', $file, $reg)) {
                     $file = $reg[1];

+ 0 - 2
htdocs/admin/translation.php

@@ -108,7 +108,6 @@ if ($action == 'update')
 		}
 		else
 		{
-
 			$db->rollback();
 			if ($db->lasterrno() == 'DB_ERROR_RECORD_ALREADY_EXISTS')
 			{
@@ -158,7 +157,6 @@ if ($action == 'add')
 		}
 		else
 		{
-
 		    $db->rollback();
 		    if ($db->lasterrno() == 'DB_ERROR_RECORD_ALREADY_EXISTS')
 		    {

+ 0 - 1
htdocs/admin/user.php

@@ -239,7 +239,6 @@ foreach ($dirmodels as $reldir)
                 {
                     if (preg_match('/\.modules\.php$/i', $file) && preg_match('/^(pdf_|doc_)/', $file))
                     {
-
                     	if (file_exists($dir.'/'.$file))
                     	{
                     		$name = substr($file, 4, dol_strlen($file) -16);

+ 0 - 1
htdocs/admin/usergroup.php

@@ -186,7 +186,6 @@ foreach ($dirmodels as $reldir)
                 {
                     if (preg_match('/\.modules\.php$/i', $file) && preg_match('/^(pdf_|doc_)/', $file))
                     {
-
                     	if (file_exists($dir.'/'.$file))
                     	{
                     		$name = substr($file, 4, dol_strlen($file) -16);

+ 0 - 1
htdocs/admin/website.php

@@ -572,7 +572,6 @@ if ($id)
             // Lines with values
             while ($i < $num)
             {
-
                 $obj = $db->fetch_object($resql);
                 //print_r($obj);
                 print '<tr class="oddeven" id="rowid-'.$obj->rowid.'">';

+ 0 - 1
htdocs/asset/type.php

@@ -83,7 +83,6 @@ $hookmanager->initHooks(array('assettypecard','globalcard'));
  */
 
 if ($cancel) {
-
 	$action='';
 
 	if (! empty($backtopage))

+ 0 - 1
htdocs/barcode/printsheet.php

@@ -197,7 +197,6 @@ if ($action == 'builddoc')
 		// For labels
 		if ($mode == 'label')
 		{
-
 			$txtforsticker="%PHOTO%"; // Photo will be barcode image, %BARCODE% posible when using TCPDF generator
 			$textleft=make_substitutions((empty($conf->global->BARCODE_LABEL_LEFT_TEXT)?$txtforsticker:$conf->global->BARCODE_LABEL_LEFT_TEXT), $substitutionarray);
 			$textheader=make_substitutions((empty($conf->global->BARCODE_LABEL_HEADER_TEXT)?'':$conf->global->BARCODE_LABEL_HEADER_TEXT), $substitutionarray);

+ 0 - 1
htdocs/blockedlog/admin/blockedlog_list.php

@@ -92,7 +92,6 @@ if (GETPOST('button_removefilter_x', 'alpha') || GETPOST('button_removefilter.x'
 }
 
 if ($action === 'downloadblockchain') {
-
 	$auth = new BlockedLogAuthority($db);
 
 	$bc = $auth->getLocalBlockChain();

+ 0 - 2
htdocs/blockedlog/ajax/authority.php

@@ -51,7 +51,6 @@ if($auth->fetch(0, $signature)<=0) {
 
 
 if(!empty($hash)) {
-
 	echo $auth->checkBlockchain($hash) ? 'hashisok' : 'hashisjunk';
 }
 elseif(!empty($newblock)){
@@ -62,7 +61,6 @@ elseif(!empty($newblock)){
 		echo 'blockadded';
 	}
 	else{
-
 		echo 'blockalreadyadded';
 	}
 }

+ 0 - 3
htdocs/blockedlog/class/authority.class.php

@@ -310,17 +310,14 @@ class BlockedLogAuthority
 		$signature=$block_static->getSignature();
 
 		foreach($blocks as &$block) {
-
 			$url = $conf->global->BLOCKEDLOG_AUTHORITY_URL.'/blockedlog/ajax/authority.php?s='.$signature.'&b='.$block->signature;
 
 			$res = file_get_contents($url);
 			echo $block->signature.' '.$url. ' '.$res.'<br>';
 			if($res === 'blockalreadyadded' || $res === 'blockadded') {
-
 				$block->setCertified();
 			}
 			else {
-
 				$this->error = $langs->trans('ImpossibleToContactAuthority ', $url);
 				return -1;
 			}

+ 0 - 3
htdocs/blockedlog/class/blockedlog.class.php

@@ -977,7 +977,6 @@ class BlockedLog
 		if (empty($cachedlogs)) $cachedlogs=array();
 
 		if ($element=='all') {
-
 	 		$sql="SELECT rowid FROM ".MAIN_DB_PREFIX."blockedlog
 	         WHERE entity=".$conf->entity;
 		}
@@ -1006,7 +1005,6 @@ class BlockedLog
 
 		$res = $this->db->query($sql);
 		if($res) {
-
 			$results=array();
 
 			$i = 0;
@@ -1046,7 +1044,6 @@ class BlockedLog
 		global $db,$conf,$mysoc;
 
 		if (empty($conf->global->BLOCKEDLOG_ENTITY_FINGERPRINT)) { // creation of a unique fingerprint
-
 			require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
 			require_once DOL_DOCUMENT_ROOT.'/core/lib/security.lib.php';
 			require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';

+ 0 - 1
htdocs/bom/class/bom.class.php

@@ -943,7 +943,6 @@ class BOM extends CommonObject
 		$langs->load("mrp");
 
 		if (! dol_strlen($modele)) {
-
 			$modele = 'standard';
 
 			if ($this->modelpdf) {

+ 0 - 1
htdocs/bookmarks/bookmarks.lib.php

@@ -38,7 +38,6 @@ function printBookmarksList($aDb, $aLangs)
 	$ret = '<div class="menu_top"></div>'."\n";
 
 	if (! empty($conf->use_javascript_ajax)) {		// Bookmark autosubmit can't work when javascript is off.
-
 		require_once DOL_DOCUMENT_ROOT.'/bookmarks/class/bookmark.class.php';
 		if (! isset($conf->global->BOOKMARKS_SHOW_IN_MENU)) $conf->global->BOOKMARKS_SHOW_IN_MENU=5;
 

+ 0 - 1
htdocs/bookmarks/card.php

@@ -54,7 +54,6 @@ $object=new Bookmark($db);
 
 if ($action == 'add' || $action == 'addproduct' || $action == 'update')
 {
-
 	if ($action == 'update') {
 		$invertedaction = 'edit';
 	} else {

+ 0 - 2
htdocs/cashdesk/admin/cashdesk.php

@@ -125,7 +125,6 @@ print $form->select_company($conf->global->CASHDESK_ID_THIRDPARTY, 'socid', '(s.
 print '</td></tr>';
 if (! empty($conf->banque->enabled))
 {
-
 	print '<tr class="oddeven"><td>'.$langs->trans("CashDeskBankAccountForSell").'</td>';
 	print '<td colspan="2">';
 	$form->select_comptes($conf->global->CASHDESK_ID_BANKACCOUNT_CASH, 'CASHDESK_ID_BANKACCOUNT_CASH', 0, "courant=2", 1);
@@ -146,7 +145,6 @@ if (! empty($conf->banque->enabled))
 
 if (! empty($conf->stock->enabled))
 {
-
 	print '<tr class="oddeven"><td>'.$langs->trans("CashDeskDoNotDecreaseStock").'</td>';	// Force warehouse (this is not a default value)
 	print '<td colspan="2">';
 	if (empty($conf->productbatch->enabled)) {

+ 0 - 33
htdocs/cashdesk/class/Facturation.class.php

@@ -296,12 +296,10 @@ class Facturation
         }
         elseif ( $aId == 'RESET' )
         {
-
             $this->id = null;
         }
         else
         {
-
             $this->id = $aId;
         }
     }
@@ -343,7 +341,6 @@ class Facturation
         }
         elseif ( $aQte == 'RESET' )
         {
-
             $this->qte = null;
         }
         else
@@ -408,13 +405,10 @@ class Facturation
     {
 
         if (is_null($aMontantRemise)) {
-
             return $this->montant_remise;
         } elseif ( $aMontantRemise == 'RESET' ) {
-
             $this->montant_remise = null;
         } else {
-
             $this->montant_remise = $aMontantRemise;
         }
     }
@@ -429,13 +423,10 @@ class Facturation
     {
 
         if (is_null($aPrix)) {
-
             return $this->prix;
         } elseif ( $aPrix == 'RESET' ) {
-
             $this->prix = null;
         } else {
-
             $this->prix = $aPrix;
         }
     }
@@ -449,13 +440,10 @@ class Facturation
     public function tva($aTva = null)
     {
         if (is_null($aTva)) {
-
             return $this->tva;
         } elseif ( $aTva == 'RESET' ) {
-
             $this->tva = null;
         } else {
-
             $this->tva = $aTva;
         }
     }
@@ -469,13 +457,10 @@ class Facturation
     public function numInvoice($aNumFacture = null)
     {
         if (is_null($aNumFacture)) {
-
             return $this->num_facture;
         } elseif ( $aNumFacture == 'RESET' ) {
-
             $this->num_facture = null;
         } else {
-
             $this->num_facture = $aNumFacture;
         }
     }
@@ -490,13 +475,10 @@ class Facturation
     {
 
         if (is_null($aModeReglement)) {
-
             return $this->mode_reglement;
         } elseif ( $aModeReglement == 'RESET' ) {
-
             $this->mode_reglement = null;
         } else {
-
             $this->mode_reglement = $aModeReglement;
         }
     }
@@ -511,13 +493,10 @@ class Facturation
     {
 
         if (is_null($aMontantEncaisse)) {
-
             return $this->montant_encaisse;
         } elseif ( $aMontantEncaisse == 'RESET' ) {
-
             $this->montant_encaisse = null;
         } else {
-
             $this->montant_encaisse = $aMontantEncaisse;
         }
     }
@@ -532,13 +511,10 @@ class Facturation
     {
 
         if (is_null($aMontantRendu)) {
-
             return $this->montant_rendu;
         } elseif ( $aMontantRendu == 'RESET' ) {
-
             $this->montant_rendu = null;
         } else {
-
             $this->montant_rendu = $aMontantRendu;
         }
     }
@@ -552,13 +528,10 @@ class Facturation
     public function paiementLe($aPaiementLe = null)
     {
         if (is_null($aPaiementLe)) {
-
             return $this->paiement_le;
         } elseif ( $aPaiementLe == 'RESET' ) {
-
             $this->paiement_le = null;
         } else {
-
             $this->paiement_le = $aPaiementLe;
         }
     }
@@ -572,13 +545,10 @@ class Facturation
     public function prixTotalHt($aTotalHt = null)
     {
         if (is_null($aTotalHt)) {
-
             return $this->prix_total_ht;
         } elseif ( $aTotalHt == 'RESET' ) {
-
             $this->prix_total_ht = null;
         } else {
-
             $this->prix_total_ht = $aTotalHt;
         }
     }
@@ -592,13 +562,10 @@ class Facturation
     public function montantTva($aMontantTva = null)
     {
         if (is_null($aMontantTva)) {
-
             return $this->montant_tva;
         } elseif ( $aMontantTva == 'RESET' ) {
-
             $this->montant_tva = null;
         } else {
-
             $this->montant_tva = $aMontantTva;
         }
     }

+ 0 - 2
htdocs/cashdesk/facturation.php

@@ -36,7 +36,6 @@ $form=new Form($db);
 
 // Get list of articles (in warehouse '$conf_fkentrepot' if defined and stock module enabled)
 if ( GETPOST('filtre', 'alpha') ) {
-
 	// Avec filtre
 	$ret=array(); $i=0;
 
@@ -88,7 +87,6 @@ if ( GETPOST('filtre', 'alpha') ) {
 	}
 	$tab_designations=$ret;
 } else {
-
 	// Sans filtre
 	$ret=array();
 	$i=0;

+ 0 - 2
htdocs/cashdesk/tpl/liste_articles.tpl.php

@@ -57,10 +57,8 @@ else
         echo ('<p><a href="facturation_verif.php?action=suppr_article&suppr_id='.$tab[$i]['id'].'" title="'.$langs->trans("DeleteArticle").'">'.$tab[$i]['ref'].' - '.$tab[$i]['label'].'</a></p>'."\n");
 
         if ( $tab[$i]['remise_percent'] > 0 ) {
-
             $remise_percent = ' -'.$tab[$i]['remise_percent'].'%';
         } else {
-
             $remise_percent = '';
         }
 

+ 0 - 5
htdocs/cashdesk/tpl/validation1.tpl.php

@@ -39,12 +39,10 @@ $langs->loadLangs(array("main","bills","banks"));
 		<?php
 			// Affichage de la tva par taux
 			if ( $obj_facturation->montantTva() ) {
-
 				echo ('<tr><td class="resume_label">'.$langs->trans("VAT").'</td><td>'.price(price2num($obj_facturation->montantTva(), 'MT'), 0, $langs, 0, 0, -1, $conf->currency).'</td></tr>');
 			}
 			else
 			{
-
 				echo ('<tr><td class="resume_label">'.$langs->trans("VAT").'</td><td>'.$langs->trans("NoVAT").'</td></tr>');
 			}
 		?>
@@ -87,16 +85,13 @@ $langs->loadLangs(array("main","bills","banks"));
 		<?php
 			// Affichage des infos en fonction du mode de paiement
 			if ( $obj_facturation->getsetPaymentMode() == 'DIF' ) {
-
 				echo ('<tr><td class="resume_label">'.$langs->trans("DateDue").'</td><td>'.$obj_facturation->paiementLe().'</td></tr>');
 			} else {
-
 				echo ('<tr><td class="resume_label">'.$langs->trans("Received").'</td><td>'.price(price2num($obj_facturation->montantEncaisse(), 'MT'), 0, $langs, 0, 0, -1, $conf->currency).'</td></tr>');
 			}
 
 			// Affichage du montant rendu (reglement en especes)
 			if ( $obj_facturation->montantRendu() ) {
-
 				echo ('<tr><td class="resume_label">'.$langs->trans("Change").'</td><td>'.price(price2num($obj_facturation->montantRendu(), 'MT'), 0, $langs, 0, 0, -1, $conf->currency).'</td></tr>');
 			}
 

+ 0 - 1
htdocs/categories/class/categorie.class.php

@@ -1637,7 +1637,6 @@ class Categorie extends CommonObject
 			{
 				$nbfile = count($file['name']);
 				for ($i = 0; $i <= $nbfile; $i ++) {
-
 					$originImage = $dir . $file['name'][$i];
 
 					// Cree fichier en taille origine

+ 0 - 1
htdocs/categories/photos.php

@@ -69,7 +69,6 @@ if ($id > 0)
 if (isset($_FILES['userfile']) && $_FILES['userfile']['size'] > 0 && $_POST["sendit"] && ! empty($conf->global->MAIN_UPLOAD_DOC))
 {
     if ($object->id) {
-
         $file = $_FILES['userfile'];
         if (is_array($file['name']) && count($file['name']) > 0)
         {

+ 0 - 2
htdocs/categories/viewcat.php

@@ -125,7 +125,6 @@ if ($id > 0 && $removeelem > 0)
 		$elementtype = 'member';
 	}
 	elseif ($type == Categorie::TYPE_CONTACT && $user->rights->societe->creer) {
-
 		require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
 		$tmpobject = new Contact($db);
 		$result = $tmpobject->fetch($removeelem);
@@ -644,7 +643,6 @@ if ($type == Categorie::TYPE_CONTACT)
 	}
 	else
 	{
-
 		print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
 		print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
 		print '<input type="hidden" name="typeid" value="'.$typeid.'">';

+ 0 - 1
htdocs/comm/action/card.php

@@ -278,7 +278,6 @@ if (empty($reshook) && $action == 'add')
 
 		$taskid = GETPOST('taskid', 'int');
 		if(!empty($taskid)){
-
 		    $taskProject = new Task($db);
 		    if($taskProject->fetch($taskid)>0){
 		        $object->fk_project = $taskProject->fk_project;

+ 0 - 2
htdocs/comm/action/peruser.php

@@ -631,7 +631,6 @@ $currentdaytoshow = $firstdaytoshow;
 echo '<div class="div-table-responsive">';
 
 while($currentdaytoshow<$lastdaytoshow) {
-
 	echo '<table width="100%" class="noborder nocellnopadd cal_month">';
 
 	echo '<tr class="liste_titre">';
@@ -779,7 +778,6 @@ while($currentdaytoshow<$lastdaytoshow) {
 		$i = 0;
 		for ($iter_day = 0; $iter_day < 8; $iter_day++)
 		{
-
 			if (($i + 1) < $begin_d || ($i + 1) > $end_d)
 			{
 				$i++;

+ 0 - 1
htdocs/comm/action/rapport/index.php

@@ -144,7 +144,6 @@ if ($resql)
 
 		if ($obj)
 		{
-
 			print '<tr class="oddeven">';
 
 			// Date

+ 0 - 4
htdocs/comm/index.php

@@ -208,7 +208,6 @@ if (! empty($conf->propal->enabled) && $user->rights->propal->lire)
 		}
 		else
 		{
-
 			print '<tr class="oddeven"><td colspan="3" class="opacitymedium">'.$langs->trans("NoProposal").'</td></tr>';
 		}
 		print "</table></div><br>";
@@ -379,7 +378,6 @@ if (! empty($conf->commande->enabled) && $user->rights->commande->lire)
 		}
 		else
 		{
-
 			print '<tr class="oddeven"><td colspan="3" class="opacitymedium">'.$langs->trans("NoOrder").'</td></tr>';
 		}
 		print "</table>";
@@ -430,7 +428,6 @@ if (! empty($conf->fournisseur->enabled) && $user->rights->fournisseur->commande
 			$nbofloop=min($num, (empty($conf->global->MAIN_MAXLIST_OVERLOAD)?500:$conf->global->MAIN_MAXLIST_OVERLOAD));
 			while ($i < $nbofloop)
             {
-
                 $obj = $db->fetch_object($resql);
                 print '<tr class="oddeven"><td class="nowrap">';
                 $supplierorderstatic->id=$obj->rowid;
@@ -470,7 +467,6 @@ if (! empty($conf->fournisseur->enabled) && $user->rights->fournisseur->commande
         }
         else
         {
-
             print '<tr class="oddeven"><td colspan="3" class="opacitymedium">'.$langs->trans("NoSupplierOrder").'</td></tr>';
         }
         print "</table>";

+ 0 - 8
htdocs/comm/mailing/advtargetemailing.php

@@ -114,7 +114,6 @@ if ($action == 'loadfilter') {
 }
 
 if ($action == 'add') {
-
 	$user_contact_query = false;
 
 	$array_query = array ();
@@ -168,7 +167,6 @@ if ($action == 'add') {
 		}
 
 		if (preg_match("/^contact_/", $key)) {
-
 			$array_query[$key] = GETPOST($key);
 
 			$specials_date_key = array (
@@ -262,7 +260,6 @@ if ($action == 'clear') {
 }
 
 if ($action == 'savefilter' || $action == 'createfilter') {
-
 	$template_name = GETPOST('template_name');
 	$error = 0;
 
@@ -272,7 +269,6 @@ if ($action == 'savefilter' || $action == 'createfilter') {
 	}
 
 	if (empty($error)) {
-
 		$array_query = array ();
 
 		// Get extra fields
@@ -325,7 +321,6 @@ if ($action == 'savefilter' || $action == 'createfilter') {
 			}
 
 			if (preg_match("/^contact_/", $key)) {
-
 				$array_query[$key] = GETPOST($key);
 
 				$specials_date_key = array (
@@ -359,7 +354,6 @@ if ($action == 'savefilter' || $action == 'createfilter') {
 				setEventMessages($advTarget->error, $advTarget->errors, 'errors');
 			}
 		} elseif ($action == 'savefilter') {
-
 			$result = $advTarget->update($user);
 			if ($result < 0) {
 				setEventMessages($advTarget->error, $advTarget->errors, 'errors');
@@ -421,7 +415,6 @@ $formcompany = new FormCompany($db);
 $formother = new FormOther($db);
 
 if ($object->fetch($id) >= 0) {
-
 	$head = emailing_prepare_head($object);
 
 	dol_fiche_head($head, 'advtargets', $langs->trans("Mailing"), 0, 'email');
@@ -465,7 +458,6 @@ if ($object->fetch($id) >= 0) {
 
 	// Show email selectors
 	if ($object->statut == 0 && $user->rights->mailing->creer) {
-
 		include DOL_DOCUMENT_ROOT . '/core/tpl/advtarget.tpl.php';
 	}
 }

+ 0 - 8
htdocs/comm/mailing/class/advtargetemailing.class.php

@@ -556,7 +556,6 @@ class AdvanceTargetingMailing extends CommonObject
 		$sqlwhere[]= 't.entity IN ('.getEntity('societe').')';
 
 		if (count($arrayquery)>0) {
-
 			if (array_key_exists('cust_saleman', $arrayquery)) {
 				$sql.= " LEFT OUTER JOIN " . MAIN_DB_PREFIX . "societe_commerciaux as saleman ON saleman.fk_soc=t.rowid ";
 			}
@@ -565,7 +564,6 @@ class AdvanceTargetingMailing extends CommonObject
 			}
 
 			if (!empty($arrayquery['cust_name'])) {
-
 				$sqlwhere[]= $this->transformToSQL('t.nom', $arrayquery['cust_name']);
 			}
 			if (!empty($arrayquery['cust_code'])) {
@@ -617,13 +615,11 @@ class AdvanceTargetingMailing extends CommonObject
 
 			//Standard Extrafield feature
 			if (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED)) {
-
 				$elementtype = Societe::$table_element;
 
 				$extrafields->fetch_name_optionals_label($elementtype);
 
 				foreach($extrafields->attributes[$elementtype]['label'] as $key=>$val) {
-
 					if (($extrafields->attributes[$elementtype]['type'][$key] == 'varchar') ||
 						($extrafields->attributes[$elementtype]['type'][$key] == 'text')) {
 						if (!empty($arrayquery['options_'.$key])) {
@@ -713,7 +709,6 @@ class AdvanceTargetingMailing extends CommonObject
 		$sqlwhere[]= 't.entity IN ('.getEntity('socpeople').')';
 
 		if (count($arrayquery)>0) {
-
 			if (array_key_exists('contact_categ', $arrayquery)) {
 				$sql.= " LEFT OUTER JOIN " . MAIN_DB_PREFIX . "categorie_contact as contactcateg ON contactcateg.fk_socpeople=t.rowid ";
 			}
@@ -767,7 +762,6 @@ class AdvanceTargetingMailing extends CommonObject
 				$extrafields->fetch_name_optionals_label($elementtype);
 
 				foreach($extrafields->attributes[$elementtype]['label'] as $key=>$val) {
-
 					if (($extrafields->attributes[$elementtype]['type'][$key] == 'varchar') ||
 					($extrafields->attributes[$elementtype]['type'][$key] == 'text')) {
 						if (!empty($arrayquery['options_'.$key.'_cnct'])) {
@@ -809,7 +803,6 @@ class AdvanceTargetingMailing extends CommonObject
 					}
 
 					if (!empty($arrayquery['cust_name'])) {
-
 						$sqlwhere[]= $this->transformToSQL('ts.nom', $arrayquery['cust_name']);
 					}
 					if (!empty($arrayquery['cust_code'])) {
@@ -870,7 +863,6 @@ class AdvanceTargetingMailing extends CommonObject
 						$extrafields->fetch_name_optionals_label($elementtype);
 
 						foreach($extrafields->attributes[$elementtype]['label'] as $key=>$val) {
-
 							if (($extrafields->attributes[$elementtype]['type'][$key] == 'varchar') ||
 								($extrafields->attributes[$elementtype]['type'][$key] == 'text')) {
 								if (!empty($arrayquery['options_'.$key])) {

+ 0 - 8
htdocs/comm/mailing/class/html.formadvtargetemailing.class.php

@@ -114,7 +114,6 @@ class FormAdvTargetEmailing extends Form
 		dol_syslog(get_class($this) . "::select_country sql=" . $sql);
 		$resql = $this->db->query($sql);
 		if ($resql) {
-
 			$num = $this->db->num_rows($resql);
 			$i = 0;
 			if ($num) {
@@ -175,7 +174,6 @@ class FormAdvTargetEmailing extends Form
 		$resql_usr = $this->db->query($sql_usr);
 		if ($resql_usr) {
 			while ( $obj_usr = $this->db->fetch_object($resql_usr) ) {
-
 				$label = $obj_usr->firstname . " " . $obj_usr->name . " (" . $obj_usr->login . ')';
 
 				$options_array [$obj_usr->rowid] = $label;
@@ -249,7 +247,6 @@ class FormAdvTargetEmailing extends Form
 			$sql = 'SELECT ' . $keyList . ', ' . $InfoFieldList [1];
 			$sql .= ' FROM ' . MAIN_DB_PREFIX . $InfoFieldList [0];
 			if (! empty($InfoFieldList [3])) {
-
 				// We have to join on extrafield table
 				if (strpos($InfoFieldList [3], 'extra') !== false) {
 					$sql .= ' as main, ' . MAIN_DB_PREFIX . $InfoFieldList [0] . '_extrafields as extra';
@@ -266,7 +263,6 @@ class FormAdvTargetEmailing extends Form
 			dol_syslog(get_class($this) . "::".__METHOD__, LOG_DEBUG);
 			$resql = $this->db->query($sql);
 			if ($resql) {
-
 				$num = $this->db->num_rows($resql);
 				$i = 0;
 				if ($num) {
@@ -306,7 +302,6 @@ class FormAdvTargetEmailing extends Form
 		$resql=$this->db->query($sql);
 		if ($resql)
 		{
-
 			$num = $this->db->num_rows($resql);
 			$i = 0;
 			if ($num)
@@ -396,7 +391,6 @@ class FormAdvTargetEmailing extends Form
 		$resql=$this->db->query($sql);
 		if ($resql)
 		{
-
 			$num = $this->db->num_rows($resql);
 			$i = 0;
 			if ($num)
@@ -442,8 +436,6 @@ class FormAdvTargetEmailing extends Form
 		dol_syslog(get_class($this) . "::".__METHOD__, LOG_DEBUG);
 		$resql = $this->db->query($sql);
 		if ($resql) {
-
-
 			$out .= '<select id="' . $htmlname . '" class="flat" name="' . $htmlname . '">';
 			if ($showempty)
 				$out .= '<option value=""></option>';

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä