From 84057d46cc9c052ec9096d7275c3211d88b991c6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 2 Apr 2012 18:37:37 +0200 Subject: [PATCH] Checkstyle --- htdocs/core/lib/date.lib.php | 2 +- htdocs/core/lib/functions.lib.php | 16 ++++++++-------- htdocs/core/modules/modProduct.class.php | 3 +-- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/htdocs/core/lib/date.lib.php b/htdocs/core/lib/date.lib.php index 4f0afe66eef..f535ab2ae29 100644 --- a/htdocs/core/lib/date.lib.php +++ b/htdocs/core/lib/date.lib.php @@ -612,7 +612,7 @@ function num_public_holiday($timestampStart, $timestampEnd, $countrycode='FR') // Paques // Calcul du jour de l ascension (38 jours apres Paques) - $date_ascension = mktime( + $date_ascension = mktime( date("H", $date_paques), date("i", $date_paques), date("s", $date_paques), diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 6fac13e0d36..bdccbb8b768 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -444,19 +444,19 @@ function dol_escape_htmltag($stringtoescape,$keepb=0) * Write log message into outputs. Possible outputs can be: * A file if SYSLOG_FILE_ON defined: file name is then defined by SYSLOG_FILE * Syslog if SYSLOG_SYSLOG_ON defined: facility is then defined by SYSLOG_FACILITY - * Warning, syslog functions are bugged on Windows, generating memory protection faults. To solve - * this, use logging to files instead of syslog (see setup of module). - * Note: If SYSLOG_FILE_NO_ERROR defined, we never output any error message when writing to log fails. + * Warning, syslog functions are bugged on Windows, generating memory protection faults. To solve + * this, use logging to files instead of syslog (see setup of module). + * Note: If SYSLOG_FILE_NO_ERROR defined, we never output any error message when writing to log fails. * Note: You can get log message into html sources by adding parameter &logtohtml=1 (constant MAIN_LOGTOHTML must be set) * - * This function works only if syslog module is enabled. + * This function works only if syslog module is enabled. * This must not use any call to other function calling dol_syslog (avoid infinite loop). * * @param string $message Line to log. Ne doit pas etre traduit si level = LOG_ERR - * @param int $level Log level + * @param int $level Log level * On Windows LOG_ERR=4, LOG_WARNING=5, LOG_NOTICE=LOG_INFO=6, LOG_DEBUG=6 si define_syslog_variables ou PHP 5.3+, 7 si dolibarr * On Linux LOG_ERR=3, LOG_WARNING=4, LOG_INFO=6, LOG_DEBUG=7 - * @return void + * @return void */ function dol_syslog($message, $level=LOG_INFO) { @@ -880,8 +880,8 @@ function dol_print_date($time,$format='',$tzoutput='tzserver',$outputlangs='',$e * WARNING: This function always use PHP server timezone to return locale informations. * Usage must be avoid. * - * @param timestamp $timestamp Timestamp - * @param boolean $fast Fast mode + * @param timestamp $timestamp Timestamp + * @param boolean $fast Fast mode * @return array Array of informations * If no fast mode: * 'seconds' => $secs, diff --git a/htdocs/core/modules/modProduct.class.php b/htdocs/core/modules/modProduct.class.php index d2dc10b0dca..9e09914d601 100644 --- a/htdocs/core/modules/modProduct.class.php +++ b/htdocs/core/modules/modProduct.class.php @@ -34,8 +34,7 @@ include_once(DOL_DOCUMENT_ROOT ."/core/modules/DolibarrModules.class.php"); /** - * - * Classe de description et activation du module Produit + * Class descriptor of Product module */ class modProduct extends DolibarrModules {