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;
/**
* @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;
}
}

View File

@ -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;
}
}