Scrutinizer Auto-Fixes

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
Scrutinizer Auto-Fixer 2015-03-16 23:21:17 +00:00
parent 6d7b340cee
commit b693ed3f51
44 changed files with 83 additions and 83 deletions

View File

@ -315,7 +315,7 @@ class DoliDBSqlite3 extends DoliDB
* @param string $login login
* @param string $passwd password
* @param string $name name of database (not used for mysql, used for pgsql)
* @param string $port Port of database server
* @param integer $port Port of database server
* @return resource Database access handler
* @see close
*/
@ -530,7 +530,7 @@ class DoliDBSqlite3 extends DoliDB
/**
* Return datas as an array
*
* @param Resultset $resultset Resultset of request
* @param resource $resultset Resultset of request
* @return array Array
*/
function fetch_row($resultset)
@ -588,7 +588,7 @@ class DoliDBSqlite3 extends DoliDB
/**
* Free last resultset used.
*
* @param resultset $resultset Curseur de la requete voulue
* @param integer $resultset Curseur de la requete voulue
* @return void
*/
function free($resultset=0)
@ -709,7 +709,7 @@ class DoliDBSqlite3 extends DoliDB
*
* @param string $fieldorvalue Field name or value to encrypt
* @param int $withQuotes Return string with quotes
* @return return XXX(field) or XXX('value') or field or 'value'
* @return string XXX(field) or XXX('value') or field or 'value'
*/
function encrypt($fieldorvalue, $withQuotes=0)
{
@ -1277,7 +1277,7 @@ class DoliDBSqlite3 extends DoliDB
* Cette fonction est l'equivalent de la fonction MONTH de MySql.
*
* @param string $date Date
* @return integer
* @return string
*/
public static function dbMONTH($date)
{
@ -1320,7 +1320,7 @@ class DoliDBSqlite3 extends DoliDB
* dbWEEKDAY
*
* @param int $date Date
* @return string
* @return double
*/
public static function dbWEEKDAY($date) {
$arr = date_parse($date);
@ -1472,7 +1472,7 @@ class DoliDBSqlite3 extends DoliDB
* week_mode
*
* @param string $mode Mode
* @return string Week format
* @return integer Week format
*/
private static function week_mode($mode) {
$week_format= ($mode & 7);

View File

@ -84,7 +84,7 @@ function CreateXmlFooter()
/**
* SendError
*
* @param unknown_type $number Number
* @param integer $number Number
* @param unknown_type $text Text
* @return void
*/

View File

@ -30,7 +30,7 @@ require 'commands.php';
/**
* SendError
*
* @param string $number Number
* @param integer $number Number
* @param string $text Text
* @return void
*/

View File

@ -120,7 +120,7 @@ function bank_admin_prepare_head($object)
* Check SWIFT informations for a bank account
*
* @param Account $account A bank account
* @return int True if informations are valid, false otherwise
* @return boolean True if informations are valid, false otherwise
*/
function checkSwiftForAccount($account)
{
@ -137,7 +137,7 @@ function checkSwiftForAccount($account)
* Check IBAN number informations for a bank account
*
* @param Account $account A bank account
* @return int True if informations are valid, false otherwise
* @return boolean True if informations are valid, false otherwise
*/
function checkIbanForAccount($account)
{
@ -156,7 +156,7 @@ function checkIbanForAccount($account)
* Check account number informations for a bank account
*
* @param Account $account A bank account
* @return int True if informations are valid, false otherwise
* @return boolean True if informations are valid, false otherwise
*/
function checkBanForAccount($account)
{

View File

@ -2116,7 +2116,7 @@ function img_edit_remove($titlealt = 'default', $other='')
* Show logo editer/modifier fiche
*
* @param string $titlealt Text on alt and title of image. Alt only if param notitle is set to 1. If text is "TextA:TextB", use Text A on alt and Text B on title.
* @param float $float Si il faut y mettre le style "float: right"
* @param integer $float Si il faut y mettre le style "float: right"
* @param string $other Add more attributes on img
* @return string Return tag img
*/
@ -2133,7 +2133,7 @@ function img_edit($titlealt = 'default', $float = 0, $other = '')
* Show logo view card
*
* @param string $titlealt Text on alt and title of image. Alt only if param notitle is set to 1. If text is "TextA:TextB", use Text A on alt and Text B on title.
* @param float $float Si il faut y mettre le style "float: right"
* @param integer $float Si il faut y mettre le style "float: right"
* @param string $other Add more attributes on img
* @return string Return tag img
*/
@ -2446,7 +2446,7 @@ function img_searchclear($titlealt = 'default', $other = '')
* Show information for admin users
*
* @param string $text Text info
* @param string $infoonimgalt Info is shown only on alt of star picto, otherwise it is show on output after the star picto
* @param integer $infoonimgalt Info is shown only on alt of star picto, otherwise it is show on output after the star picto
* @param int $nodiv No div
* @return string String with info text
*/
@ -2866,7 +2866,7 @@ function print_barre_liste($titre, $page, $file, $options='', $sortfield='', $so
* @param int $page Number of page
* @param string $file Lien
* @param string $options Autres parametres d'url a propager dans les liens ("" par defaut)
* @param boolean|int $nextpage Do we show a next page button
* @param integer $nextpage Do we show a next page button
* @param string $betweenarrows HTML Content to show between arrows
* @return void
*/
@ -2923,7 +2923,7 @@ function vatrate($rate,$addpercent=false,$info_bits=0,$usestarfornpr=0)
* Function used into PDF and HTML pages
*
* @param float $amount Amount to format
* @param string $form Type of format, HTML or not (not by default)
* @param integer $form Type of format, HTML or not (not by default)
* @param Translate $outlangs Object langs for output
* @param int $trunc 1=Truncate if there is too much decimals (default), 0=Does not truncate
* @param int $rounding Minimum number of decimal to show. If 0, no change, if -1, we use min($conf->global->MAIN_MAX_DECIMALS_UNIT,$conf->global->MAIN_MAX_DECIMALS_TOTAL)
@ -3622,7 +3622,7 @@ function get_default_npr($thirdparty_seller, $thirdparty_buyer, $idprod=0, $idpr
* @param Societe $thirdparty_buyer Thirdparty buyer
* @param int $local Localtax to process (1 or 2)
* @param int $idprod Id product
* @return float localtax, -1 si ne peut etre determine
* @return integer localtax, -1 si ne peut etre determine
* @see get_default_tva, get_default_npr
*/
function get_default_localtax($thirdparty_seller, $thirdparty_buyer, $local, $idprod=0)
@ -3664,7 +3664,7 @@ function get_default_localtax($thirdparty_seller, $thirdparty_buyer, $local, $id
* Return yes or no in current language
*
* @param string $yesno Value to test (1, 'yes', 'true' or 0, 'no', 'false')
* @param string $case 1=Yes/No, 0=yes/no, 2=Disabled checkbox, 3=Disabled checkbox + Yes/No
* @param integer $case 1=Yes/No, 0=yes/no, 2=Disabled checkbox, 3=Disabled checkbox + Yes/No
* @param int $color 0=texte only, 1=Text is formated with a color font style ('ok' or 'error'), 2=Text is formated with 'ok' color.
* @return string HTML string
*/
@ -3805,7 +3805,7 @@ function picto_required()
* Clean a string from all HTML tags and entities
*
* @param string $StringHtml String to clean
* @param string $removelinefeed Replace also all lines feeds by a space, otherwise only last one are removed
* @param integer $removelinefeed Replace also all lines feeds by a space, otherwise only last one are removed
* @param string $pagecodeto Encoding of input/output string
* @return string String cleaned
*
@ -4183,7 +4183,7 @@ function print_date_range($date_start,$date_end,$format = '',$outputlangs='')
* @param int $date_end End date
* @param string $format Output format
* @param Translate $outputlangs Output language
* @param string $withparenthesis 1=Add parenthesis, 0=non parenthesis
* @param integer $withparenthesis 1=Add parenthesis, 0=non parenthesis
* @return string String
*/
function get_date_range($date_start,$date_end,$format = '',$outputlangs='', $withparenthesis=1)
@ -4952,7 +4952,7 @@ function dol_getmypid()
* @param string $value The value to look for.
* If param $numeric is 0, can contains several keywords separated with a space, like "keyword1 keyword2" = We want record field like keyword1 and field like keyword2
* If param $numeric is 1, can contains an operator <>= like "<10" or ">=100.5 < 1000"
* @param string $numeric 0=value is list of keywords, 1=value is a numeric test
* @param integer $numeric 0=value is list of keywords, 1=value is a numeric test
* @return string $res The statement to append to the SQL query
*/
function natural_search($fields, $value, $numeric=0)

View File

@ -941,7 +941,7 @@ function pdf_writeLinkedObjects(&$pdf,$object,$outputlangs,$posx,$posy,$w,$h,$al
* @param int $hideref Hide reference
* @param int $hidedesc Hide description
* @param int $issupplierline Is it a line for a supplier object ?
* @return void
* @return string|null
*/
function pdf_writelinedesc(&$pdf,$object,$i,$outputlangs,$w,$h,$posx,$posy,$hideref=0,$hidedesc=0,$issupplierline=0)
{
@ -1159,7 +1159,7 @@ function pdf_getlinedesc($object,$i,$outputlangs,$hideref=0,$hidedesc=0,$issuppl
* @param int $i Current line number
* @param Translate $outputlangs Object langs for output
* @param int $hidedetails Hide details (0=no, 1=yes, 2=just special lines)
* @return void
* @return null|string
*/
function pdf_getlinenum($object,$i,$outputlangs,$hidedetails=0)
{
@ -1185,7 +1185,7 @@ function pdf_getlinenum($object,$i,$outputlangs,$hidedetails=0)
* @param int $i Current line number
* @param Translate $outputlangs Object langs for output
* @param int $hidedetails Hide details (0=no, 1=yes, 2=just special lines)
* @return void
* @return null|string
*/
function pdf_getlineref($object,$i,$outputlangs,$hidedetails=0)
{
@ -1210,7 +1210,7 @@ function pdf_getlineref($object,$i,$outputlangs,$hidedetails=0)
* @param int $i Current line number
* @param Translate $outputlangs Object langs for output
* @param int $hidedetails Hide details (0=no, 1=yes, 2=just special lines)
* @return void
* @return null|string
*/
function pdf_getlineref_supplier($object,$i,$outputlangs,$hidedetails=0)
{
@ -1569,7 +1569,7 @@ function pdf_getlinetotalwithtax($object,$i,$outputlangs,$hidedetails=0)
* @param Object $object Object
* @param string $type Type
* @param Translate $outputlangs Object langs for output
* @return void
* @return integer
*/
function pdf_getTotalQty($object,$type,$outputlangs)
{

View File

@ -49,7 +49,7 @@
* @param int $type 0/1=Product/service
* @param Societe $seller Thirdparty seller (we need $seller->country_id property). Provided only if seller is the supplier, otherwise $seller will be $mysoc.
* @param array $localtaxes_array Array with localtaxes info (loaded by getLocalTaxesFromRate function).
* @param float $progress Situation invoices progress (value from 0 to 100, 100 by default)
* @param integer $progress Situation invoices progress (value from 0 to 100, 100 by default)
* @return result[ 0=total_ht,
* 1=total_vat,
* 2=total_ttc,

View File

@ -27,7 +27,7 @@
/**
* Prepare array with list of tabs
*
* @param Object $object Object related to tabs
* @param Product $object Object related to tabs
* @param User $user Object user
* @return array Array of tabs to show
*/
@ -183,7 +183,7 @@ function product_admin_prepare_head()
*
* @param Product $product Product object
* @param int $socid Thirdparty id
* @return void
* @return integer
*/
function show_stats_for_company($product,$socid)
{

View File

@ -31,7 +31,7 @@
* @param array $fulltree Array of entries in correct order
* @param string $key Key of entry into fulltree to show picto
* @param int $silent Do not output indent and picto, returns only value
* @return array array(0 or 1 if at least one of this level after, 0 or 1 if at least one of higher level after, nbofdirinsub, nbofdocinsub)
* @return integer[] array(0 or 1 if at least one of this level after, 0 or 1 if at least one of higher level after, nbofdirinsub, nbofdocinsub)
*/
function tree_showpad(&$fulltree,$key,$silent=0)
{

View File

@ -158,7 +158,7 @@ class MenuManager
* Show menu
*
* @param string $mode 'top', 'left', 'jmobile'
* @return void
* @return string
*/
function showmenu($mode)
{

View File

@ -112,7 +112,7 @@ class MenuManager
* Show menu
*
* @param string $mode 'top', 'left', 'jmobile'
* @return void
* @return string
*/
function showmenu($mode)
{

View File

@ -61,7 +61,7 @@ class MenuManager
* Show menu
*
* @param string $mode 'top', 'left', 'jmobile'
* @return void
* @return string
*/
function showmenu($mode)
{

View File

@ -303,7 +303,7 @@ class CommActionRapport
* @param PDF $pdf Object PDF
* @param Translate $outputlangs Object lang for output
* @param int $pagenb Page nb
* @return void
* @return integer
*/
function _pagehead(&$pdf, $outputlangs, $pagenb)
{

View File

@ -108,7 +108,7 @@ class modPhpbarcode extends ModeleBarCode
* @param string $code Value to encode
* @param string $encoding Mode of encoding
* @param string $readable Code can be read
* @param string $scale Scale
* @param integer $scale Scale
* @return int <0 if KO, >0 if OK
*/
function buildBarCode($code,$encoding,$readable='Y',$scale=1)
@ -148,7 +148,7 @@ class modPhpbarcode extends ModeleBarCode
* @param string $code Value to encode
* @param string $encoding Mode of encoding
* @param string $readable Code can be read
* @param string $scale Scale
* @param integer $scale Scale
* @return int <0 if KO, >0 if OK
*/
function writeBarCode($code,$encoding,$readable='Y',$scale=1)

View File

@ -42,7 +42,7 @@ abstract class ModeleChequeReceipts extends CommonDocGenerator
* Return list of active generation modules
*
* @param DoliDB $db Database handler
* @param string $maxfilenamelength Max length of value to show
* @param integer $maxfilenamelength Max length of value to show
* @return array List of templates
*/
static function liste_modeles($db,$maxfilenamelength=0)

View File

@ -74,7 +74,7 @@ class ExportCsv extends ModeleExports
/**
* getDriverId
*
* @return int
* @return string
*/
function getDriverId()
{

View File

@ -76,7 +76,7 @@ class ExportExcel extends ModeleExports
/**
* getDriverId
*
* @return int
* @return string
*/
function getDriverId()
{

View File

@ -69,7 +69,7 @@ class ExportTsv extends ModeleExports
/**
* getDriverId
*
* @return int
* @return string
*/
function getDriverId()
{

View File

@ -657,7 +657,7 @@ class pdf_soleil extends ModelePDFFicheinter
* @param Object $object Object to show
* @param Translate $outputlangs Object lang for output
* @param int $hidefreetext 1=Hide free text
* @return void
* @return integer
*/
function _pagefoot(&$pdf,$object,$outputlangs,$hidefreetext=0)
{

View File

@ -41,7 +41,7 @@ abstract class ModelePDFFicheinter extends CommonDocGenerator
* Return list of active generation modules
*
* @param DoliDB $db Database handler
* @param string $maxfilenamelength Max length of value to show
* @param integer $maxfilenamelength Max length of value to show
* @return array List of templates
*/
static function liste_modeles($db,$maxfilenamelength=0)

View File

@ -88,7 +88,7 @@ class ImportCsv extends ModeleImports
/**
* getDriverId
*
* @return int Id
* @return string Id
*/
function getDriverId()
{
@ -305,7 +305,7 @@ class ImportCsv extends ModeleImports
/**
* Close file handle
*
* @return void
* @return integer
*/
function import_close_file()
{

View File

@ -62,7 +62,7 @@ class MailingTargets // This can't be abstract as it is used for some method
/**
* Return number of records for email selector
*
* @return string Example
* @return integer Example
*/
function getNbOfRecords()
{

View File

@ -57,7 +57,7 @@ class mailing_pomme extends MailingTargets
* array of SQL request that returns two field:
* One called "label", One called "nb".
*
* @return array Array with SQL requests
* @return string[] Array with SQL requests
*/
function getSqlArrayForStats()
{

View File

@ -41,7 +41,7 @@ class ModelePDFCards
* Return list of active generation modules
*
* @param DoliDB $db Database handler
* @param string $maxfilenamelength Max length of value to show
* @param integer $maxfilenamelength Max length of value to show
* @return array List of templates
*/
function liste_modeles($db,$maxfilenamelength=0)

View File

@ -41,7 +41,7 @@ class ModelePDFLabels
* Return list of active generation modules
*
* @param DoliDB $db Database handler
* @param string $maxfilenamelength Max length of value to show
* @param integer $maxfilenamelength Max length of value to show
* @return array List of templates
*/
function liste_modeles($db,$maxfilenamelength=0)

View File

@ -390,7 +390,7 @@ class pdf_baleine extends ModelePDFProjects
* Show top header of page.
*
* @param PDF $pdf Object PDF
* @param Object $object Object to show
* @param Project $object Object to show
* @param int $showaddress 0=no, 1=yes
* @param Translate $outputlangs Object lang for output
* @return void
@ -476,10 +476,10 @@ class pdf_baleine extends ModelePDFProjects
* Show footer of page. Need this->emetteur object
*
* @param PDF $pdf PDF
* @param Object $object Object to show
* @param Project $object Object to show
* @param Translate $outputlangs Object lang for output
* @param int $hidefreetext 1=Hide free text
* @return void
* @return integer
*/
function _pagefoot(&$pdf,$object,$outputlangs,$hidefreetext=0)
{

View File

@ -38,7 +38,7 @@ abstract class ModelePDFProjects extends CommonDocGenerator
* Return list of active generation modules
*
* @param DoliDB $db Database handler
* @param string $maxfilenamelength Max length of value to show
* @param integer $maxfilenamelength Max length of value to show
* @return array List of templates
*/
static function liste_modeles($db,$maxfilenamelength=0)
@ -145,7 +145,7 @@ abstract class ModeleNumRefProjects
* Create an intervention document on disk using template defined into PROJECT_ADDON_PDF
*
* @param DoliDB $db objet base de donnee
* @param Object $object Object fichinter
* @param Project $object Object fichinter
* @param string $modele force le modele a utiliser ('' par defaut)
* @param Translate $outputlangs objet lang a utiliser pour traduction
* @param int $hidedetails Hide details of lines

View File

@ -106,7 +106,7 @@ class doc_generic_task_odt extends ModelePDFTask
/**
* Define array with couple substitution key => substitution value
*
* @param Object $object Main object to use as data source
* @param Project $object Main object to use as data source
* @param Translate $outputlangs Lang object to use for output
* @return array Array of substitution
*/

View File

@ -39,7 +39,7 @@ abstract class ModelePDFTask extends CommonDocGenerator
* Return list of active generation modules
*
* @param DoliDB $db Database handler
* @param string $maxfilenamelength Max length of value to show
* @param integer $maxfilenamelength Max length of value to show
* @return array List of templates
*/
static function liste_modeles($db,$maxfilenamelength=0)
@ -145,7 +145,7 @@ abstract class ModeleNumRefTask
* Create an intervention document on disk using template defined into PROJECT_TASK_ADDON_PDF
*
* @param DoliDB $db objet base de donnee
* @param Object $object Object fichinter
* @param Task $object Object fichinter
* @param string $modele force le modele a utiliser ('' par defaut)
* @param Translate $outputlangs objet lang a utiliser pour traduction
* @param int $hidedetails Hide details of lines

View File

@ -554,7 +554,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
* Show payments table
*
* @param PDF $pdf Object PDF
* @param Object $object Object order
* @param CommandeFournisseur $object Object order
* @param int $posy Position y in PDF
* @param Translate $outputlangs Object langs for output
* @return int <0 if KO, >0 if OK
@ -569,10 +569,10 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
* Show miscellaneous information (payment mode, payment term, ...)
*
* @param PDF $pdf Object PDF
* @param Object $object Object to show
* @param CommandeFournisseur $object Object to show
* @param int $posy Y
* @param Translate $outputlangs Langs object
* @return void
* @return integer
*/
function _tableau_info(&$pdf, $object, $posy, $outputlangs)
{
@ -938,7 +938,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
* Show top header of page.
*
* @param PDF $pdf Object PDF
* @param Object $object Object to show
* @param CommandeFournisseur $object Object to show
* @param int $showaddress 0=no, 1=yes
* @param Translate $outputlangs Object lang for output
* @return void
@ -1139,7 +1139,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
* Show footer of page. Need this->emetteur object
*
* @param PDF $pdf PDF
* @param Object $object Object to show
* @param CommandeFournisseur $object Object to show
* @param Translate $outputlangs Object lang for output
* @param int $hidefreetext 1=Hide free text
* @return int Return height of bottom margin including footer text

View File

@ -114,7 +114,7 @@ class mod_syslog_chromephp extends LogHandler implements LogHandlerInterface
* Output log content
*
* @param array $content Content to log
* @return void
* @return null|false
*/
public function export($content)
{

View File

@ -111,7 +111,7 @@ class mod_syslog_firephp extends LogHandler implements LogHandlerInterface
* Output log content
*
* @param array $content Content to log
* @return void
* @return null|false
*/
public function export($content)
{

View File

@ -634,7 +634,7 @@ llxFooter();
* @param string $ftp_user FTP user
* @param string $ftp_password FTP password
* @param string $section Directory
* @param string $ftp_passive Use a passive mode
* @param integer $ftp_passive Use a passive mode
* @return int <0 if OK, >0 if KO
*/
function dol_ftp_connect($ftp_server, $ftp_port, $ftp_user, $ftp_password, $section, $ftp_passive=0)

View File

@ -1754,7 +1754,7 @@ function show_elem($fieldssource,$pos,$key,$var,$nostyle='')
*
* @param array $fieldssource Array of field source
* @param array $listofkey Array of keys
* @return void
* @return integer
*/
function getnewkey(&$fieldssource,&$listofkey)
{

View File

@ -776,7 +776,7 @@ function write_master_file($masterfile,$main_dir)
* Save configuration file. No particular permissions are set by installer.
*
* @param string $conffile Path to conf file to generate/update
* @return void
* @return integer
*/
function write_conf_file($conffile)
{

View File

@ -411,10 +411,10 @@ function pHeader($subtitle,$next,$action='set',$param='',$forcejqueryurl='')
/**
* Print HTML footer of install pages
*
* @param string $nonext No button "Next step"
* @param integer $nonext No button "Next step"
* @param string $setuplang Language code
* @param string $jscheckfunction Add a javascript check function
* @param string $withpleasewait Add also please wait tags
* @param integer $withpleasewait Add also please wait tags
* @return void
*/
function pFooter($nonext=0,$setuplang='',$jscheckfunction='', $withpleasewait=0)

View File

@ -2407,7 +2407,7 @@ function migrate_commande_deliveryaddress($db,$langs,$conf)
* @param DoliDB $db Database handler
* @param Translate $langs Object langs
* @param Conf $conf Object conf
* @return void
* @return integer|null
*/
function migrate_restore_missing_links($db,$langs,$conf)
{

View File

@ -166,7 +166,7 @@ class MailmanSpip
/**
* Fonction qui donne les droits redacteurs dans spip
*
* @param object $object Object with data (->firstname, ->lastname, ->email and ->login)
* @param Adherent $object Object with data (->firstname, ->lastname, ->email and ->login)
* @return int =0 if KO, >0 if OK
*/
function add_to_spip($object)
@ -208,7 +208,7 @@ class MailmanSpip
/**
* Fonction qui enleve les droits redacteurs dans spip
*
* @param object $object Object with data (->login)
* @param Adherent $object Object with data (->login)
* @return int =0 if KO, >0 if OK
*/
function del_to_spip($object)
@ -297,7 +297,7 @@ class MailmanSpip
/**
* Subscribe an email to all mailing-lists
*
* @param object $object Object with data (->email, ->pass, ->element, ->type)
* @param Adherent $object Object with data (->email, ->pass, ->element, ->type)
* @param array $listes To force mailing-list (string separated with ,)
* @return int <0 if KO, >=0 if OK
*/
@ -369,7 +369,7 @@ class MailmanSpip
* Unsubscribe an email from all mailing-lists
* Used when a user is resiliated
*
* @param object $object Object with data (->email, ->pass, ->element, ->type)
* @param Adherent $object Object with data (->email, ->pass, ->element, ->type)
* @param array $listes To force mailing-list (string separated with ,)
* @return int <0 if KO, >=0 if OK
*/

View File

@ -184,7 +184,7 @@ function getUrlSondage($id, $admin = false)
* Generate a random id
*
* @param string $car Char to generate key
* @return void
* @return string
*/
function dol_survey_random($car)
{

View File

@ -68,7 +68,7 @@ class ActionsCardProduct
* Assign custom values for canvas (for example into this->tpl to be used by templates)
*
* @param string $action Type of action
* @param string $id Id of object
* @param integer $id Id of object
* @param string $ref Ref of object
* @return void
*/

View File

@ -161,7 +161,7 @@ class FormProduct
* @param string $measuring_style Unit to show: weight, size, surface, volume
* @param string $default Force unit
* @param int $adddefault Add empty unit called "Default"
* @return void
* @return string
*/
function load_measuring_units($name='measuring_units', $measuring_style='', $default='0', $adddefault=0)
{

View File

@ -1031,7 +1031,7 @@ class Project extends CommonObject
* @param bool $clone_task_file clone file of task (if task are copied)
* @param bool $clone_note clone note of project
* @param bool $move_date move task date on clone
* @param bool $notrigger no trigger flag
* @param integer $notrigger no trigger flag
* @return int New id of clone
*/
function createFromClone($fromid,$clone_contact=false,$clone_task=true,$clone_project_file=false,$clone_task_file=false,$clone_note=true,$move_date=true,$notrigger=0)

View File

@ -225,7 +225,7 @@ function pHeader($soutitre,$next,$action='none')
/**
* Print HTML footer
*
* @param string $nonext No button "Next step"
* @param integer $nonext No button "Next step"
* @param string $setuplang Language code
* @return void
*/

View File

@ -1066,7 +1066,7 @@ class User extends CommonObject
/**
* Assign rights by default
*
* @return Si erreur <0, si ok renvoi le nbre de droits par defaut positionnes
* @return integer erreur <0, si ok renvoi le nbre de droits par defaut positionnes
*/
function set_default_rights()
{
@ -1621,7 +1621,7 @@ class User extends CommonObject
/**
* Update clicktodial info
*
* @return void
* @return integer
*/
function update_clicktodial()
{
@ -1777,8 +1777,8 @@ class User extends CommonObject
*
* @param int $withpicto Include picto in link (0=No picto, 1=Include picto into link, 2=Only picto)
* @param string $option On what the link point to
* @param boolean $infologin Add connection info to the tooltip
* @param string $notooltip 1=Disable tooltip
* @param integer $infologin Add connection info to the tooltip
* @param integer $notooltip 1=Disable tooltip
* @param int $maxlen Max length of visible user name
* @return string String with URL
*/