Implement lint
This commit is contained in:
+2
-2
@@ -25,7 +25,7 @@ class Email extends PhpObject {
|
||||
parent::__construct(__CLASS__);
|
||||
$this->sServName = $sServName;
|
||||
$this->setTemplate($sTemplateName);
|
||||
$this->asDests = array();
|
||||
$this->asDests = [];
|
||||
}
|
||||
|
||||
public function setTemplate($sTemplateName) {
|
||||
@@ -39,7 +39,7 @@ class Email extends PhpObject {
|
||||
* @param array $asDests Contains: id_user, name, email, language, timezone, active
|
||||
*/
|
||||
public function setDestInfo($asDests) {
|
||||
if(array_key_exists('email', $asDests)) $asDests = array($asDests);
|
||||
if(array_key_exists('email', $asDests)) $asDests = [$asDests];
|
||||
$this->asDests = $asDests;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user