From 5979db773373c171a7d5d8d03a6fd42bf3a8bcfa Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Thu, 20 Sep 2018 12:07:23 +0200 Subject: [PATCH] Standardize and update code --- htdocs/core/class/commonstickergenerator.class.php | 7 +++++-- htdocs/core/modules/product/doc/pdf_standard.modules.php | 4 ++++ htdocs/core/modules/stock/doc/pdf_standard.modules.php | 4 ++++ htdocs/core/modules/stock/doc/pdf_stdmovement.modules.php | 4 ++++ 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/commonstickergenerator.class.php b/htdocs/core/class/commonstickergenerator.class.php index 6d4c32d82bb..5289ed882ff 100644 --- a/htdocs/core/class/commonstickergenerator.class.php +++ b/htdocs/core/class/commonstickergenerator.class.php @@ -61,9 +61,12 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/format_cards.lib.php'; */ abstract class CommonStickerGenerator { - public $code; // Code of format - public $format; // Array with informations + + /** + * @var array format Array with informations + */ + public $format; // protected var $_Avery_Name = ''; // Nom du format de l'etiquette diff --git a/htdocs/core/modules/product/doc/pdf_standard.modules.php b/htdocs/core/modules/product/doc/pdf_standard.modules.php index 6de000ffac4..23b112d6113 100644 --- a/htdocs/core/modules/product/doc/pdf_standard.modules.php +++ b/htdocs/core/modules/product/doc/pdf_standard.modules.php @@ -78,7 +78,11 @@ class pdf_standard extends ModelePDFProduct */ public $page_hauteur; + /** + * @var array format + */ public $format; + public $marge_gauche; public $marge_droite; public $marge_haute; diff --git a/htdocs/core/modules/stock/doc/pdf_standard.modules.php b/htdocs/core/modules/stock/doc/pdf_standard.modules.php index 40739458879..19acd8c873d 100644 --- a/htdocs/core/modules/stock/doc/pdf_standard.modules.php +++ b/htdocs/core/modules/stock/doc/pdf_standard.modules.php @@ -78,7 +78,11 @@ class pdf_standard extends ModelePDFStock */ public $page_hauteur; + /** + * @var array format + */ public $format; + public $marge_gauche; public $marge_droite; public $marge_haute; diff --git a/htdocs/core/modules/stock/doc/pdf_stdmovement.modules.php b/htdocs/core/modules/stock/doc/pdf_stdmovement.modules.php index 4bded6e2e6f..16a6e80ad9e 100644 --- a/htdocs/core/modules/stock/doc/pdf_stdmovement.modules.php +++ b/htdocs/core/modules/stock/doc/pdf_stdmovement.modules.php @@ -79,7 +79,11 @@ class pdf_stdmovement extends ModelePDFMovement */ public $page_hauteur; + /** + * @var array format + */ public $format; + public $marge_gauche; public $marge_droite; public $marge_haute;