Privacy/GDPR friendly version (removed: Social, Gravatar, Facebook, Google, Twitter, DropBox, OwnCloud)

Also removed: POP3, OAuth2 and update feature
Added: admin password_hash/password_verify
Requires: PHP 7.3+
Replaced: CRLF with LF
Replaced: pclZip with ZipArchive
This commit is contained in:
djmaze 2020-03-09 17:04:17 +01:00
parent 15ceddc202
commit 2cada68f41
293 changed files with 23728 additions and 85420 deletions

View file

@ -14,7 +14,7 @@ class Suggestions extends \RainLoop\Providers\AbstractProvider
*
* @return void
*/
public function __construct($aDriver = null)
public function __construct(?array $aDriver = null)
{
if (\is_array($aDriver))
{
@ -26,14 +26,7 @@ class Suggestions extends \RainLoop\Providers\AbstractProvider
$this->aDrivers = \is_array($aDriver) && 0 < \count($aDriver) ? $aDriver : null;
}
/**
* @param \RainLoop\Model\Account $oAccount
* @param string $sQuery
* @param int $iLimit = 20
*
* @return array
*/
public function Process($oAccount, $sQuery, $iLimit = 20)
public function Process(\RainLoop\Model\Account $oAccount, string $sQuery, int $iLimit = 20) : array
{
$aSuggestions = array();
if ($oAccount instanceof \RainLoop\Model\Account &&
@ -63,11 +56,8 @@ class Suggestions extends \RainLoop\Providers\AbstractProvider
return $aResult;
}
/**
* @return bool
*/
public function IsActive()
public function IsActive() : bool
{
return \is_array($this->aDrivers) && 0 < \count($this->aDrivers);
}
}
}