diff --git a/dev/tools/dolibarr-postgres2mysql.php b/dev/tools/dolibarr-postgres2mysql.php index 76be3804f1a..72c4b78082f 100644 --- a/dev/tools/dolibarr-postgres2mysql.php +++ b/dev/tools/dolibarr-postgres2mysql.php @@ -22,8 +22,8 @@ */ /** - * \file dev/tools/dolibarr-postgres2mysql.php - * \brief Script to migrate a postgresql dump into a mysql dump + * \file dev/tools/dolibarr-postgres2mysql.php + * \brief Script to migrate a postgresql dump into a mysql dump */ $sapi_type = php_sapi_name(); @@ -67,8 +67,8 @@ XHTML; /** * getfieldname * - * @param string $l String - * @return string|null Field name + * @param string $l String + * @return string|null Field name */ function getfieldname($l) { @@ -94,8 +94,8 @@ function getfieldname($l) /** * formatsize * - * @param string $s Size to format - * @return string Formated size + * @param string $s Size to format + * @return string Formated size */ function formatsize($s) { @@ -113,9 +113,9 @@ function formatsize($s) /** * pg2mysql_large * - * @param string $infilename Input filename - * @param string $outfilename Output filename - * @return int <0 if KO, >=0 if OK + * @param string $infilename Input filename + * @param string $outfilename Output filename + * @return int <0 if KO, >=0 if OK */ function pg2mysql_large($infilename, $outfilename) { @@ -234,10 +234,10 @@ function pg2mysql_large($infilename, $outfilename) /** * pg2mysql * - * @param array $input Array of input - * @param array $arrayofprimaryalreadyintabledef Array of table already output with a primary key set into definition - * @param boolean $header Boolean - * @return string[] Array of output + * @param array $input Array of input + * @param array $arrayofprimaryalreadyintabledef Array of table already output with a primary key set into definition + * @param boolean $header Boolean + * @return string[] Array of output */ function pg2mysql(&$input, &$arrayofprimaryalreadyintabledef, $header = true) { diff --git a/dev/tools/spider.php b/dev/tools/spider.php index 954978b24df..3278d3a7715 100644 --- a/dev/tools/spider.php +++ b/dev/tools/spider.php @@ -16,8 +16,8 @@ */ /** - * \file dev/tools/spider.php - * \brief Script to spider Dolibarr app. + * \file dev/tools/spider.php + * \brief Script to spider Dolibarr app. * * To use it: * - Disable module "bookmark" @@ -29,9 +29,9 @@ const MAX_DEPTH=2; /** - * @param string $url URL - * @param string $depth Depth - * @return string String + * @param string $url URL + * @param string $depth Depth + * @return string String */ function followLink($url, $depth = 0) { @@ -68,23 +68,24 @@ function followLink($url, $depth = 0) } /** - * @param string $site Site - * @param string $path Path - * @return string String + * @param string $site Site + * @param string $path Path + * @return string String */ function convertLink($site, $path) { if (substr_compare($path, "//", 0, 2)==0) return parse_url($site)['scheme'].$path; - elseif (substr_compare($path, "http://", 0, 7)==0 or - substr_compare($path, "https://", 0, 8)==0 or - substr_compare($path, "www.", 0, 4)==0) + elseif (substr_compare($path, "http://", 0, 7)==0 + or substr_compare($path, "https://", 0, 8)==0 + or substr_compare($path, "www.", 0, 4)==0 + ) return $path; else return $site.'/'.$path; } /** - * @param string $url URL + * @param string $url URL * @return boolean */ function ignoreLink($url) @@ -93,10 +94,10 @@ function ignoreLink($url) } /** - * @param string $link URL - * @param string $title Title - * @param string $metaData Array - * @param int $depth Depth + * @param string $link URL + * @param string $title Title + * @param string $metaData Array + * @param int $depth Depth * @return void */ function insertIntoDatabase($link, $title, &$metaData, $depth) @@ -109,9 +110,9 @@ function insertIntoDatabase($link, $title, &$metaData, $depth) } /** - * @param string $doc Doc - * @param string $url URL - * @return string URL/Title + * @param string $doc Doc + * @param string $url URL + * @return string URL/Title */ function getDocTitle(&$doc, $url) { @@ -123,8 +124,8 @@ function getDocTitle(&$doc, $url) } /** - * @param string $doc Doc - * @return array Array + * @param string $doc Doc + * @return array Array */ function getDocMetaData(&$doc) { diff --git a/dev/tools/test/namespacemig/aaa.class.php b/dev/tools/test/namespacemig/aaa.class.php index 84d936479f2..518c19f8d0c 100644 --- a/dev/tools/test/namespacemig/aaa.class.php +++ b/dev/tools/test/namespacemig/aaa.class.php @@ -24,6 +24,7 @@ class Aaa /** * do + * * @return void */ public function do() diff --git a/dev/tools/test/namespacemig/bbb.class.php b/dev/tools/test/namespacemig/bbb.class.php index ea3c1b18d61..5a4802dc46d 100644 --- a/dev/tools/test/namespacemig/bbb.class.php +++ b/dev/tools/test/namespacemig/bbb.class.php @@ -5,6 +5,7 @@ $globalbbb = 'globalbbb'; /** * fbbb + * * @return string */ function fbbb() @@ -21,6 +22,7 @@ class Bbb /** * do + * * @return void */ public function do() diff --git a/dev/tools/test/namespacemig/bbb.php b/dev/tools/test/namespacemig/bbb.php index 0146561f8c7..bad48ee9277 100755 --- a/dev/tools/test/namespacemig/bbb.php +++ b/dev/tools/test/namespacemig/bbb.php @@ -3,7 +3,7 @@ //use \Aaa as Aaa; use Dolibarr\Aaa as Aaa; -use function Dolibarr\faaa as faaa; // Need php 5.6+ +use function Dolibarr\faaa as faaa; // Need php 5.6+ //use const Dolibarr\AAA; diff --git a/dev/tools/test/testtcpdf.php b/dev/tools/test/testtcpdf.php index 98c923149ca..fe09c5c4764 100755 --- a/dev/tools/test/testtcpdf.php +++ b/dev/tools/test/testtcpdf.php @@ -21,10 +21,11 @@ /** * Creates an example PDF TEST document using TCPDF - * @package com.tecnick.tcpdf + * + * @package com.tecnick.tcpdf * @abstract TCPDF - Example: Document Encryption / Security - * @author Nicola Asuni - * @since 2008-03-04 + * @author Nicola Asuni + * @since 2008-03-04 */ require_once '../../htdocs/includes/tecnickcom/tcpdf/config/tcpdf_config.php'; diff --git a/dev/tools/test/testutf.php b/dev/tools/test/testutf.php index 9ce8d6a7583..c8800b69acf 100644 --- a/dev/tools/test/testutf.php +++ b/dev/tools/test/testutf.php @@ -38,13 +38,14 @@ print 'Files has been created. Check its name from your explorer'."\n"; /** * Creates an example PDF TEST document using TCPDF - * @package com.tecnick.tcpdf - * @abstract TCPDF - Example: CID-0 CJK unembedded font - * @author Nicola Asuni + * + * @package com.tecnick.tcpdf + * @abstract TCPDF - Example: CID-0 CJK unembedded font + * @author Nicola Asuni * @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com - * @link http://tcpdf.org - * @license https://www.gnu.org/copyleft/lesser.html LGPL - * @since 2008-09-15 + * @link http://tcpdf.org + * @license https://www.gnu.org/copyleft/lesser.html LGPL + * @since 2008-09-15 */ require_once '../../htdocs/includes/tecnickcom/tcpdf/config/tcpdf_config.php';