Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>2021-01-16 05:39:26 +0300
committerGretaD <gretadoci@gmail.com>2021-01-18 13:49:49 +0300
commit403944291826f60e40d6a5691477c985bbfd14a3 (patch)
treeb6fb0286ea9bd5074722f0186a116aeb898c4fd1 /lib/Service
parent33a5c1ea0ca9165b96d8fc718f209187eadc7756 (diff)
Bump nextcloud/coding-standard from 0.4.0 to 0.5.0
Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.4.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.4.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Diffstat (limited to 'lib/Service')
-rw-r--r--lib/Service/AutoConfig/ImapServerDetector.php2
-rw-r--r--lib/Service/AutoConfig/IspDb.php4
-rw-r--r--lib/Service/AutoConfig/IspDbConfigurationDetector.php6
-rw-r--r--lib/Service/AutoConfig/SmtpServerDetector.php2
-rwxr-xr-xlib/Service/HtmlPurify/TransformCSSBackground.php2
-rw-r--r--lib/Service/MailTransmission.php2
-rw-r--r--lib/Service/Search/FilterStringParser.php2
7 files changed, 10 insertions, 10 deletions
diff --git a/lib/Service/AutoConfig/ImapServerDetector.php b/lib/Service/AutoConfig/ImapServerDetector.php
index 95edc22bd..bb0bbf3e9 100644
--- a/lib/Service/AutoConfig/ImapServerDetector.php
+++ b/lib/Service/AutoConfig/ImapServerDetector.php
@@ -54,7 +54,7 @@ class ImapServerDetector {
string $name) {
// splitting the email address into user and host part
// TODO: use horde libs for email address parsing
- list($user, $host) = explode("@", $email);
+ [$user, $host] = explode("@", $email);
/*
* Try to get the mx record for the email address
diff --git a/lib/Service/AutoConfig/IspDb.php b/lib/Service/AutoConfig/IspDb.php
index df43017e2..7d50d3b2b 100644
--- a/lib/Service/AutoConfig/IspDb.php
+++ b/lib/Service/AutoConfig/IspDb.php
@@ -107,7 +107,7 @@ class IspDb {
$this->logger->debug("IsbDb: querying <$domain>");
if (strpos($domain, '@') !== false) {
// TODO: use horde mail address parsing instead
- list(, $domain) = explode('@', $domain);
+ [, $domain] = explode('@', $domain);
}
$provider = [];
@@ -135,7 +135,7 @@ class IspDb {
if ($tryMx && ($dns = dns_get_record($domain, DNS_MX))) {
$domain = $dns[0]['target'];
if (!($provider = $this->query($domain, $email, false))) {
- list(, $domain) = explode('.', $domain, 2);
+ [, $domain] = explode('.', $domain, 2);
$provider = $this->query($domain, $email, false);
}
}
diff --git a/lib/Service/AutoConfig/IspDbConfigurationDetector.php b/lib/Service/AutoConfig/IspDbConfigurationDetector.php
index a0f84349f..d53b162b1 100644
--- a/lib/Service/AutoConfig/IspDbConfigurationDetector.php
+++ b/lib/Service/AutoConfig/IspDbConfigurationDetector.php
@@ -89,7 +89,7 @@ class IspDbConfigurationDetector {
public function detectImapAndSmtp(string $email, string $password, string $name) {
// splitting the email address into user and host part
// TODO: use horde libs for email address parsing
- list(, $host) = explode("@", $email);
+ [, $host] = explode("@", $email);
$ispdb = $this->ispDb->query($host, $email);
@@ -156,7 +156,7 @@ class IspDbConfigurationDetector {
if ($imap['username'] === '%EMAILADDRESS%') {
$user = $email;
} elseif ($imap['username'] === '%EMAILLOCALPART%') {
- list($user,) = explode("@", $email);
+ [$user,] = explode("@", $email);
} elseif (empty($imap['username'])) {
$this->logger->info("imap username is either an invalid placeholder or is empty");
return null;
@@ -211,7 +211,7 @@ class IspDbConfigurationDetector {
if ($smtp['username'] === '%EMAILADDRESS%') {
$user = $email;
} elseif ($smtp['username'] === '%EMAILLOCALPART%') {
- list($user,) = explode("@", $email);
+ [$user,] = explode("@", $email);
} elseif (empty($smtp['username'])) {
$this->logger->info("smtp username is either an unknown placeholder or is empty");
return null;
diff --git a/lib/Service/AutoConfig/SmtpServerDetector.php b/lib/Service/AutoConfig/SmtpServerDetector.php
index 16f429d0a..78ed9d355 100644
--- a/lib/Service/AutoConfig/SmtpServerDetector.php
+++ b/lib/Service/AutoConfig/SmtpServerDetector.php
@@ -60,7 +60,7 @@ class SmtpServerDetector {
// splitting the email address into user and host part
// TODO: use horde libs for email address parsing
- list($user, $host) = explode("@", $email);
+ [$user, $host] = explode("@", $email);
/*
* Try to get the mx record for the email address
diff --git a/lib/Service/HtmlPurify/TransformCSSBackground.php b/lib/Service/HtmlPurify/TransformCSSBackground.php
index 723f50f5e..933a4803b 100755
--- a/lib/Service/HtmlPurify/TransformCSSBackground.php
+++ b/lib/Service/HtmlPurify/TransformCSSBackground.php
@@ -63,7 +63,7 @@ class TransformCSSBackground extends HTMLPurifier_AttrTransform {
return '';
}
- list($name, $value) = explode(':', $cssAttribute, 2);
+ [$name, $value] = explode(':', $cssAttribute, 2);
if (strpos($name, 'background') !== false &&
strpos($value, 'url(') !== false) {
// Replace image URL
diff --git a/lib/Service/MailTransmission.php b/lib/Service/MailTransmission.php
index b862baf98..35c63dafc 100644
--- a/lib/Service/MailTransmission.php
+++ b/lib/Service/MailTransmission.php
@@ -339,7 +339,7 @@ class MailTransmission implements IMailTransmission {
$id = (int)$attachment['id'];
try {
- list($localAttachment, $file) = $this->attachmentService->getAttachment($account->getMailAccount()->getUserId(), $id);
+ [$localAttachment, $file] = $this->attachmentService->getAttachment($account->getMailAccount()->getUserId(), $id);
$message->addLocalAttachment($localAttachment, $file);
} catch (AttachmentNotFoundException $ex) {
$this->logger->warning('ignoring local attachment because it does not exist');
diff --git a/lib/Service/Search/FilterStringParser.php b/lib/Service/Search/FilterStringParser.php
index 763f314b0..64ecbe976 100644
--- a/lib/Service/Search/FilterStringParser.php
+++ b/lib/Service/Search/FilterStringParser.php
@@ -49,7 +49,7 @@ class FilterStringParser {
return false;
}
- list($type, $param) = explode(':', $token);
+ [$type, $param] = explode(':', $token);
$type = strtolower($type);
$flagMap = [
'answered' => Flag::is(Flag::ANSWERED),