Clean code

This commit is contained in:
Laurent Destailleur 2021-06-09 23:48:28 +02:00
parent c00bef83a8
commit f3d54aada5
2 changed files with 24 additions and 2 deletions

View File

@ -1510,7 +1510,6 @@ class Adherent extends CommonObject
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Function to get partnerships array
*
@ -1519,7 +1518,6 @@ class Adherent extends CommonObject
*/
public function fetchPartnerships($mode)
{
// phpcs:enable
global $langs;
require_once DOL_DOCUMENT_ROOT.'/parntership/class/partnership.class.php';

View File

@ -740,6 +740,12 @@ class Societe extends CommonObject
public $multicurrency_code;
// Fields loaded by fetchPartnerships()
public $partnerships = array();
/**
* @var Account|string Default BAN account
*/
@ -4806,4 +4812,22 @@ class Societe extends CommonObject
return -1;
}
}
/**
* Function to get partnerships array
*
* @param string $mode 'member' or 'thirdparty'
* @return int <0 if KO, >0 if OK
*/
public function fetchPartnerships($mode)
{
global $langs;
require_once DOL_DOCUMENT_ROOT.'/parntership/class/partnership.class.php';
$this->partnerships[] = array();
return 1;
}
}