From 02b74afe5ff35e7cff4a4f0f3f010b605a2122fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Fri, 31 Aug 2018 22:41:51 +0200 Subject: [PATCH] function Comment Missing --- htdocs/api/class/api_login.class.php | 5 +++++ htdocs/projet/class/taskstats.class.php | 5 +++++ scripts/cron/cron_run_jobs.php | 8 +++++++- test/phpunit/WebservicesInvoicesTest.php | 10 ++++++++++ 4 files changed, 27 insertions(+), 1 deletion(-) diff --git a/htdocs/api/class/api_login.class.php b/htdocs/api/class/api_login.class.php index 797cd2429d5..60ccf3a4231 100644 --- a/htdocs/api/class/api_login.class.php +++ b/htdocs/api/class/api_login.class.php @@ -26,6 +26,11 @@ require_once DOL_DOCUMENT_ROOT.'/user/class/user.class.php'; class Login { + /** + * Constructor of the class + * + * @param DoliDb $db Database handler + */ function __construct() { global $db; diff --git a/htdocs/projet/class/taskstats.class.php b/htdocs/projet/class/taskstats.class.php index 20a3a67d1d3..84633944250 100644 --- a/htdocs/projet/class/taskstats.class.php +++ b/htdocs/projet/class/taskstats.class.php @@ -29,6 +29,11 @@ class TaskStats extends Stats public $socid; public $year; + /** + * Constructor of the class + * + * @param DoliDb $db Database handler + */ function __construct($db) { global $conf, $user; diff --git a/scripts/cron/cron_run_jobs.php b/scripts/cron/cron_run_jobs.php index 88960766a68..b97b8c5b20c 100755 --- a/scripts/cron/cron_run_jobs.php +++ b/scripts/cron/cron_run_jobs.php @@ -239,6 +239,13 @@ exit(0); +/** + * script cron usage + * + * @param string $path path + * @param string $script_file filename + * @return void + */ function usage($path,$script_file) { global $conf; @@ -252,4 +259,3 @@ function usage($path,$script_file) print "For example, to run pending tasks every 5mn, you can add this line:\n"; print "*/5 * * * * ".$path.$script_file." securitykey userlogin > ".DOL_DATA_ROOT."/".$script_file.".log\n"; } - diff --git a/test/phpunit/WebservicesInvoicesTest.php b/test/phpunit/WebservicesInvoicesTest.php index 6f7ca3610cd..bfa7c8ff0c8 100644 --- a/test/phpunit/WebservicesInvoicesTest.php +++ b/test/phpunit/WebservicesInvoicesTest.php @@ -91,6 +91,11 @@ class WebservicesInvoicesTest extends PHPUnit_Framework_TestCase print "\n"; } + /** + * setUpBeforeClass + * + * @return void + */ public static function setUpBeforeClass() { global $conf,$user,$langs,$db; @@ -131,6 +136,11 @@ class WebservicesInvoicesTest extends PHPUnit_Framework_TestCase print __METHOD__."\n"; } + /** + * tearDownAfterClass + * + * @return void + */ public static function tearDownAfterClass() { global $conf,$user,$langs,$db;