Fix indentation

This commit is contained in:
djmaze 2021-08-27 11:29:39 +02:00
parent 79d58ee45b
commit ff8e1ebd80
5 changed files with 25 additions and 18 deletions

View file

@ -1790,14 +1790,14 @@ END;
return \is_string($mResult) && 0 < \strlen($mResult) ? $mResult : '';
}
public static function Md5Rand(string $sAdditionalSalt = '') : string
{
public static function Md5Rand(string $sAdditionalSalt = '') : string
{
return \md5(\microtime(true).\rand(10000, 99999).
\md5($sAdditionalSalt).\rand(10000, 99999).\microtime(true));
}
public static function Sha1Rand(string $sAdditionalSalt = '') : string
{
public static function Sha1Rand(string $sAdditionalSalt = '') : string
{
return \sha1(\microtime(true).\rand(10000, 99999).
\sha1($sAdditionalSalt).\rand(10000, 99999).\microtime(true));
}

View file

@ -145,6 +145,13 @@ class ResponseCollection extends \MailSo\Base\Collection
$sFullNameRaw = \implode('', $aFullNameRawList);
/**
* $oResponse->ResponseList[0] = *
* $oResponse->ResponseList[1] = LIST (all) | LSUB (subscribed)
* $oResponse->ResponseList[2] = Flags
* $oResponse->ResponseList[3] = Delimiter
* $oResponse->ResponseList[4] = FullNameRaw
*/
$oFolder = new Folder($sFullNameRaw,
$oResponse->ResponseList[3], $oResponse->ResponseList[2]);

View file

@ -173,7 +173,7 @@ class Header
);
return \iconv_mime_encode($this->Name(), $sResult, $aPreferences);
}
}
}
else if ($this->IsParameterized() && $this->oParameters && 0 < $this->oParameters->Count())
{

View file

@ -50,19 +50,19 @@ class CURL extends \SnappyMail\HTTP\Request
if ($extra_headers) {
\curl_setopt($c, CURLOPT_HTTPHEADER, $extra_headers);
}
if ($this->auth['user'] && $this->auth['type']) {
$auth = 0;
if ($this->auth['type'] & self::AUTH_BASIC) {
$auth |= CURLAUTH_BASIC;
}
if ($this->auth['type'] & self::AUTH_DIGEST) {
$auth |= CURLAUTH_DIGEST;
}
\curl_setopt($c, CURLOPT_HTTPAUTH, $auth);
\curl_setopt($c, CURLOPT_USERPWD, $this->auth['user'] . ':' . $this->auth['pass']);
}
if ($this->auth['user'] && $this->auth['type']) {
$auth = 0;
if ($this->auth['type'] & self::AUTH_BASIC) {
$auth |= CURLAUTH_BASIC;
}
if ($this->auth['type'] & self::AUTH_DIGEST) {
$auth |= CURLAUTH_DIGEST;
}
\curl_setopt($c, CURLOPT_HTTPAUTH, $auth);
\curl_setopt($c, CURLOPT_USERPWD, $this->auth['user'] . ':' . $this->auth['pass']);
}
if ($this->proxy) {
\curl_setopt($c, CURLOPT_PROXY, $this->proxy);
\curl_setopt($c, CURLOPT_PROXY, $this->proxy);
}
if ('HEAD' === $method) {
\curl_setopt($c, CURLOPT_NOBODY, true);

View file

@ -244,7 +244,7 @@ class GD2 implements \SnappyMail\Image
return true;
}
public function setImageFormat($format) { $this->format = \strtolower($format); }
public function setImageFormat($format) { $this->format = \strtolower($format); }
public function stripImage() { return $this; }