Source of file AbstractCtypeRule.php
Size: 0,629 Bytes - Last Modified: 2017-11-08T13:54:24+00:00
/home/travis/build/bluzphp/framework/src/Validator/Rule/AbstractCtypeRule.php
12345678910111213141516171819202122232425262728293031323334 | <?php /** * Bluz Framework Component * * @copyright Bluz PHP Team * @link https://github.com/bluzphp/framework */ declare(strict_types=1); namespace Bluz\Validator\Rule; /** * Abstract ctype rules * * @package Bluz\Validator\Rule * @link http://php.net/manual/ru/book.ctype.php */ abstract class AbstractCtypeRule extends AbstractFilterRule { /** * Filter input data * * @param string $input * * @return string */ protected function filter($input) : string { $input = parent::filter((string)$input); return preg_replace('/\s/', '', $input); } } |