Fixed code style mistakes

This commit is contained in:
ErickSkrauch 2016-04-28 00:00:14 +03:00
parent 3a2d7c7e63
commit ed82b4a986
2 changed files with 16 additions and 18 deletions

View File

@ -8,6 +8,14 @@ class Storage
*/ */
private $blacklist; private $blacklist;
/**
* @param array $blacklist
*/
public function __construct(array $blacklist = [])
{
$this->blacklist = $blacklist;
}
/** /**
* @return array with current blacklist * @return array with current blacklist
*/ */
@ -35,15 +43,6 @@ class Storage
public function setBlacklist(array $items) public function setBlacklist(array $items)
{ {
$this->blacklist = $items; $this->blacklist = $items;
return $this; return $this;
} }
/**
* @param array $blacklist
*/
public function __construct(array $blacklist = [])
{
$this->blacklist = $blacklist;
}
} }

View File

@ -8,6 +8,14 @@ class TempMailBuster
*/ */
private $storage; private $storage;
/**
* @param Storage $storage
*/
public function __construct(Storage $storage)
{
$this->storage = $storage;
}
/** /**
* @return Storage * @return Storage
*/ */
@ -52,19 +60,10 @@ class TempMailBuster
/** /**
* @param array $list * @param array $list
*
* @return string * @return string
*/ */
protected function buildRegex(array $list) protected function buildRegex(array $list)
{ {
return '/^(' . implode('|', $list) . ')$/'; return '/^(' . implode('|', $list) . ')$/';
} }
/**
* @param Storage $storage
*/
public function __construct(Storage $storage)
{
$this->storage = $storage;
}
} }