Bugfixes and more conversions to PHP 7

This commit is contained in:
djmaze 2020-03-10 18:45:00 +01:00
parent 2cada68f41
commit 3a7ec4ecb0
100 changed files with 238 additions and 992 deletions

View file

@ -180,26 +180,17 @@ abstract class AbstractPlugin
return $this;
}
/**
* @return void
*/
public function PreInit()
public function PreInit() : void
{
}
/**
* @return void
*/
public function Init()
public function Init() : void
{
}
/**
* @return void
*/
public function FilterAppDataPluginSection(bool $bAdmin, bool $bAuth, array &$aConfig)
public function FilterAppDataPluginSection(bool $bAdmin, bool $bAuth, array &$aConfig) : void
{
}

View file

@ -4,9 +4,6 @@ namespace RainLoop\Plugins;
class Helper
{
/**
* @return void
*/
private function __construct()
{
}

View file

@ -238,7 +238,7 @@ class Manager
return '';
}
public function CompileTemplate(array &$aList, bool $bAdminScope = false) : string
public function CompileTemplate(array &$aList, bool $bAdminScope = false) : void
{
if ($this->bIsEnabled)
{
@ -612,10 +612,7 @@ class Manager
return $this;
}
/**
* @return void
*/
public function WriteLog(string $sDesc, int $iType = \MailSo\Log\Enumerations\Type::INFO)
public function WriteLog(string $sDesc, int $iType = \MailSo\Log\Enumerations\Type::INFO) : void
{
if ($this->oLogger)
{
@ -623,10 +620,7 @@ class Manager
}
}
/**
* @return void
*/
public function WriteException(string $sDesc, int $iType = \MailSo\Log\Enumerations\Type::INFO)
public function WriteException(string $sDesc, int $iType = \MailSo\Log\Enumerations\Type::INFO) : void
{
if ($this->oLogger)
{