diff --git a/build/aps/Limitations of APS Support in the Panel_fichiers/highlight.js b/build/aps/Limitations of APS Support in the Panel_fichiers/highlight.js
index d6386c93792..10056e95fd4 100644
--- a/build/aps/Limitations of APS Support in the Panel_fichiers/highlight.js
+++ b/build/aps/Limitations of APS Support in the Panel_fichiers/highlight.js
@@ -15,14 +15,14 @@ else return 0;
function highlightTOC(str) {
-
-
-
-
-
+
+
+
+
+
if (StopProcess()) return;
try {
-
+
str = str || parent.BODY.document.location.href;
uri = last(str);
list = parent.TOC.document.getElementsByTagName("a");
@@ -33,7 +33,7 @@ function highlightTOC(str) {
list[i].style.backgroundColor = "#6697cc";
list[i].style.padding = "2px";
list[i].style.color = "#ffffff";
-
+
} else {
list[i].style.backgroundColor = "#ffffff";
list[i].style.color = "#003380";
diff --git a/build/aps/Limitations of APS Support in the Panel_fichiers/prettify.css b/build/aps/Limitations of APS Support in the Panel_fichiers/prettify.css
index ee31b50285a..ab64ac4bb6b 100644
--- a/build/aps/Limitations of APS Support in the Panel_fichiers/prettify.css
+++ b/build/aps/Limitations of APS Support in the Panel_fichiers/prettify.css
@@ -12,7 +12,7 @@
.atn { color: #606; }
.atv { color: #080; }
.dec { color: #606; }
-pre.preformatted {
+pre.preformatted {
display: block;
font-family: "Courier New", verdana, arial, helvetica, sans-serif;
diff --git a/build/aps/Limitations of APS Support in the Panel_fichiers/prettify.js b/build/aps/Limitations of APS Support in the Panel_fichiers/prettify.js
index 11234738656..fab5c8e6f2a 100644
--- a/build/aps/Limitations of APS Support in the Panel_fichiers/prettify.js
+++ b/build/aps/Limitations of APS Support in the Panel_fichiers/prettify.js
@@ -1116,7 +1116,7 @@ window['_pr_isIE6'] = function () {
for (var i = 0; i < 10; ++i) {
lineBreaks[i] = lineBreakHtml + '
';
}
- var lineNum = numberLines[1] && numberLines[1].length
+ var lineNum = numberLines[1] && numberLines[1].length
? numberLines[1] - 1 : 0; // Lines are 1-indexed
html.push('
trans("Unknown");
-
+
// Security check
-if (empty($conf->clicktodial->enabled))
+if (empty($conf->clicktodial->enabled))
{
print "Error: Module Click to dial is not enabled.\n";
exit;
diff --git a/htdocs/core/class/commonstickergenerator.class.php b/htdocs/core/class/commonstickergenerator.class.php
index 1091962f6ea..c6ef9351b69 100644
--- a/htdocs/core/class/commonstickergenerator.class.php
+++ b/htdocs/core/class/commonstickergenerator.class.php
@@ -93,7 +93,7 @@ abstract class CommonStickerGenerator
{
$this->db = $db;
}
-
+
/**
* Function to build PDF on disk, then output on HTTP strem.
*
@@ -114,7 +114,7 @@ abstract class CommonStickerGenerator
* @return void
*/
abstract function addSticker(&$pdf,$outputlangs,$param);
-
+
/**
* Methode qui permet de modifier la taille des caracteres
* Cela modiera aussi l'espace entre chaque ligne
@@ -130,7 +130,7 @@ abstract class CommonStickerGenerator
$this->_Line_Height = $this->_Get_Height_Chars($pt);
$pdf->SetFont('','',$pt);
}
- }
+ }
/**
* protected Print dot line
@@ -251,7 +251,7 @@ abstract class CommonStickerGenerator
* @param string $format Format
* @return void
*/
- function _Set_Format(&$pdf, $format)
+ function _Set_Format(&$pdf, $format)
{
$this->_Metric = $format['metric'];
$this->_Avery_Name = $format['name'];
diff --git a/htdocs/core/class/coreobject.class.php b/htdocs/core/class/coreobject.class.php
index 1456fb991c2..ce13aa473c3 100644
--- a/htdocs/core/class/coreobject.class.php
+++ b/htdocs/core/class/coreobject.class.php
@@ -1,6 +1,6 @@
*
* This program is free software; you can redistribute it and/or modify
@@ -22,7 +22,7 @@
* \ingroup core
* \brief File of class to manage all object. Might be replace or merge into commonobject
*/
-
+
require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
class CoreObject extends CommonObject
@@ -54,7 +54,7 @@ class CoreObject extends CommonObject
$this->id = 0;
$this->datec = 0;
$this->tms = 0;
-
+
if (!empty($this->fields))
{
foreach ($this->fields as $field=>$info)
@@ -68,14 +68,14 @@ class CoreObject extends CommonObject
$this->to_delete=false;
$this->is_clone=false;
-
+
return true;
}
else
{
return false;
}
-
+
}
/**
@@ -110,7 +110,7 @@ class CoreObject extends CommonObject
if($res>0) {
if ($loadChild) $this->fetchChild();
}
-
+
return $res;
}
@@ -133,14 +133,14 @@ class CoreObject extends CommonObject
if($object->{$key} === $id) return $k;
}
}
-
+
$k = count($this->{$tabName});
-
+
$className = ucfirst($tabName);
$this->{$tabName}[$k] = new $className($this->db);
if($id>0 && $key==='id' && $try_to_load)
{
- $this->{$tabName}[$k]->fetch($id);
+ $this->{$tabName}[$k]->fetch($id);
}
return $k;
@@ -220,7 +220,7 @@ class CoreObject extends CommonObject
foreach($this->{$className} as $i => &$object)
{
$object->{$this->fk_element} = $this->id;
-
+
$object->update($user);
if($this->unsetChildDeleted && isset($object->to_delete) && $object->to_delete==true) unset($this->{$className}[$i]);
}
diff --git a/htdocs/core/class/html.formpropal.class.php b/htdocs/core/class/html.formpropal.class.php
index 14e1a466275..3deff2bbb0e 100644
--- a/htdocs/core/class/html.formpropal.class.php
+++ b/htdocs/core/class/html.formpropal.class.php
@@ -59,10 +59,10 @@ class FormPropal
$prefix='';
$listofstatus=array();
- if ($mode == 'supplier')
+ if ($mode == 'supplier')
{
$prefix='SupplierProposalStatus';
-
+
$langs->load("supplier_proposal");
$listofstatus=array(
0=>array('id'=>0, 'code'=>'PR_DRAFT'),
@@ -75,7 +75,7 @@ class FormPropal
else
{
$prefix="PropalStatus";
-
+
$sql = "SELECT id, code, label, active FROM ".MAIN_DB_PREFIX."c_propalst";
$sql .= " WHERE active = 1";
dol_syslog(get_class($this)."::selectProposalStatus", LOG_DEBUG);
@@ -139,4 +139,3 @@ class FormPropal
print '';
}
}
-
diff --git a/htdocs/core/filemanagerdol/connectors/php/io.php b/htdocs/core/filemanagerdol/connectors/php/io.php
index 66d024edce8..8fee80af4bd 100644
--- a/htdocs/core/filemanagerdol/connectors/php/io.php
+++ b/htdocs/core/filemanagerdol/connectors/php/io.php
@@ -24,7 +24,7 @@
/**
* CombinePaths
- *
+ *
* @param string $sBasePath sBasePath
* @param string $sFolder sFolder
* @return string Combined path
@@ -393,7 +393,7 @@ EOF;
// This is the function that sends the results of the uploading process to CKE.
/**
* SendCKEditorResults
- *
+ *
* @param string $callback callback
* @param string $sFileUrl sFileUrl
* @param string $customMsg customMsg
@@ -409,5 +409,3 @@ function SendCKEditorResults ($callback, $sFileUrl, $customMsg = '')
echo '';
}
-
-
diff --git a/htdocs/core/lib/barcode.lib.php b/htdocs/core/lib/barcode.lib.php
index 13956f688aa..efd245209d2 100644
--- a/htdocs/core/lib/barcode.lib.php
+++ b/htdocs/core/lib/barcode.lib.php
@@ -251,7 +251,7 @@ function barcode_encode_genbarcode($code,$encoding)
$command=escapeshellarg($genbarcode_loc);
//$paramclear=" \"".str_replace("\"", "\\\"",$code)."\" \"".str_replace("\"", "\\\"",strtoupper($encoding))."\"";
$paramclear=" ".escapeshellarg($code)." ".escapeshellarg(strtoupper($encoding));
-
+
$fullcommandclear=$command." ".$paramclear." 2>&1";
//print $fullcommandclear." \n";exit;
@@ -277,8 +277,8 @@ function barcode_encode_genbarcode($code,$encoding)
"error" => ""
);
//var_dump($ret);
- if (preg_match('/permission denied/i',$ret['bars']))
- {
+ if (preg_match('/permission denied/i',$ret['bars']))
+ {
$ret['error']=$ret['bars']; $ret['bars']='';
return $ret;
}
diff --git a/htdocs/core/lib/emailing.lib.php b/htdocs/core/lib/emailing.lib.php
index 00a06ca3f09..d9cad7f1c1e 100644
--- a/htdocs/core/lib/emailing.lib.php
+++ b/htdocs/core/lib/emailing.lib.php
@@ -48,8 +48,8 @@ function emailing_prepare_head(Mailing $object)
$h++;
}
-
- if (! empty($conf->global->EMAILING_USE_ADVANCED_SELECTOR))
+
+ if (! empty($conf->global->EMAILING_USE_ADVANCED_SELECTOR))
{
$head[$h][0] = DOL_URL_ROOT."/comm/mailing/advtargetemailing.php?id=".$object->id;
$head[$h][1] = $langs->trans("MailAdvTargetRecipients");
diff --git a/htdocs/core/lib/expensereport.lib.php b/htdocs/core/lib/expensereport.lib.php
index 1efdc73f247..059f9ad2396 100644
--- a/htdocs/core/lib/expensereport.lib.php
+++ b/htdocs/core/lib/expensereport.lib.php
@@ -67,7 +67,7 @@ function expensereport_prepare_head($object)
$head[$h][2] = 'note';
$h++;
}
-
+
$head[$h][0] = DOL_URL_ROOT . '/expensereport/info.php?id=' . $object->id;
$head[$h][1] = $langs->trans("Info");
$head[$h][2] = 'info';
@@ -81,7 +81,7 @@ function expensereport_prepare_head($object)
/**
* Returns an array with the tabs for the "Expense report payment" section
* It loads tabs from modules looking for the entity payment
- *
+ *
* @param Paiement $object Current payment object
* @return array Tabs for the payment section
*/
@@ -139,7 +139,7 @@ function expensereport_admin_prepare_head()
$head[$h][2] = 'expenseik';
$h++;
}
-
+
if (!empty($conf->global->MAIN_USE_EXPENSE_RULE))
{
$head[$h][0] = DOL_URL_ROOT."/admin/expensereport_rules.php";
@@ -147,7 +147,7 @@ function expensereport_admin_prepare_head()
$head[$h][2] = 'expenserules';
$h++;
}
-
+
// Show more tabs from modules
// Entries must be declared in modules descriptor with line
// $this->tabs = array('entity:+tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to add new tab
diff --git a/htdocs/core/lib/format_cards.lib.php b/htdocs/core/lib/format_cards.lib.php
index 7e89946d471..ecfce2108dd 100644
--- a/htdocs/core/lib/format_cards.lib.php
+++ b/htdocs/core/lib/format_cards.lib.php
@@ -36,7 +36,7 @@ $sql = "SELECT rowid, code, name, paper_size, orientation, metric, leftmargin, t
$resql = $db->query($sql);
if ($resql)
{
- while ($row = $db->fetch_array($resql))
+ while ($row = $db->fetch_array($resql))
{
$_Avery_Labels[$row['code']]['name']=$row['name'];
$_Avery_Labels[$row['code']]['paper-size']=$row['paper_size'];
diff --git a/htdocs/core/lib/functionsnumtoword.lib.php b/htdocs/core/lib/functionsnumtoword.lib.php
index f4319b7d11a..f69bc12fd3f 100644
--- a/htdocs/core/lib/functionsnumtoword.lib.php
+++ b/htdocs/core/lib/functionsnumtoword.lib.php
@@ -21,12 +21,12 @@
* \brief A set of functions for Dolibarr
* This file contains all frequently used functions.
*/
-
-
+
+
/**
* Function to return number in text.
- *
- *
+ *
+ *
* @param float $num Number to convert
* @param Lang $langs Language
* @param boolean $currency 0=number to translate | 1=currency to translate
@@ -36,7 +36,7 @@
function dol_convertToWord($num, $langs, $currency=false, $centimes=false)
{
global $conf;
-
+
$num = str_replace(array(',', ' '), '', trim($num));
if(! $num) {
return false;
@@ -48,49 +48,49 @@ function dol_convertToWord($num, $langs, $currency=false, $centimes=false)
$num = (int) $TNum[0];
$words = array();
$list1 = array(
- '',
- $langs->transnoentitiesnoconv('one'),
- $langs->transnoentitiesnoconv('two'),
- $langs->transnoentitiesnoconv('three'),
- $langs->transnoentitiesnoconv('four'),
- $langs->transnoentitiesnoconv('five'),
- $langs->transnoentitiesnoconv('six'),
- $langs->transnoentitiesnoconv('seven'),
- $langs->transnoentitiesnoconv('eight'),
- $langs->transnoentitiesnoconv('nine'),
- $langs->transnoentitiesnoconv('ten'),
+ '',
+ $langs->transnoentitiesnoconv('one'),
+ $langs->transnoentitiesnoconv('two'),
+ $langs->transnoentitiesnoconv('three'),
+ $langs->transnoentitiesnoconv('four'),
+ $langs->transnoentitiesnoconv('five'),
+ $langs->transnoentitiesnoconv('six'),
+ $langs->transnoentitiesnoconv('seven'),
+ $langs->transnoentitiesnoconv('eight'),
+ $langs->transnoentitiesnoconv('nine'),
+ $langs->transnoentitiesnoconv('ten'),
$langs->transnoentitiesnoconv('eleven'),
- $langs->transnoentitiesnoconv('twelve'),
- $langs->transnoentitiesnoconv('thirteen'),
- $langs->transnoentitiesnoconv('fourteen'),
- $langs->transnoentitiesnoconv('fifteen'),
- $langs->transnoentitiesnoconv('sixteen'),
- $langs->transnoentitiesnoconv('seventeen'),
- $langs->transnoentitiesnoconv('eighteen'),
+ $langs->transnoentitiesnoconv('twelve'),
+ $langs->transnoentitiesnoconv('thirteen'),
+ $langs->transnoentitiesnoconv('fourteen'),
+ $langs->transnoentitiesnoconv('fifteen'),
+ $langs->transnoentitiesnoconv('sixteen'),
+ $langs->transnoentitiesnoconv('seventeen'),
+ $langs->transnoentitiesnoconv('eighteen'),
$langs->transnoentitiesnoconv('nineteen')
);
$list2 = array(
- '',
- $langs->transnoentitiesnoconv('ten'),
- $langs->transnoentitiesnoconv('twenty'),
- $langs->transnoentitiesnoconv('thirty'),
- $langs->transnoentitiesnoconv('forty'),
- $langs->transnoentitiesnoconv('fifty'),
- $langs->transnoentitiesnoconv('sixty'),
- $langs->transnoentitiesnoconv('seventy'),
- $langs->transnoentitiesnoconv('eighty'),
- $langs->transnoentitiesnoconv('ninety'),
+ '',
+ $langs->transnoentitiesnoconv('ten'),
+ $langs->transnoentitiesnoconv('twenty'),
+ $langs->transnoentitiesnoconv('thirty'),
+ $langs->transnoentitiesnoconv('forty'),
+ $langs->transnoentitiesnoconv('fifty'),
+ $langs->transnoentitiesnoconv('sixty'),
+ $langs->transnoentitiesnoconv('seventy'),
+ $langs->transnoentitiesnoconv('eighty'),
+ $langs->transnoentitiesnoconv('ninety'),
$langs->transnoentitiesnoconv('hundred')
);
$list3 = array(
- '',
- $langs->transnoentitiesnoconv('thousand'),
- $langs->transnoentitiesnoconv('million'),
- $langs->transnoentitiesnoconv('billion'),
- $langs->transnoentitiesnoconv('trillion'),
+ '',
+ $langs->transnoentitiesnoconv('thousand'),
+ $langs->transnoentitiesnoconv('million'),
+ $langs->transnoentitiesnoconv('billion'),
+ $langs->transnoentitiesnoconv('trillion'),
$langs->transnoentitiesnoconv('quadrillion')
);
-
+
$num_length = strlen($num);
$levels = (int) (($num_length + 2) / 3);
$max_length = $levels * 3;
@@ -120,11 +120,11 @@ function dol_convertToWord($num, $langs, $currency=false, $centimes=false)
$concatWords = implode(' ', $words);
// Delete multi whitespaces
$concatWords = trim(preg_replace('/[ ]+/', ' ', $concatWords));
-
+
if(!empty($currency)) {
$concatWords .= ' '.$currency;
}
-
+
// If we need to write cents call again this function for cents
if(!empty($TNum[1])) {
if(!empty($currency)) $concatWords .= ' '.$langs->transnoentities('and');
@@ -133,11 +133,11 @@ function dol_convertToWord($num, $langs, $currency=false, $centimes=false)
}
return $concatWords;
}
-
-
+
+
/**
* Function to return number or amount in text.
- *
+ *
* @deprecated
* @param float $numero Number to convert
* @param Lang $langs Language
@@ -164,7 +164,7 @@ function dolNumberToWord($numero, $langs, $numorcurrency='number')
/*In dolibarr 3.6.2 (my current version) doesn't have $langs->default and
in case exist why ask $lang like a parameter?*/
if (((is_object($langs) && $langs->default == 'es_MX') || (! is_object($langs) && $langs == 'es_MX')) && $numorcurrency == 'currency')
- {
+ {
if ($numero>=1 && $numero<2) {
return ("UN PESO ".$parte_decimal." / 100 M.N.");
}
@@ -229,7 +229,7 @@ function dolNumberToWord($numero, $langs, $numorcurrency='number')
/**
* hundreds2text
- *
+ *
* @param integer $hundreds Hundreds
* @param integer $tens Tens
* @param integer $units Units
diff --git a/htdocs/core/lib/hrm.lib.php b/htdocs/core/lib/hrm.lib.php
index 5f7eabc7500..08b0e3be01a 100644
--- a/htdocs/core/lib/hrm.lib.php
+++ b/htdocs/core/lib/hrm.lib.php
@@ -18,7 +18,7 @@
/**
* \file htdocs/core/lib/hrm.lib.php
* \ingroup HRM
- * \brief Library for hrm
+ * \brief Library for hrm
*/
$langs->load('hrm');
diff --git a/htdocs/core/lib/invoice.lib.php b/htdocs/core/lib/invoice.lib.php
index 4e7fa860529..451ac0731ef 100644
--- a/htdocs/core/lib/invoice.lib.php
+++ b/htdocs/core/lib/invoice.lib.php
@@ -36,7 +36,7 @@
function facture_prepare_head($object)
{
global $db, $langs, $conf;
-
+
$h = 0;
$head = array();
@@ -63,7 +63,7 @@ function facture_prepare_head($object)
$sql .= " FROM ".MAIN_DB_PREFIX."prelevement_facture_demande as pfd";
$sql .= " WHERE pfd.fk_facture = ".$object->id;
$resql=$db->query($sql);
- if ($resql)
+ if ($resql)
{
$obj=$db->fetch_object($resql);
if ($obj) $nbStandingOrders = $obj->nb;
@@ -152,12 +152,12 @@ function invoice_admin_prepare_head()
$head[$h][1] = $langs->trans("ExtraFieldsLines");
$head[$h][2] = 'attributeslines';
$h++;
-
+
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/admin/facture_rec_cust_extrafields.php';
$head[$h][1] = $langs->trans("ExtraFieldsCustomerInvoicesRec");
$head[$h][2] = 'attributesrec';
$h++;
-
+
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/admin/facturedet_rec_cust_extrafields.php';
$head[$h][1] = $langs->trans("ExtraFieldsLinesRec");
$head[$h][2] = 'attributeslinesrec';
@@ -172,7 +172,7 @@ function invoice_admin_prepare_head()
function invoice_rec_prepare_head($object)
{
global $db, $langs, $conf;
-
+
$h = 0;
$head = array();
@@ -191,5 +191,3 @@ function invoice_rec_prepare_head($object)
return $head;
}
-
-
diff --git a/htdocs/core/lib/loan.lib.php b/htdocs/core/lib/loan.lib.php
index 3f7029dd26b..b61c57b4bc3 100644
--- a/htdocs/core/lib/loan.lib.php
+++ b/htdocs/core/lib/loan.lib.php
@@ -59,7 +59,7 @@ function loan_prepare_head($object)
$tab++;
if (empty($conf->global->MAIN_DISABLE_NOTES_TAB))
- {
+ {
$nbNote = (empty($object->note_private)?0:1)+(empty($object->note_public)?0:1);
$head[$tab][0] = DOL_URL_ROOT."/loan/note.php?id=".$object->id;
$head[$tab][1] = $langs->trans("Notes");
diff --git a/htdocs/core/lib/modulebuilder.lib.php b/htdocs/core/lib/modulebuilder.lib.php
index 7e8bf3ae8d7..4981e0fffd0 100644
--- a/htdocs/core/lib/modulebuilder.lib.php
+++ b/htdocs/core/lib/modulebuilder.lib.php
@@ -258,13 +258,13 @@ function rebuildObjectSql($destdir, $module, $objectname, $newmask, $readdir='',
foreach($object->fields as $key => $val)
{
$i++;
-
- $type = $val['type'];
+
+ $type = $val['type'];
$type = preg_replace('/:.*$/', '', $type); // For case type = 'integer:Societe:societe/class/societe.class.php'
if ($type == 'html') $type = 'text'; // html modulebuilder type is a text type in database
else if ($type == 'price') $type = 'double'; // html modulebuilder type is a text type in database
- else if ($type == 'link' || $type == 'sellist') $type = 'integer';
+ else if ($type == 'link' || $type == 'sellist') $type = 'integer';
$texttoinsert.= "\t".$key." ".$type;
if ($key == 'rowid') $texttoinsert.= ' AUTO_INCREMENT PRIMARY KEY';
if ($key == 'entity') $texttoinsert.= ' DEFAULT 1';
@@ -343,5 +343,3 @@ function rebuildObjectSql($destdir, $module, $objectname, $newmask, $readdir='',
return $error ? -1 : 1;
}
-
-
diff --git a/htdocs/core/lib/salaries.lib.php b/htdocs/core/lib/salaries.lib.php
index eaaa90a710e..2f2b9641c11 100644
--- a/htdocs/core/lib/salaries.lib.php
+++ b/htdocs/core/lib/salaries.lib.php
@@ -20,14 +20,14 @@
/**
* Returns an array with the tabs for the "salaries" section
* It loads tabs from modules looking for the entity salaries
- *
+ *
* @param Paiement $object Current salaries object
* @return array Tabs for the salaries section
*/
function salaries_prepare_head($object) {
-
+
global $db, $langs, $conf;
-
+
$h = 0;
$head = array();
@@ -57,7 +57,7 @@ function salaries_prepare_head($object) {
$head[$h][1] = $langs->trans("Info");
$head[$h][2] = 'info';
$h++;
-
+
complete_head_from_modules($conf,$langs,$object,$head,$h,'salaries', 'remove');
return $head;
diff --git a/htdocs/core/lib/xcal.lib.php b/htdocs/core/lib/xcal.lib.php
index b0a30697413..3f09bd3410a 100644
--- a/htdocs/core/lib/xcal.lib.php
+++ b/htdocs/core/lib/xcal.lib.php
@@ -64,7 +64,7 @@ function build_calfile($format,$title,$desc,$events_array,$outputfile)
&& $conf->global->MAIN_AGENDA_EXPORT_CACHE > 60){
$hh=convertSecondToTime($conf->global->MAIN_AGENDA_EXPORT_CACHE,'hour');
$mm=convertSecondToTime($conf->global->MAIN_AGENDA_EXPORT_CACHE,'min');
- $ss=convertSecondToTime($conf->global->MAIN_AGENDA_EXPORT_CACHE,'sec');
+ $ss=convertSecondToTime($conf->global->MAIN_AGENDA_EXPORT_CACHE,'sec');
fwrite($calfileh,"X-PUBLISHED-TTL: P".$hh."H".$mm."M".$ss."S\n");
}
@@ -520,4 +520,3 @@ function quotedPrintDecode($str)
$out = quoted_printable_decode($out); // Available with PHP 4+
return trim($out);
}
-
diff --git a/htdocs/core/modules/barcode/doc/phpbarcode.modules.php b/htdocs/core/modules/barcode/doc/phpbarcode.modules.php
index d04c6a70c04..a76fa073118 100644
--- a/htdocs/core/modules/barcode/doc/phpbarcode.modules.php
+++ b/htdocs/core/modules/barcode/doc/phpbarcode.modules.php
@@ -109,7 +109,7 @@ class modPhpbarcode extends ModeleBarCode
* @param string $encoding Mode of encoding
* @param string $readable Code can be read
* @param integer $scale Scale
- * @param integer $nooutputiferror No output if error
+ * @param integer $nooutputiferror No output if error
* @return int <0 if KO, >0 if OK
*/
function buildBarCode($code,$encoding,$readable='Y',$scale=1,$nooutputiferror=0)
@@ -150,7 +150,7 @@ class modPhpbarcode extends ModeleBarCode
* @param string $encoding Mode of encoding
* @param string $readable Code can be read
* @param integer $scale Scale
- * @param integer $nooutputiferror No output if error
+ * @param integer $nooutputiferror No output if error
* @return int <0 if KO, >0 if OK
*/
function writeBarCode($code,$encoding,$readable='Y',$scale=1,$nooutputiferror=0)
@@ -169,4 +169,3 @@ class modPhpbarcode extends ModeleBarCode
}
}
-
diff --git a/htdocs/core/modules/barcode/doc/tcpdfbarcode.modules.php b/htdocs/core/modules/barcode/doc/tcpdfbarcode.modules.php
index 5b9422b15e7..9d064ec267c 100644
--- a/htdocs/core/modules/barcode/doc/tcpdfbarcode.modules.php
+++ b/htdocs/core/modules/barcode/doc/tcpdfbarcode.modules.php
@@ -34,7 +34,7 @@ class modTcpdfbarcode extends ModeleBarCode
var $version='dolibarr'; // 'development', 'experimental', 'dolibarr'
var $error='';
var $is2d = false;
-
+
/**
* Return description of numbering model
*
@@ -55,8 +55,8 @@ class modTcpdfbarcode extends ModeleBarCode
function isEnabled()
{
return true;
- }
-
+ }
+
/**
* Test si les numeros deja en vigueur dans la base ne provoquent pas de
* de conflits qui empechera cette numerotation de fonctionner.
@@ -66,10 +66,10 @@ class modTcpdfbarcode extends ModeleBarCode
function canBeActivated()
{
global $langs;
-
+
return true;
}
-
+
/**
* Return true if encoding is supported
*
@@ -83,7 +83,7 @@ class modTcpdfbarcode extends ModeleBarCode
return 0;
} else {
return 1;
- }
+ }
}
/**
@@ -99,17 +99,17 @@ class modTcpdfbarcode extends ModeleBarCode
function buildBarCode($code,$encoding,$readable='Y',$scale=1,$nooutputiferror=0)
{
global $_GET;
-
+
$tcpdfEncoding = $this->getTcpdfEncodingType($encoding);
if (empty($tcpdfEncoding)) return -1;
-
+
$color = array(0,0,0);
$_GET["code"]=$code;
$_GET["type"]=$encoding;
$_GET["height"]=$height;
$_GET["readable"]=$readable;
-
+
if ($code) {
// Load the tcpdf barcode class
if ($this->is2d) {
@@ -122,15 +122,15 @@ class modTcpdfbarcode extends ModeleBarCode
$width = 1;
require_once TCPDF_PATH.'tcpdf_barcodes_1d.php';
$barcodeobj = new TCPDFBarcode($code, $tcpdfEncoding);
- }
-
+ }
+
dol_syslog("buildBarCode::TCPDF.getBarcodePNG");
$barcodeobj->getBarcodePNG($width, $height, $color);
-
+
return 1;
} else {
return -2;
- }
+ }
}
/**
@@ -172,8 +172,8 @@ class modTcpdfbarcode extends ModeleBarCode
$width = 1;
require_once TCPDF_PATH.'tcpdf_barcodes_1d.php';
$barcodeobj = new TCPDFBarcode($code, $tcpdfEncoding);
- }
-
+ }
+
dol_syslog("writeBarCode::TCPDF.getBarcodePngData");
if ($imageData = $barcodeobj->getBarcodePngData($width, $height, $color)) {
if (function_exists('imagecreate')) {
@@ -186,16 +186,16 @@ class modTcpdfbarcode extends ModeleBarCode
}
} else {
return -4;
- }
+ }
} else {
return -2;
}
}
-
+
/**
* get available output_modes for tcpdf class wth its translated description
*
- * @param string $dolEncodingType dolibarr barcode encoding type
+ * @param string $dolEncodingType dolibarr barcode encoding type
* @return string tcpdf encoding type
*/
public function getTcpdfEncodingType($dolEncodingType)
@@ -232,7 +232,7 @@ class modTcpdfbarcode extends ModeleBarCode
'PHARMA' => 'PHARMA',
'PHARMA2T' => 'PHARMA2T'
);
-
+
$tcpdf2dEncodingTypes = array(
'DATAMATRIX' => 'DATAMATRIX',
'PDF417' => 'PDF417',
@@ -240,9 +240,9 @@ class modTcpdfbarcode extends ModeleBarCode
'QRCODE,L' => 'QRCODE,L',
'QRCODE,M' => 'QRCODE,M',
'QRCODE,Q' => 'QRCODE,Q',
- 'QRCODE,H' => 'QRCODE,H'
+ 'QRCODE,H' => 'QRCODE,H'
);
-
+
if (array_key_exists($dolEncodingType, $tcpdf1dEncodingTypes)) {
$this->is2d = false;
return $tcpdf1dEncodingTypes[$dolEncodingType];
@@ -251,6 +251,6 @@ class modTcpdfbarcode extends ModeleBarCode
return $tcpdf2dEncodingTypes[$dolEncodingType];
} else {
return '';
- }
+ }
}
}
diff --git a/htdocs/core/modules/cheque/doc/pdf_blochet.class.php b/htdocs/core/modules/cheque/doc/pdf_blochet.class.php
index c159a7af925..991ae97e8a8 100644
--- a/htdocs/core/modules/cheque/doc/pdf_blochet.class.php
+++ b/htdocs/core/modules/cheque/doc/pdf_blochet.class.php
@@ -44,7 +44,7 @@ class BordereauChequeBlochet extends ModeleChequeReceipts
function __construct($db)
{
global $conf,$langs,$mysoc;
-
+
// Load traductions files requiredby by page
$langs->loadLangs(array("main", "bills"));
@@ -77,7 +77,7 @@ class BordereauChequeBlochet extends ModeleChequeReceipts
/**
* Fonction to generate document on disk
*
- * @param RemiseCheque $object Object RemiseCheque
+ * @param RemiseCheque $object Object RemiseCheque
* @param string $_dir Directory
* @param string $number Number
* @param Translate $outputlangs Lang output object
@@ -91,7 +91,7 @@ class BordereauChequeBlochet extends ModeleChequeReceipts
// For backward compatibility with FPDF, force output charset to ISO, because FPDF expect text to be encoded in ISO
$sav_charset_output=$outputlangs->charset_output;
if (! empty($conf->global->MAIN_USE_FPDF)) $outputlangs->charset_output='ISO-8859-1';
-
+
// Load traductions files requiredby by page
$outputlangs->loadLangs(array("main", "companies", "bills", "products", "compta"));
@@ -191,7 +191,7 @@ class BordereauChequeBlochet extends ModeleChequeReceipts
@chmod($file, octdec($conf->global->MAIN_UMASK));
$this->result = array('fullpath'=>$file);
-
+
$outputlangs->charset_output=$sav_charset_output;
return 1; // Pas d'erreur
}
@@ -210,7 +210,7 @@ class BordereauChequeBlochet extends ModeleChequeReceipts
{
global $langs;
$default_font_size = pdf_getPDFFontSize($outputlangs);
-
+
// Load traductions files requiredby by page
$outputlangs->loadLangs(array("compta", "banks"));
@@ -384,7 +384,7 @@ class BordereauChequeBlochet extends ModeleChequeReceipts
{
$newfreetext=make_substitutions($conf->global->$paramfreetext,$substitutionarray);
}
-
+
return pdf_pagefoot($pdf,$outputlangs,$newfreetext,$this->emetteur,$this->marge_basse,$this->marge_gauche,$this->page_hauteur,$object,$showdetails,$hidefreetext);
}
}
diff --git a/htdocs/core/modules/cheque/modules_chequereceipts.php b/htdocs/core/modules/cheque/modules_chequereceipts.php
index bbf20761f5f..9ba039a6487 100644
--- a/htdocs/core/modules/cheque/modules_chequereceipts.php
+++ b/htdocs/core/modules/cheque/modules_chequereceipts.php
@@ -115,7 +115,7 @@ abstract class ModeleNumRefChequeReceipts
/**
* \class ModeleChequeReceipts
- * \brief Classe mere des modeles de
+ * \brief Classe mere des modeles de
*/
abstract class ModeleChequeReceipts extends CommonDocGenerator
{
@@ -209,4 +209,3 @@ function chequereceipt_pdf_create($db, $id, $message, $modele, $outputlangs)
return -1;
}
}
-
diff --git a/htdocs/core/modules/contract/doc/pdf_strato.modules.php b/htdocs/core/modules/contract/doc/pdf_strato.modules.php
index f43ec0907ca..62fa2c73138 100644
--- a/htdocs/core/modules/contract/doc/pdf_strato.modules.php
+++ b/htdocs/core/modules/contract/doc/pdf_strato.modules.php
@@ -43,17 +43,17 @@ class pdf_strato extends ModelePDFContract
* @var DoliDb Database handler
*/
public $db;
-
+
/**
* @var string model name
*/
public $name;
-
+
/**
* @var string model description (short text)
*/
public $description;
-
+
/**
* @var string document type
*/
@@ -63,8 +63,8 @@ class pdf_strato extends ModelePDFContract
* @var array() Minimum version of PHP required by module.
* e.g.: PHP ≥ 5.4 = array(5, 4)
*/
- public $phpmin = array(5, 4);
-
+ public $phpmin = array(5, 4);
+
/**
* Dolibarr version of the loaded document
* @public string
@@ -75,32 +75,32 @@ class pdf_strato extends ModelePDFContract
* @var int page_largeur
*/
public $page_largeur;
-
+
/**
* @var int page_hauteur
*/
public $page_hauteur;
-
+
/**
* @var array format
*/
public $format;
-
+
/**
* @var int marge_gauche
*/
public $marge_gauche;
-
+
/**
* @var int marge_droite
*/
public $marge_droite;
-
+
/**
* @var int marge_haute
*/
public $marge_haute;
-
+
/**
* @var int marge_basse
*/
@@ -177,7 +177,7 @@ class pdf_strato extends ModelePDFContract
if (! is_object($outputlangs)) $outputlangs=$langs;
// For backward compatibility with FPDF, force output charset to ISO, because FPDF expect text to be encoded in ISO
if (! empty($conf->global->MAIN_USE_FPDF)) $outputlangs->charset_output='ISO-8859-1';
-
+
// Translations
$outputlangs->loadLangs(array("main", "dict", "companies", "contracts"));
@@ -537,9 +537,9 @@ class pdf_strato extends ModelePDFContract
function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
{
global $conf,$langs;
-
+
$default_font_size = pdf_getPDFFontSize($outputlangs);
-
+
// Translations
$outputlangs->loadLangs(array("main", "dict", "contract", "companies"));
@@ -721,4 +721,3 @@ class pdf_strato extends ModelePDFContract
}
}
-
diff --git a/htdocs/core/modules/expedition/doc/pdf_merou.modules.php b/htdocs/core/modules/expedition/doc/pdf_merou.modules.php
index c4c665de56d..63adf232c1b 100644
--- a/htdocs/core/modules/expedition/doc/pdf_merou.modules.php
+++ b/htdocs/core/modules/expedition/doc/pdf_merou.modules.php
@@ -33,7 +33,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
/**
- * Class to build sending documents with model Merou
+ * Class to build sending documents with model Merou
*/
class pdf_merou extends ModelePdfExpedition
{
@@ -41,17 +41,17 @@ class pdf_merou extends ModelePdfExpedition
* @var DoliDb Database handler
*/
public $db;
-
+
/**
* @var string model name
*/
public $name;
-
+
/**
* @var string model description (short text)
*/
public $description;
-
+
/**
* @var string document type
*/
@@ -61,8 +61,8 @@ class pdf_merou extends ModelePdfExpedition
* @var array() Minimum version of PHP required by module.
* e.g.: PHP ≥ 5.4 = array(5, 4)
*/
- public $phpmin = array(5, 4);
-
+ public $phpmin = array(5, 4);
+
/**
* Dolibarr version of the loaded document
* @public string
@@ -73,37 +73,37 @@ class pdf_merou extends ModelePdfExpedition
* @var int page_largeur
*/
public $page_largeur;
-
+
/**
* @var int page_hauteur
*/
public $page_hauteur;
-
+
/**
* @var array format
*/
public $format;
-
+
/**
* @var int marge_gauche
*/
public $marge_gauche;
-
+
/**
* @var int marge_droite
*/
public $marge_droite;
-
+
/**
* @var int marge_haute
*/
public $marge_haute;
-
+
/**
* @var int marge_basse
*/
public $marge_basse;
-
+
/**
* Issuer
* @var Societe
@@ -162,10 +162,10 @@ class pdf_merou extends ModelePdfExpedition
if (! is_object($outputlangs)) $outputlangs=$langs;
// For backward compatibility with FPDF, force output charset to ISO, because FPDF expect text to be encoded in ISO
if (! empty($conf->global->MAIN_USE_FPDF)) $outputlangs->charset_output='ISO-8859-1';
-
+
// Translations
$outputlangs->loadLangs(array("main", "bills", "products", "dict", "companies", "propal", "deliveries", "sendings", "productbatch"));
-
+
if ($conf->expedition->dir_output)
{
$object->fetch_thirdparty();
@@ -331,7 +331,7 @@ class pdf_merou extends ModelePdfExpedition
$pdf->SetDrawColor(120,120,120);
$pdf->Rect(10+3, $curY, 3, 3);
$pdf->Rect(20+3, $curY, 3, 3);
-
+
//Insertion de la reference du produit
$pdf->SetXY(30, $curY);
$pdf->SetFont('','B', $default_font_size - 3);
@@ -424,7 +424,7 @@ class pdf_merou extends ModelePdfExpedition
@chmod($file, octdec($conf->global->MAIN_UMASK));
$this->result = array('fullpath'=>$file);
-
+
return 1;
}
else
@@ -456,7 +456,7 @@ class pdf_merou extends ModelePdfExpedition
{
global $langs;
$default_font_size = pdf_getPDFFontSize($outputlangs);
-
+
// Translations
$langs->loadLangs(array("main", "bills"));
diff --git a/htdocs/core/modules/expedition/doc/pdf_rouget.modules.php b/htdocs/core/modules/expedition/doc/pdf_rouget.modules.php
index aad7fd07c1b..84a9831223b 100644
--- a/htdocs/core/modules/expedition/doc/pdf_rouget.modules.php
+++ b/htdocs/core/modules/expedition/doc/pdf_rouget.modules.php
@@ -40,17 +40,17 @@ class pdf_rouget extends ModelePdfExpedition
* @var DoliDb Database handler
*/
public $db;
-
+
/**
* @var string model name
*/
public $name;
-
+
/**
* @var string model description (short text)
*/
public $description;
-
+
/**
* @var string document type
*/
@@ -60,8 +60,8 @@ class pdf_rouget extends ModelePdfExpedition
* @var array() Minimum version of PHP required by module.
* e.g.: PHP ≥ 5.4 = array(5, 4)
*/
- public $phpmin = array(5, 4);
-
+ public $phpmin = array(5, 4);
+
/**
* Dolibarr version of the loaded document
* @public string
@@ -72,37 +72,37 @@ class pdf_rouget extends ModelePdfExpedition
* @var int page_largeur
*/
public $page_largeur;
-
+
/**
* @var int page_hauteur
*/
public $page_hauteur;
-
+
/**
* @var array format
*/
public $format;
-
+
/**
* @var int marge_gauche
*/
public $marge_gauche;
-
+
/**
* @var int marge_droite
*/
public $marge_droite;
-
+
/**
* @var int marge_haute
*/
public $marge_haute;
-
+
/**
* @var int marge_basse
*/
public $marge_basse;
-
+
/**
* Issuer
* @var Societe
@@ -193,7 +193,7 @@ class pdf_rouget extends ModelePdfExpedition
if (! is_object($outputlangs)) $outputlangs=$langs;
// For backward compatibility with FPDF, force output charset to ISO, because FPDF expect text to be encoded in ISO
if (! empty($conf->global->MAIN_USE_FPDF)) $outputlangs->charset_output='ISO-8859-1';
-
+
// Translations
$outputlangs->loadLangs(array("main", "bills", "products", "dict", "companies", "propal", "deliveries", "sendings", "productbatch"));
@@ -1100,4 +1100,3 @@ class pdf_rouget extends ModelePdfExpedition
}
}
-
diff --git a/htdocs/core/modules/expensereport/doc/pdf_standard.modules.php b/htdocs/core/modules/expensereport/doc/pdf_standard.modules.php
index 539830cdc71..2d6a8850ed8 100644
--- a/htdocs/core/modules/expensereport/doc/pdf_standard.modules.php
+++ b/htdocs/core/modules/expensereport/doc/pdf_standard.modules.php
@@ -52,7 +52,7 @@ class pdf_standard extends ModeleExpenseReport
* @var string model description (short text)
*/
public $description;
-
+
/**
* @var string document type
*/
@@ -62,8 +62,8 @@ class pdf_standard extends ModeleExpenseReport
* @var array() Minimum version of PHP required by module.
* e.g.: PHP ≥ 5.4 = array(5, 4)
*/
- public $phpmin = array(5, 4);
-
+ public $phpmin = array(5, 4);
+
/**
* Dolibarr version of the loaded document
* @public string
@@ -74,37 +74,37 @@ class pdf_standard extends ModeleExpenseReport
* @var int page_largeur
*/
public $page_largeur;
-
+
/**
* @var int page_hauteur
*/
public $page_hauteur;
-
+
/**
* @var array format
*/
public $format;
-
+
/**
* @var int marge_gauche
*/
public $marge_gauche;
-
+
/**
* @var int marge_droite
*/
public $marge_droite;
-
+
/**
* @var int marge_haute
*/
public $marge_haute;
-
+
/**
* @var int marge_basse
*/
public $marge_basse;
-
+
/**
* Issuer
* @var Societe
@@ -120,7 +120,7 @@ class pdf_standard extends ModeleExpenseReport
function __construct($db)
{
global $conf, $langs, $mysoc;
-
+
// Translations
$langs->loadLangs(array("main", "trips", "projects"));
@@ -208,7 +208,7 @@ class pdf_standard extends ModeleExpenseReport
if (! is_object($outputlangs)) $outputlangs=$langs;
// For backward compatibility with FPDF, force output charset to ISO, because FPDF expect text to be encoded in ISO
if (! empty($conf->global->MAIN_USE_FPDF)) $outputlangs->charset_output='ISO-8859-1';
-
+
// Translations
$outputlangs->loadLangs(array("main", "trips", "projects", "dict"));
@@ -567,7 +567,7 @@ class pdf_standard extends ModeleExpenseReport
function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
{
global $conf,$langs,$hookmanager;
-
+
// Translations
$outputlangs->loadLangs(array("main", "trips", "companies"));
@@ -919,4 +919,3 @@ class pdf_standard extends ModeleExpenseReport
}
}
-
diff --git a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php
index ba52759ea35..d9fc1ad5a2c 100644
--- a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php
+++ b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php
@@ -71,8 +71,8 @@ class pdf_crabe extends ModelePDFFactures
* @var array() Minimum version of PHP required by module.
* e.g.: PHP ≥ 5.4 = array(5, 4)
*/
- public $phpmin = array(5, 4);
-
+ public $phpmin = array(5, 4);
+
/**
* Dolibarr version of the loaded document
* @public string
@@ -83,37 +83,37 @@ class pdf_crabe extends ModelePDFFactures
* @var int page_largeur
*/
public $page_largeur;
-
+
/**
* @var int page_hauteur
*/
public $page_hauteur;
-
+
/**
* @var array format
*/
public $format;
-
+
/**
* @var int marge_gauche
*/
public $marge_gauche;
-
+
/**
* @var int marge_droite
*/
public $marge_droite;
-
+
/**
* @var int marge_haute
*/
public $marge_haute;
-
+
/**
* @var int marge_basse
*/
public $marge_basse;
-
+
/**
* Issuer
* @var Societe
@@ -1843,4 +1843,3 @@ class pdf_crabe extends ModelePDFFactures
}
}
-
diff --git a/htdocs/core/modules/facture/mod_facture_mercure.php b/htdocs/core/modules/facture/mod_facture_mercure.php
index e826b18f0e0..86e7eb10521 100644
--- a/htdocs/core/modules/facture/mod_facture_mercure.php
+++ b/htdocs/core/modules/facture/mod_facture_mercure.php
@@ -78,7 +78,7 @@ class mod_facture_mercure extends ModeleNumRefFactures
$texte.= '