From ed82b4a9867ff49c5a004a497809694e14c4b26a Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Thu, 28 Apr 2016 00:00:14 +0300 Subject: [PATCH] Fixed code style mistakes --- src/Storage.php | 17 ++++++++--------- src/TempMailBuster.php | 17 ++++++++--------- 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/src/Storage.php b/src/Storage.php index 818c46b..21106fb 100644 --- a/src/Storage.php +++ b/src/Storage.php @@ -8,6 +8,14 @@ class Storage */ private $blacklist; + /** + * @param array $blacklist + */ + public function __construct(array $blacklist = []) + { + $this->blacklist = $blacklist; + } + /** * @return array with current blacklist */ @@ -35,15 +43,6 @@ class Storage public function setBlacklist(array $items) { $this->blacklist = $items; - return $this; } - - /** - * @param array $blacklist - */ - public function __construct(array $blacklist = []) - { - $this->blacklist = $blacklist; - } } diff --git a/src/TempMailBuster.php b/src/TempMailBuster.php index a291088..14e9ffa 100644 --- a/src/TempMailBuster.php +++ b/src/TempMailBuster.php @@ -8,6 +8,14 @@ class TempMailBuster */ private $storage; + /** + * @param Storage $storage + */ + public function __construct(Storage $storage) + { + $this->storage = $storage; + } + /** * @return Storage */ @@ -52,19 +60,10 @@ class TempMailBuster /** * @param array $list - * * @return string */ protected function buildRegex(array $list) { return '/^(' . implode('|', $list) . ')$/'; } - - /** - * @param Storage $storage - */ - public function __construct(Storage $storage) - { - $this->storage = $storage; - } }