mirror of
https://github.com/elyby/php-tempmailbuster.git
synced 2024-11-30 02:32:48 +05:30
Fixed code style mistakes
This commit is contained in:
parent
3a2d7c7e63
commit
ed82b4a986
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user