Fix warnings

This commit is contained in:
Laurent Destailleur 2020-09-20 16:57:53 +02:00
parent b3dd51b790
commit cd8ebd9500
7 changed files with 20 additions and 24 deletions

View File

@ -127,7 +127,7 @@ abstract class CommonStickerGenerator
/** /**
* Output a sticker on page at position _COUNTX, _COUNTY (_COUNTX and _COUNTY start from 0) * Output a sticker on page at position _COUNTX, _COUNTY (_COUNTX and _COUNTY start from 0)
* *
* @param PDF $pdf PDF reference * @param TCPDF $pdf PDF reference
* @param Translate $outputlangs Output langs * @param Translate $outputlangs Output langs
* @param array $param Associative array containing label content and optional parameters * @param array $param Associative array containing label content and optional parameters
* @return void * @return void
@ -139,7 +139,7 @@ abstract class CommonStickerGenerator
* Methode qui permet de modifier la taille des caracteres * Methode qui permet de modifier la taille des caracteres
* Cela modiera aussi l'espace entre chaque ligne * Cela modiera aussi l'espace entre chaque ligne
* *
* @param PDF $pdf PDF reference * @param TCPDF $pdf PDF reference
* @param int $pt point * @param int $pt point
* @return void * @return void
*/ */
@ -158,7 +158,7 @@ abstract class CommonStickerGenerator
/** /**
* protected Print dot line * protected Print dot line
* *
* @param PDF $pdf PDF reference * @param TCPDF $pdf PDF reference
* @param int $x1 X1 * @param int $x1 X1
* @param int $y1 Y1 * @param int $y1 Y1
* @param int $x2 X2 * @param int $x2 X2
@ -201,7 +201,7 @@ abstract class CommonStickerGenerator
/** /**
* protected Function realisant une croix aux 4 coins des cartes * protected Function realisant une croix aux 4 coins des cartes
* *
* @param PDF $pdf PDF reference * @param TCPDF $pdf PDF reference
* @param int $x1 X1 * @param int $x1 X1
* @param int $y1 Y1 * @param int $y1 Y1
* @param int $x2 X2 * @param int $x2 X2
@ -280,7 +280,7 @@ abstract class CommonStickerGenerator
/** /**
* protected Set format * protected Set format
* *
* @param PDF $pdf PDF reference * @param TCPDF $pdf PDF reference
* @param string $format Format * @param string $format Format
* @return void * @return void
*/ */

View File

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

View File

@ -579,10 +579,9 @@ class SupplierInvoices extends DolibarrApi
* *
* @return object * @return object
* *
* @throws 200 * @throws RestException 401 Not allowed
* @throws 304 * @throws RestException 404 Not found
* @throws 401 * @throws RestException 304 Error
* @throws 404
*/ */
public function putLine($id, $lineid, $request_data = null) public function putLine($id, $lineid, $request_data = null)
{ {
@ -640,10 +639,10 @@ class SupplierInvoices extends DolibarrApi
* *
* @return array * @return array
* *
* @throws 400 * @throws RestException 400 Bad parameters
* @throws 401 * @throws RestException 401 Not allowed
* @throws 404 * @throws RestException 404 Not found
* @throws 405 * @throws RestException 405 Error
*/ */
public function deleteLine($id, $lineid) public function deleteLine($id, $lineid)
{ {

View File

@ -64,7 +64,8 @@ class MyModuleApi extends DolibarrApi
* *
* @url GET myobjects/{id} * @url GET myobjects/{id}
* *
* @throws RestException * @throws RestException 401 Not allowed
* @throws RestException 404 Not found
*/ */
public function get($id) public function get($id)
{ {

View File

@ -1139,7 +1139,7 @@ class pdf_standard_myobject extends ModelePDFMyObject
/** /**
* Show footer of page. Need this->emetteur object * Show footer of page. Need this->emetteur object
* *
* @param PDF $pdf PDF * @param TCPDF $pdf PDF
* @param Object $object Object to show * @param Object $object Object to show
* @param Translate $outputlangs Object lang for output * @param Translate $outputlangs Object lang for output
* @param int $hidefreetext 1=Hide free text * @param int $hidefreetext 1=Hide free text

View File

@ -1051,7 +1051,7 @@ class pdf_standard_recruitmentjobposition extends ModelePDFRecruitmentJobPositio
/** /**
* Show footer of page. Need this->emetteur object * Show footer of page. Need this->emetteur object
* *
* @param PDF $pdf PDF * @param TCPDF $pdf PDF
* @param Object $object Object to show * @param Object $object Object to show
* @param Translate $outputlangs Object lang for output * @param Translate $outputlangs Object lang for output
* @param int $hidefreetext 1=Hide free text * @param int $hidefreetext 1=Hide free text

View File

@ -503,7 +503,7 @@ function createProductOrService($authentication, $product)
if ($product['barcode'] && !$product['barcode_type']) if ($product['barcode'] && !$product['barcode_type'])
{ {
$errror++; $errorcode = 'KO'; $errorlabel = "You must set a barcode type when setting a barcode."; $error++; $errorcode = 'KO'; $errorlabel = "You must set a barcode type when setting a barcode.";
} }
@ -675,7 +675,7 @@ function updateProductOrService($authentication, $product)
if ($product['barcode'] && !$product['barcode_type']) if ($product['barcode'] && !$product['barcode_type'])
{ {
$errror++; $errorcode = 'KO'; $errorlabel = "You must set a barcode type when setting a barcode."; $error++; $errorcode = 'KO'; $errorlabel = "You must set a barcode type when setting a barcode.";
} }
if (!$error) if (!$error)
@ -841,8 +841,6 @@ function deleteProductOrService($authentication, $listofidstring)
{ {
global $db, $conf, $langs; global $db, $conf, $langs;
$now = dol_now();
dol_syslog("Function: deleteProductOrService login=".$authentication['login']); dol_syslog("Function: deleteProductOrService login=".$authentication['login']);
if ($authentication['entity']) $conf->entity = $authentication['entity']; if ($authentication['entity']) $conf->entity = $authentication['entity'];
@ -936,8 +934,6 @@ function getListOfProductsOrServices($authentication, $filterproduct)
{ {
global $db, $conf, $langs; global $db, $conf, $langs;
$now = dol_now();
dol_syslog("Function: getListOfProductsOrServices login=".$authentication['login']); dol_syslog("Function: getListOfProductsOrServices login=".$authentication['login']);
if ($authentication['entity']) $conf->entity = $authentication['entity']; if ($authentication['entity']) $conf->entity = $authentication['entity'];