for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Redaxscript\Filter;
use function preg_replace;
/**
* children class to filter the password
*
* @since 4.3.0
* @package Redaxscript
* @category Filter
* @author Henry Ruhs
*/
class Password implements FilterInterface
{
* pattern for password
* @var string
protected $_pattern = '[^\S]';
* sanitize the password
* @param string $password plain password
* @return string
public function sanitize(string $password = null) : string
return preg_replace('/' . $this->_pattern . '/i', null, $password);
}