Fixing style errors.

This commit is contained in:
stickler-ci 2022-08-27 11:31:55 +00:00
parent e44cbffd68
commit c0db4e6289

View File

@ -30,7 +30,7 @@ class mailing_partnership extends MailingTargets
// This label is used if no translation is found for key XXX neither MailingModuleDescXXX where XXX=name is found
public $name = 'PartnershipThirdpartiesOrMembers';
public $desc = "Thirdparties or members included into a partnership program";
public $require_admin = 0;
public $require_module = array(); // This module allows to select by categories must be also enabled if category module is not activated
@ -53,7 +53,7 @@ class mailing_partnership extends MailingTargets
*
* @param DoliDB $db Database handler
*/
public function __construct($db)
{
global $conf, $langs;
@ -70,7 +70,7 @@ class mailing_partnership extends MailingTargets
* @param int $mailing_id Id of mailing. No need to use it.
* @return int <0 if error, number of emails added if ok
*/
public function add_to_target($mailing_id)
{
// phpcs:enable
@ -157,7 +157,7 @@ class mailing_partnership extends MailingTargets
*
* @return array Array with SQL requests
*/
public function getSqlArrayForStats()
{
// CHANGE THIS: Optionnal
@ -176,7 +176,7 @@ class mailing_partnership extends MailingTargets
* @param string $sql Requete sql de comptage
* @return int|string Nb of recipient, or <0 if error, or '' if NA
*/
public function getNbOfRecipients($sql = '')
{
global $conf;