for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Botonomous;
class BlackList extends AbstractAccessList
{
/**
* BlackList constructor.
*
* @param $request
*/
public function __construct($request)
$this->setRequest($request);
}
* @throws \Exception
* @return bool
public function isBlackListed(): bool
return $this->isUsernameBlackListed()
|| $this->isUserIdBlackListed()
|| $this->isEmailBlackListed();
public function isUsernameBlackListed(): bool
return $this->findInListByRequestKey('user_name', $this->getShortClassName(), 'username') === true
? true : false;
public function isUserIdBlackListed(): bool
return $this->findInListByRequestKey('user_id', $this->getShortClassName(), 'userId') === true
public function isEmailBlackListed()
return $this->checkEmail();