Standardize code

This commit is contained in:
Philippe GRAND 2018-10-06 12:34:51 +02:00
parent 956c7b21e2
commit 61daff6cb6
7 changed files with 25 additions and 21 deletions

View File

@ -38,6 +38,9 @@ abstract class CommonDocGenerator
*/ */
public $error=''; public $error='';
/**
* @var DoliDB Database handler.
*/
protected $db; protected $db;

View File

@ -30,13 +30,13 @@ class GoogleAPI
* @var DoliDB Database handler. * @var DoliDB Database handler.
*/ */
public $db; public $db;
/** /**
* @var string Error code (or message) * @var string Error code (or message)
*/ */
public $error=''; public $error='';
var $key; public $key;
/** /**
* Constructor * Constructor

View File

@ -58,15 +58,15 @@ class Form
*/ */
public $error=''; public $error='';
var $num; public $num;
// Cache arrays // Cache arrays
var $cache_types_paiements=array(); public $cache_types_paiements=array();
var $cache_conditions_paiements=array(); public $cache_conditions_paiements=array();
var $cache_availability=array(); public $cache_availability=array();
var $cache_demand_reason=array(); public $cache_demand_reason=array();
var $cache_types_fees=array(); public $cache_types_fees=array();
var $cache_vatrates=array(); public $cache_vatrates=array();
/** /**

View File

@ -51,11 +51,11 @@ class Notify
*/ */
public $errors = array(); public $errors = array();
var $author; public $author;
var $ref; public $ref;
var $date; public $date;
var $duree; public $duree;
var $note; public $note;
/** /**
* @var int Project ID * @var int Project ID

View File

@ -41,7 +41,7 @@ class MailingTargets // This can't be abstract as it is used for some method
*/ */
public $error=''; public $error='';
var $tooltip=''; public $tooltip='';
/** /**

View File

@ -48,10 +48,10 @@ class MailmanSpip
*/ */
public $error=''; public $error='';
var $mladded_ok; public $mladded_ok;
var $mladded_ko; public $mladded_ko;
var $mlremoved_ok; public $mlremoved_ok;
var $mlremoved_ko; public $mlremoved_ko;
/** /**

View File

@ -38,8 +38,9 @@ class FormResource
*/ */
public $db; public $db;
var $substit=array(); public $substit=array();
var $param=array();
public $param=array();
/** /**
* @var string Error code (or message) * @var string Error code (or message)