diff --git a/htdocs/admin/commande.php b/htdocs/admin/commande.php
index 6736f9d22799d3ac4f5892e7b4708ac24038de57..1d05efa8e995d16c6d4b244ccf776381c172c918 100644
--- a/htdocs/admin/commande.php
+++ b/htdocs/admin/commande.php
@@ -534,4 +534,3 @@ print '<br>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/admin/menus/other.php b/htdocs/admin/menus/other.php
index 0ec3119c097a6a69b49503e8ca90dc15b13e012e..36733add335a9af022b59c9eab5017431f85855f 100644
--- a/htdocs/admin/menus/other.php
+++ b/htdocs/admin/menus/other.php
@@ -143,4 +143,3 @@ print '</table>';
 
 llxFooter();
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/admin/stock.php b/htdocs/admin/stock.php
index 9b80662c180fe8d818873ea7c618d13ab9fe27e4..3cc9e70ca3199fa3773d549ba69e10de8a073041 100644
--- a/htdocs/admin/stock.php
+++ b/htdocs/admin/stock.php
@@ -77,7 +77,7 @@ if($action)
 	if($action == 'STOCK_USE_VIRTUAL_STOCK') {
 	    $res = dolibarr_set_const($db, "STOCK_USE_VIRTUAL_STOCK", GETPOST('STOCK_USE_VIRTUAL_STOCK','alpha'),'chaine',0,'',$conf->entity);
 	}
-	
+
 	if($action == 'STOCK_MUST_BE_ENOUGH_FOR_INVOICE') {
 	    $res = dolibarr_set_const($db, "STOCK_MUST_BE_ENOUGH_FOR_INVOICE", GETPOST('STOCK_MUST_BE_ENOUGH_FOR_INVOICE','alpha'),'chaine',0,'',$conf->entity);
 	}
@@ -329,7 +329,7 @@ if ($virtualdiffersfromphysical)
 	print '</table>';
 }
 
-$db->close();
 
 llxFooter();
-?>
+
+$db->close();
diff --git a/htdocs/admin/system/database.php b/htdocs/admin/system/database.php
index f32122df7b96a818d7719c9bab420ccfa3a121e7..d9833a13d0115041dcc7bf732f9244942b6fb360 100644
--- a/htdocs/admin/system/database.php
+++ b/htdocs/admin/system/database.php
@@ -81,7 +81,7 @@ else
 		print '<td width="300">'.$langs->trans("Parameters").'</td>';
 		print '<td>'.$langs->trans("Value").'</td>';
 		print '</tr>'."\n";
-	
+
 		// arraytest is an array of test to do
 		$arraytest=array();
 		if (preg_match('/mysql/i',$db->type))
@@ -91,7 +91,7 @@ else
 				'collation_database'=>array('var'=>'dolibarr_main_db_collation','valifempty'=>'utf8_general_ci')
 			);
 		}
-	
+
 		$listtouse=array();
 		if ($listname == 'listofvars') $listtouse=$listofvars;
 		if ($listname == 'listofstatus') $listtouse=$listofstatus;
@@ -124,4 +124,5 @@ else
 }
 
 llxFooter();
-?>
\ No newline at end of file
+
+$db->close();
diff --git a/htdocs/admin/system/dbtable.php b/htdocs/admin/system/dbtable.php
index fe182c2e73e3a3db24282160b269241840fb1a10..0990d89acd03421e5a5e062d4de988552073649a 100644
--- a/htdocs/admin/system/dbtable.php
+++ b/htdocs/admin/system/dbtable.php
@@ -130,4 +130,3 @@ else
 
 llxFooter();
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/admin/system/dolibarr.php b/htdocs/admin/system/dolibarr.php
index 8be469006ff16f42f5ab464f1efba1fb382b16ca..fe9bde59cec3df8863ec222cd3e40a8afd906825 100644
--- a/htdocs/admin/system/dolibarr.php
+++ b/htdocs/admin/system/dolibarr.php
@@ -379,4 +379,3 @@ print '</table>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/admin/system/index.php b/htdocs/admin/system/index.php
index 640d5138362adc83fd50a8c8d1435dacd778e779..1f95dce57cf2abca6aaf8a105e4ebd757e2bc21c 100644
--- a/htdocs/admin/system/index.php
+++ b/htdocs/admin/system/index.php
@@ -118,5 +118,3 @@ print info_admin($langs->trans("SystemInfoDesc")).'<br>';
 llxFooter();
 
 $db->close();
-
-?>
diff --git a/htdocs/admin/tools/eaccelerator.php b/htdocs/admin/tools/eaccelerator.php
index a3f046f45100a75cbeb7889c632a43da5baddef0..8f82f33d03949b33c7090045025b5bfe6b7a0fa4 100644
--- a/htdocs/admin/tools/eaccelerator.php
+++ b/htdocs/admin/tools/eaccelerator.php
@@ -350,4 +350,3 @@ print "<br><br>";
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/admin/tools/purge.php b/htdocs/admin/tools/purge.php
index cac0bce888cd8919deda0955a38dcc846fe67b82..30c7ba4dd4394db31bad062b4051a78ebb5bb984 100644
--- a/htdocs/admin/tools/purge.php
+++ b/htdocs/admin/tools/purge.php
@@ -166,4 +166,3 @@ if (preg_match('/^confirm/i',$choice))
 
 llxFooter();
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/admin/tools/update.php b/htdocs/admin/tools/update.php
index e449d265fa3642b62614dd624083781fae8ab31d..8b0b105d0f0ba2a1859cb274f19244284d093b6d 100644
--- a/htdocs/admin/tools/update.php
+++ b/htdocs/admin/tools/update.php
@@ -174,4 +174,3 @@ if (! empty($result['return']))
 
 llxFooter();
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/admin/translation.php b/htdocs/admin/translation.php
index 8e5370a957e2e677049be6df620e7e8602efb786..66bc4fb22ba49bc3737c981564db84732654f617 100644
--- a/htdocs/admin/translation.php
+++ b/htdocs/admin/translation.php
@@ -69,4 +69,3 @@ print $langs->trans("SeeAlso").': <a href="'.$urlwikitranslatordoc.'" target="_b
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/admin/workflow.php b/htdocs/admin/workflow.php
index cea1690b8185f9c2835bff1b55d5254807d4472e..bbf2ce751ba8c5c81ec2862fa3e9f4bd5a6cc991 100644
--- a/htdocs/admin/workflow.php
+++ b/htdocs/admin/workflow.php
@@ -146,4 +146,3 @@ print '</table>';
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/cashdesk/affIndex.php b/htdocs/cashdesk/affIndex.php
index df282cd6df18c718f30508331cb6aaf114acb1bb..5a713eed4d98d563474c100cdd5f4b43e1cb5821 100644
--- a/htdocs/cashdesk/affIndex.php
+++ b/htdocs/cashdesk/affIndex.php
@@ -75,4 +75,3 @@ include_once 'affPied.php';
 
 print '</div></div></div>'."\n";
 print '</body></html>'."\n";
-?>
\ No newline at end of file
diff --git a/htdocs/cashdesk/facturation.php b/htdocs/cashdesk/facturation.php
index 4d442c0dbd3c307f48cc69da61c299d7bb82425c..32411f627fb670ee54c0fe9ef264ed5c4ae35786 100644
--- a/htdocs/cashdesk/facturation.php
+++ b/htdocs/cashdesk/facturation.php
@@ -191,5 +191,3 @@ $obj_facturation->paiementLe('RESET');
 
 // Affichage des templates
 require ('tpl/facturation1.tpl.php');
-
-?>
diff --git a/htdocs/cashdesk/tpl/menu.tpl.php b/htdocs/cashdesk/tpl/menu.tpl.php
index 59800fb57c1b103083f4c644bc6ffc20219c9519..4ee52ce0da6f4153bc6216417b02e78a39aa92b1 100644
--- a/htdocs/cashdesk/tpl/menu.tpl.php
+++ b/htdocs/cashdesk/tpl/menu.tpl.php
@@ -78,4 +78,3 @@ if (!empty($_SESSION["CASHDESK_ID_WAREHOUSE"]) && ! empty($conf->stock->enabled)
 }
 print '</li></ul>';
 print '</div>';
-?>
\ No newline at end of file
diff --git a/htdocs/categories/viewcat.php b/htdocs/categories/viewcat.php
index bec834e1ff97abbb67bda650016506088efbaa6f..010306d1e0028296ba45fbbd185dac268020a379 100644
--- a/htdocs/categories/viewcat.php
+++ b/htdocs/categories/viewcat.php
@@ -520,4 +520,3 @@ if($object->type == 4)
 
 llxFooter();
 $db->close();
-?>
\ No newline at end of file
diff --git a/htdocs/comm/action/class/actioncomm.class.php b/htdocs/comm/action/class/actioncomm.class.php
index e41e556f3d9a9a0d4fdc95dbca4eb5165a1b223a..9919dc21e807bd86a39abde7568b94b119930aed 100644
--- a/htdocs/comm/action/class/actioncomm.class.php
+++ b/htdocs/comm/action/class/actioncomm.class.php
@@ -1071,4 +1071,3 @@ class ActionComm extends CommonObject
 
 }
 
-?>
diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php
index 7a79b658a76d011869aacf7551bd7d93c9553f66..7ba1cc8bc4856107009d7a1b5bc1afa1f6cd847c 100644
--- a/htdocs/comm/fiche.php
+++ b/htdocs/comm/fiche.php
@@ -821,11 +821,11 @@ if ($id > 0)
 	/*
 	 * Barre d'actions
 	 */
-	
+
 	$parameters = array();
 	$reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object, $action); // Note that $action and $object may have been
-	
-	
+
+
 	print '<div class="tabsAction">';
 
 	if (! empty($conf->propal->enabled) && $user->rights->propal->creer)
@@ -933,4 +933,3 @@ dol_htmloutput_mesg('',$mesgs);
 // End of page
 llxFooter();
 $db->close();
-?>
diff --git a/htdocs/commande/customer.php b/htdocs/commande/customer.php
index 373775a0da09aea2070ee607f9d0735d179dbd56..29812903d12b1a927424440062fbd26193e78aa1 100644
--- a/htdocs/commande/customer.php
+++ b/htdocs/commande/customer.php
@@ -156,7 +156,7 @@ if ($resql)
 
 		print "<tr ".$bc[$var].">";
 		print '<td>';
-		
+
         $result='';
         $lien=$lienfin='';
         $lien = '<a href="'.dol_buildpath('/commande/orderstoinvoice.php',1).'?socid='.$obj->rowid.'">';
@@ -164,7 +164,7 @@ if ($resql)
         $name=$obj->nom;
         $result.=($lien.img_object($langs->trans("ShowCompany").': '.$name,'company').$lienfin);
         $result.=$lien.(dol_trunc($name,$maxlen)).$lienfin;
-		
+
 		print $result;
 		print '</td>';
 		print '<td>'.$obj->town.'&nbsp;</td>';
@@ -185,7 +185,7 @@ else
 	dol_print_error($db);
 }
 
+llxFooter();
+
 $db->close();
 
-llxFooter();
-?>
diff --git a/htdocs/compta/facture/apercu.php b/htdocs/compta/facture/apercu.php
index e166270848924563f3a98197406de7aa2169f9f0..856640e306e412c40a008ed525aff239a6175535 100644
--- a/htdocs/compta/facture/apercu.php
+++ b/htdocs/compta/facture/apercu.php
@@ -420,4 +420,3 @@ elseif (file_exists($fileimagebis))
 $db->close();
 
 llxFooter();
-?>
diff --git a/htdocs/core/actions_sendmails.inc.php b/htdocs/core/actions_sendmails.inc.php
index f13113487c1b51c5fbd22d0dfcd0eee788ff37c5..3af164abfabccd8562b6f009511f560fc9917e21 100644
--- a/htdocs/core/actions_sendmails.inc.php
+++ b/htdocs/core/actions_sendmails.inc.php
@@ -229,5 +229,3 @@ if (($action == 'send' || $action == 'relance') && ! $_POST['addfile'] && ! $_PO
 	}
 
 }
-
-?>
\ No newline at end of file
diff --git a/htdocs/core/actions_setnotes.inc.php b/htdocs/core/actions_setnotes.inc.php
index 3b2bbef75bb1a4b0c2151517694c07fa59bf50ba..74f576cf852fdb731d56d7d1977969f5b95fe3cc 100644
--- a/htdocs/core/actions_setnotes.inc.php
+++ b/htdocs/core/actions_setnotes.inc.php
@@ -43,5 +43,3 @@ else if ($action == 'setnote_private' && ! empty($permissionnote) && ! GETPOST('
 	$result=$object->update_note(dol_html_entity_decode(GETPOST('note_private'), ENT_QUOTES),'_private');
 	if ($result < 0) setEventMessage($object->error,'errors');
 }
-
-?>
\ No newline at end of file
diff --git a/htdocs/core/class/dolprintipp.class.php b/htdocs/core/class/dolprintipp.class.php
index 768741d93684d1714e1ddb7263708c5bf507874d..942ee3da3c3b9b8954594b591f9b3f529d397c9b 100644
--- a/htdocs/core/class/dolprintipp.class.php
+++ b/htdocs/core/class/dolprintipp.class.php
@@ -201,4 +201,3 @@ class dolprintIPP
         return $ipp->printer_attributes;
     }
 }
-?>
diff --git a/htdocs/core/lib/holiday.lib.php b/htdocs/core/lib/holiday.lib.php
index dd299ab5c2c576c8f24c49b8d1f013bd41c0cdbe..6b4877b14b2cdddc7a0ac399f23d6cc87e5c8fc6 100644
--- a/htdocs/core/lib/holiday.lib.php
+++ b/htdocs/core/lib/holiday.lib.php
@@ -50,4 +50,3 @@ function holiday_prepare_head($object)
 	return $head;
 }
 
-?>
diff --git a/htdocs/core/lib/product.lib.php b/htdocs/core/lib/product.lib.php
index e8c86b37db97367a23649ffb665ea6f7f5e62c1a..a252b361dcf2d189410ea569ceed12770fa92465 100644
--- a/htdocs/core/lib/product.lib.php
+++ b/htdocs/core/lib/product.lib.php
@@ -357,5 +357,3 @@ function measuring_units_string($unit,$measuring_style='')
 
 	return $measuring_units[$unit];
 }
-
-?>
diff --git a/htdocs/core/lib/trip.lib.php b/htdocs/core/lib/trip.lib.php
index 60794497554be243d27a67a6508c849079463a81..7d58e9e01b12f4181c972560c29ef9978159b136 100644
--- a/htdocs/core/lib/trip.lib.php
+++ b/htdocs/core/lib/trip.lib.php
@@ -54,10 +54,8 @@ function trip_prepare_head($object)
 	$head[$h][1] = $langs->trans("Info");
 	$head[$h][2] = 'info';
 	$h++;
-	
+
 	complete_head_from_modules($conf,$langs,$object,$head,$h,'trip','remove');
 
 	return $head;
 }
-
-?>
\ No newline at end of file
diff --git a/htdocs/core/lib/usergroups.lib.php b/htdocs/core/lib/usergroups.lib.php
index d6097b6f5a1a5c8a2e876e2d9f689ac3dd5906e9..75a78627f52b5df678344ad2595319574d115fc7 100644
--- a/htdocs/core/lib/usergroups.lib.php
+++ b/htdocs/core/lib/usergroups.lib.php
@@ -342,4 +342,3 @@ function show_theme($fuser,$edit=0,$foruserprofile=false)
     print '</table>';
 }
 
-?>
diff --git a/htdocs/core/login/functions_empty.php b/htdocs/core/login/functions_empty.php
index c96a5023d4df321fbd5b2b86839d9f969cb9bc69..e4379ee2c3a3f36f1ba57ab388167bcb89ccfe94 100644
--- a/htdocs/core/login/functions_empty.php
+++ b/htdocs/core/login/functions_empty.php
@@ -39,5 +39,3 @@ function check_user_password_empty($usertotest,$passwordtotest,$entitytotest)
 
 	return $login;
 }
-
-?>
\ No newline at end of file
diff --git a/htdocs/core/login/functions_forceuser.php b/htdocs/core/login/functions_forceuser.php
index e74a253550a4d06f5e713f5bbc0371a70e38251b..94201c74ad05b17c31b6cff61a9c61895e6d49a5 100644
--- a/htdocs/core/login/functions_forceuser.php
+++ b/htdocs/core/login/functions_forceuser.php
@@ -46,6 +46,3 @@ function check_user_password_forceuser($usertotest,$passwordtotest,$entitytotest
 
 	return $login;
 }
-
-
-?>
\ No newline at end of file
diff --git a/htdocs/core/login/functions_http.php b/htdocs/core/login/functions_http.php
index b224b27f15b9d1bf7b75497e72726cba383a6e05..285ebebbabf3cd7393cf521a6a02b77bdab2d440 100644
--- a/htdocs/core/login/functions_http.php
+++ b/htdocs/core/login/functions_http.php
@@ -43,6 +43,3 @@ function check_user_password_http($usertotest,$passwordtotest,$entitytotest)
 
 	return $login;
 }
-
-
-?>
\ No newline at end of file
diff --git a/htdocs/core/login/functions_ldap.php b/htdocs/core/login/functions_ldap.php
index 403530ac80b96c7d4b44e43c9b5201f4fb5a77ba..88a5f55de19df31aee211a56283657ee4d88e5b2 100644
--- a/htdocs/core/login/functions_ldap.php
+++ b/htdocs/core/login/functions_ldap.php
@@ -227,5 +227,3 @@ function check_user_password_ldap($usertotest,$passwordtotest,$entitytotest)
 	return $login;
 }
 
-
-?>
diff --git a/htdocs/core/login/functions_openid.php b/htdocs/core/login/functions_openid.php
index e183bc407950794797618e20b01ae42e13126429..2470567d596887ee13036d07a61c4421384450da 100644
--- a/htdocs/core/login/functions_openid.php
+++ b/htdocs/core/login/functions_openid.php
@@ -112,5 +112,3 @@ function check_user_password_openid($usertotest,$passwordtotest,$entitytotest)
 
     return $login;
 }
-
-?>
\ No newline at end of file
diff --git a/htdocs/core/menus/standard/auguria.lib.php b/htdocs/core/menus/standard/auguria.lib.php
index 427a03d9929de07522c82358f665f3e07cd98bc9..e8d71496820f0609f1f3dabb9ebeadb7adc07b42 100644
--- a/htdocs/core/menus/standard/auguria.lib.php
+++ b/htdocs/core/menus/standard/auguria.lib.php
@@ -430,5 +430,3 @@ function dol_auguria_showmenu($type_user, &$menuentry, &$listofmodulesforexterna
 	if (! $menuentry['perms']) return 2;															// No permissions and user is external
 	return 1;
 }
-
-?>
diff --git a/htdocs/core/modules/propale/modules_propale.php b/htdocs/core/modules/propale/modules_propale.php
index 289862c852395dd1a8c45d372ddbde0c24c021a4..8e45f3b86f288b35219eb84ba139b88b45b9bed9 100644
--- a/htdocs/core/modules/propale/modules_propale.php
+++ b/htdocs/core/modules/propale/modules_propale.php
@@ -253,4 +253,3 @@ function propale_pdf_create($db, $object, $modele, $outputlangs, $hidedetails=0,
 	}
 }
 
-?>
diff --git a/htdocs/fichinter/document.php b/htdocs/fichinter/document.php
index 54728df36d91eaa8c0005a8197aebf0df29c1805..fd039efff24b4ffd49b916a85931c6abceabbdab 100644
--- a/htdocs/fichinter/document.php
+++ b/htdocs/fichinter/document.php
@@ -131,7 +131,7 @@ else
 	print $langs->trans("ErrorUnknown");
 }
 
+
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/holiday/define_holiday.php b/htdocs/holiday/define_holiday.php
index 4e1540c99e5e5f132189f457a320c7541c6ef02a..c432d37007bf5f49fb9078444a9068f03d417590 100644
--- a/htdocs/holiday/define_holiday.php
+++ b/htdocs/holiday/define_holiday.php
@@ -190,7 +190,8 @@ print '</form>';
 
 dol_fiche_end();
 
+
 llxFooter();
 
 $db->close();
-?>
+
diff --git a/htdocs/langs/en_US/compta.lang b/htdocs/langs/en_US/compta.lang
index 281ee374343f1330de8dda6bc802fa23f3fe353c..e0931bf58128e8d49cf348e906cbcdf4d8c0e041 100644
--- a/htdocs/langs/en_US/compta.lang
+++ b/htdocs/langs/en_US/compta.lang
@@ -167,7 +167,7 @@ AccountancyDashboard=Accountancy summary
 ByProductsAndServices=By products and services
 RefExt=External ref
 ToCreateAPredefinedInvoice=To create a predefined invoice, create a standard invoice then, without validating it, click onto button "Convert to predefined invoice".
-LinkedOrder=linked to order
+LinkedOrder=Link to order
 ReCalculate=Recalculate
 Mode1=Method 1
 Mode2=Method 2
diff --git a/htdocs/livraison/class/livraison.class.php b/htdocs/livraison/class/livraison.class.php
index dd5ebf3857349b66ec003e8a37bc3cd85e3dfa83..65213cea647eb0add0c68852153b6aea17693738 100644
--- a/htdocs/livraison/class/livraison.class.php
+++ b/htdocs/livraison/class/livraison.class.php
@@ -968,5 +968,3 @@ class LivraisonLigne
 	}
 
 }
-
-?>
diff --git a/htdocs/opensurvey/fonctions.php b/htdocs/opensurvey/fonctions.php
index c3c80a59b86051431bfecedf264cebf714636232..b2077c05bbf65e3314799c3d4963e9074759b3bf 100644
--- a/htdocs/opensurvey/fonctions.php
+++ b/htdocs/opensurvey/fonctions.php
@@ -25,14 +25,14 @@
 /**
  * Returns an array with the tabs for the "Opensurvey poll" section
  * It loads tabs from modules looking for the entity Opensurveyso
- * 
+ *
  * @param Opensurveysondage $object Current viewing poll
  * @return array Tabs for the opensurvey section
  */
 function opensurvey_prepare_head(Opensurveysondage $object) {
-	
+
 	global $langs, $conf;
-	
+
 	$h = 0;
 	$head = array();
 
@@ -40,7 +40,7 @@ function opensurvey_prepare_head(Opensurveysondage $object) {
 	$head[0][1] = $langs->trans("Card");
 	$head[0][2] = 'general';
 	$h++;
-	
+
 	$head[1][0] = 'results.php?id='.$object->id_sondage;
 	$head[1][1] = $langs->trans("SurveyResults");
 	$head[1][2] = 'preview';
@@ -111,12 +111,12 @@ function showlogo()
 			$urllogo=DOL_URL_ROOT.'/viewimage.php?cache=1&amp;modulepart=companylogo&amp;file=thumbs/'.urlencode($mysoc->logo_small);
 		}
 	}
-	
+
 	if (!$urllogo && (is_readable(DOL_DOCUMENT_ROOT.'/theme/dolibarr_logo.png')))
 	{
 		$urllogo=DOL_URL_ROOT.'/theme/dolibarr_logo.png';
 	}
-	
+
 	print '<div style="text-align:center"><img alt="Logo" id="logosubscribe" title="" src="'.$urllogo.'"/></div>';
 	print '<br>';
 }
@@ -205,14 +205,14 @@ function dol_survey_random($car)
 function ajouter_sondage()
 {
 	global $db, $user;
-	
+
 	require_once DOL_DOCUMENT_ROOT.'/opensurvey/class/opensurveysondage.class.php';
 
 	$sondage=dol_survey_random(16);
 
 	$allow_comments = empty($_SESSION['allow_comments']) ? 0 : 1;
 	$allow_spy = empty($_SESSION['allow_spy']) ? 0 : 1;
-	
+
 	// Insert survey
 	$opensurveysondage = new Opensurveysondage($db);
 	$opensurveysondage->id_sondage = $sondage;
@@ -226,9 +226,9 @@ function ajouter_sondage()
 	$opensurveysondage->allow_comments = $allow_comments;
 	$opensurveysondage->allow_spy = $allow_spy;
 	$opensurveysondage->sujet = $_SESSION['toutchoix'];
-	
+
 	$res = $opensurveysondage->create($user);
-	
+
 	if ($res < 0) {
 		dol_print_error($db);
 	}
@@ -243,11 +243,10 @@ function ajouter_sondage()
 	unset($_SESSION['toutchoix']);
 	unset($_SESSION['totalchoixjour']);
 	unset($_SESSION['champdatefin']);
-	
+
 	$urlback=dol_buildpath('/opensurvey/card.php',1).'?id='.$sondage;
 
 	header("Location: ".$urlback);
 	exit();
 }
 
-?>
diff --git a/htdocs/opensurvey/results.php b/htdocs/opensurvey/results.php
index 00daab24b2771e942a1c8510d28d62c32ee2f8c9..c5baba61242ebabfeaad006f4d648c18474687f4 100644
--- a/htdocs/opensurvey/results.php
+++ b/htdocs/opensurvey/results.php
@@ -1083,4 +1083,3 @@ print '<a name="bas"></a>'."\n";
 llxFooterSurvey();
 
 $db->close();
-?>
diff --git a/htdocs/printipp/admin/printipp.php b/htdocs/printipp/admin/printipp.php
index 08202b38f8e2526f85eef5ea3e6ebaeb8dad3871..6aaf44f8bdd982d6429b6883d3c90bc659a0139a 100644
--- a/htdocs/printipp/admin/printipp.php
+++ b/htdocs/printipp/admin/printipp.php
@@ -149,7 +149,7 @@ if ($mode == 'config' && $user->admin)
     print $langs->trans("PRINTIPP_PASSWORD").'</td><td>';
     print '<input size="32" type="text" name="PRINTIPP_PASSWORD" value="'.$conf->global->PRINTIPP_PASSWORD.'">';
     print '</td></tr>';
-    
+
     //$var=true;
     //print '<tr class="liste_titre">';
     //print '<td>'.$langs->trans("OtherParameter").'</td>';
@@ -181,7 +181,7 @@ if ($mode == 'test' && $user->admin)
     print '<td>Media</td>';
     print '<td>Supported</td>';
     print "</tr>\n";
-    
+
     $list = $printer->getlist_available_printers();
     $var = true;
     foreach ($list as $value)
@@ -203,13 +203,13 @@ if ($mode == 'test' && $user->admin)
         print "</tr>\n";
     }
     print '</table>';
-    
+
     if (count($list) == 0) print $langs->trans("NoPrinterFound");
 }
 
 dol_fiche_end();
 
+
 llxFooter();
 
 $db->close();
-?>
diff --git a/htdocs/societe/ajaxcompanies.php b/htdocs/societe/ajaxcompanies.php
index 32fbe2e2c00b22ae5d03a3fb5f5b448441fe6a82..de116453cf2df9a8537f6dbd5efac0ef7c5af1b2 100644
--- a/htdocs/societe/ajaxcompanies.php
+++ b/htdocs/societe/ajaxcompanies.php
@@ -110,5 +110,3 @@ else
 {
     echo json_encode(array('nom'=>'ErrorBadParameter','label'=>'ErrorBadParameter','key'=>'ErrorBadParameter','value'=>'ErrorBadParameter'));
 }
-
-?>
\ No newline at end of file
diff --git a/htdocs/societe/canvas/actions_card_common.class.php b/htdocs/societe/canvas/actions_card_common.class.php
index 6f6cb067333816b42dea975c1f4a6833b2fc539d..39f0dc761f87a2b5a689326ab0e5c1ccd1f39509 100644
--- a/htdocs/societe/canvas/actions_card_common.class.php
+++ b/htdocs/societe/canvas/actions_card_common.class.php
@@ -706,4 +706,3 @@ abstract class ActionsCardCommon
 
 }
 
-?>
diff --git a/test/phpunit/CommandeFournisseurTest.php b/test/phpunit/CommandeFournisseurTest.php
index 2c83b4fdfc37eee419d0d07b5e4c07b2aea459a1..90c0d10e3fb6d6bf4c93ec76b5bb493740e57991 100644
--- a/test/phpunit/CommandeFournisseurTest.php
+++ b/test/phpunit/CommandeFournisseurTest.php
@@ -338,4 +338,3 @@ class CommandeFournisseurTest extends PHPUnit_Framework_TestCase
     }
 
 }
-?>
\ No newline at end of file
diff --git a/test/phpunit/CommandeTest.php b/test/phpunit/CommandeTest.php
index 451e886a7614a5b19176a745307047a364273eae..8a2e3f57120c57aa6ef6196477b2c15665dcbe9d 100644
--- a/test/phpunit/CommandeTest.php
+++ b/test/phpunit/CommandeTest.php
@@ -265,4 +265,3 @@ class CommandeTest extends PHPUnit_Framework_TestCase
     }
 
 }
-?>
\ No newline at end of file
diff --git a/test/phpunit/CommonObjectTest.php b/test/phpunit/CommonObjectTest.php
index cbdde31e14d9c56ecb82553198681330d4550b6b..a22146dfc2add302df2746af5c40ac1980156719 100644
--- a/test/phpunit/CommonObjectTest.php
+++ b/test/phpunit/CommonObjectTest.php
@@ -183,4 +183,3 @@ class CommonObjectTest extends PHPUnit_Framework_TestCase
     	return $result;
     }
 }
-?>
\ No newline at end of file
diff --git a/test/phpunit/CompanyBankAccountTest.php b/test/phpunit/CompanyBankAccountTest.php
index 24d6ad03d80efed2496cf7b3a53abfe77ad14a41..693282e62c463fec6503ccd62e5d97106aa64e7f 100644
--- a/test/phpunit/CompanyBankAccountTest.php
+++ b/test/phpunit/CompanyBankAccountTest.php
@@ -233,4 +233,4 @@ class CompanyBankAccountTest extends PHPUnit_Framework_TestCase
     }
 
 }
-?>
+
diff --git a/test/phpunit/EntrepotTest.php b/test/phpunit/EntrepotTest.php
index efd5f54008fb65cd22f28f824ee24c677d2c128e..53788d71dab6265855390f2c8b939c434961bf26 100755
--- a/test/phpunit/EntrepotTest.php
+++ b/test/phpunit/EntrepotTest.php
@@ -257,4 +257,3 @@ class EntrepotTest extends PHPUnit_Framework_TestCase
         return;
     }
 }
-?>
\ No newline at end of file
diff --git a/test/phpunit/ExportTest.php b/test/phpunit/ExportTest.php
index d5938fc46915816c4d16f1d79a2b0bd335f9ea8a..641fe3b7f9e209a4a70c12ab3ee13a38a035e7ff 100755
--- a/test/phpunit/ExportTest.php
+++ b/test/phpunit/ExportTest.php
@@ -265,4 +265,4 @@ class ExportTest extends PHPUnit_Framework_TestCase
         return true;
     }
 }
-?>
+
diff --git a/test/phpunit/FactureRecTest.php b/test/phpunit/FactureRecTest.php
index 7b5caffc2df3c962c8da3969ed1aa3e4485f51ad..4d4783240faa5a2b84872b129708c7718f035afc 100644
--- a/test/phpunit/FactureRecTest.php
+++ b/test/phpunit/FactureRecTest.php
@@ -196,4 +196,3 @@ class FactureRecTest extends PHPUnit_Framework_TestCase
         return $retAr;
     }
 }
-?>
\ No newline at end of file
diff --git a/test/phpunit/FactureTest.php b/test/phpunit/FactureTest.php
index cc54953875c7619e08644303811c799147adc79c..2227559ffd38eee6a98cef1fe4c35f602925d3ab 100644
--- a/test/phpunit/FactureTest.php
+++ b/test/phpunit/FactureTest.php
@@ -329,4 +329,4 @@ class FactureTest extends PHPUnit_Framework_TestCase
         return $retAr;
     }
 }
-?>
+
diff --git a/test/phpunit/FunctionsLibTest.php b/test/phpunit/FunctionsLibTest.php
index dbb3f6d8b8d84c3e7c4de66b6c39d1d1faae5407..78c2278ba695598311691ad6fd3ecfc18b201d1e 100755
--- a/test/phpunit/FunctionsLibTest.php
+++ b/test/phpunit/FunctionsLibTest.php
@@ -799,4 +799,4 @@ class FunctionsLibTest extends PHPUnit_Framework_TestCase
     }
 
 }
-?>
+
diff --git a/test/phpunit/PropalTest.php b/test/phpunit/PropalTest.php
index 3cac847a01fbf16846f5e419df55cb337a53558b..089b279f75cf6e2a754a040400a1b90c1cf8218d 100644
--- a/test/phpunit/PropalTest.php
+++ b/test/phpunit/PropalTest.php
@@ -265,4 +265,4 @@ class PropalTest extends PHPUnit_Framework_TestCase
     }
 
 }
-?>
+
diff --git a/test/phpunit/SocieteTest.php b/test/phpunit/SocieteTest.php
index 162248f2e9820edd4c014f85a03c1e8653f5bc06..97aa0f0a95491d0c54c85b66a5d925e9dbea3e00 100755
--- a/test/phpunit/SocieteTest.php
+++ b/test/phpunit/SocieteTest.php
@@ -456,4 +456,4 @@ class SocieteTest extends PHPUnit_Framework_TestCase
     }
 
 }
-?>
+
diff --git a/test/phpunit/UserTest.php b/test/phpunit/UserTest.php
index ef103eb1a46d5ab04cee42589c8b799e8b88c47d..e0eaa03acecdffa0f6bb2ab7c9315bb4903632a4 100644
--- a/test/phpunit/UserTest.php
+++ b/test/phpunit/UserTest.php
@@ -318,4 +318,3 @@ class UserTest extends PHPUnit_Framework_TestCase
     	return $retAr;
     }
 }
-?>
\ No newline at end of file
diff --git a/test/phpunit/WebservicesInvoicesTest.php b/test/phpunit/WebservicesInvoicesTest.php
index 12c01eeba706fa9c6084b52d3d5ed63feab5a21d..85c2398c568936cf57a0ff59da5728186f96969b 100755
--- a/test/phpunit/WebservicesInvoicesTest.php
+++ b/test/phpunit/WebservicesInvoicesTest.php
@@ -181,4 +181,4 @@ class WebservicesInvoicesTest extends PHPUnit_Framework_TestCase
     }
 
 }
-?>
+
diff --git a/test/phpunit/WebservicesThirdpartyTest.php b/test/phpunit/WebservicesThirdpartyTest.php
index 8ef0c3839555ec5ca875ac3d00cbe642cafb6efb..bf7cdc357c0a26437d18b233a29f4b8f09770c57 100755
--- a/test/phpunit/WebservicesThirdpartyTest.php
+++ b/test/phpunit/WebservicesThirdpartyTest.php
@@ -181,4 +181,4 @@ class WebservicesThirdpartyTest extends PHPUnit_Framework_TestCase
     }
 
 }
-?>
+