- Make all tests pass Client (V4),CRMV2,CRMV4 - Simplify client submodule path - Move App_url to .env.testing
19 lines
407 B
PHP
19 lines
407 B
PHP
<?php
|
|
|
|
namespace App\Http\Sanitizers;
|
|
|
|
use ArondeParon\RequestSanitizer\Contracts\Sanitizer;
|
|
|
|
class RemoveSpaces implements Sanitizer
|
|
{
|
|
/**
|
|
* @param mixed $input
|
|
* @return string
|
|
* @phpcs:disable Squiz.Commenting.FunctionComment.TypeHintMissing
|
|
*/
|
|
public function sanitize($input): string
|
|
{
|
|
//phpcs:enable
|
|
return preg_replace('~\s{1,}~', '', $input);
|
|
}
|
|
}
|