From 2a961cca01428e2bd2d3e84d6f585184ef6534a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tautvidas=20Sipavi=C4=8Dius?= Date: Mon, 31 Oct 2016 22:27:44 +0200 Subject: [PATCH] Eliminate an extra level of indentation --- lib/Subscribers/ImportExport/Import/MailChimp.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/Subscribers/ImportExport/Import/MailChimp.php b/lib/Subscribers/ImportExport/Import/MailChimp.php index c5b9344505..dae8c50ef6 100644 --- a/lib/Subscribers/ImportExport/Import/MailChimp.php +++ b/lib/Subscribers/ImportExport/Import/MailChimp.php @@ -83,10 +83,8 @@ class MailChimp { } if(!isset($header_hash)) { $header_hash = md5(implode(',', $header)); - } else { - if(md5(implode(',', $header) !== $header_hash)) { - return $this->throwException('headers'); - } + } elseif(md5(implode(',', $header) !== $header_hash)) { + return $this->throwException('headers'); } } else { $subscribers[] = $obj; @@ -147,4 +145,4 @@ class MailChimp { } throw new \Exception($errorMessage); } -} \ No newline at end of file +}