Skip to content
Snippets Groups Projects
Select Git revision
  • 3bb7b699a33a9b29a1fb5a6058eaa59c9f82c7f7
  • master default protected
  • feat/npm-publish
  • feat/demo-deploy
  • change-demo-deploy
  • remove-smoke
  • feat/acceptance-tests
  • feature/deploy-composer.json
  • feature/mysql-bin-logs
  • skip-codecept-for-libs
  • include-composer-json
  • exclude-wp-assets
  • update_codecept_image
  • fix/silenced-copy
  • remove-free-translations
  • codeception-with-optional-step
  • improve-parallelization
  • linter-exit
  • change-images
  • fix/linter
  • globally-raise-mem-limit
  • no-symlink2
22 results

prepare.yml

Blame
  • CallableSanitizer.php 354 B
    <?php
    
    namespace WPDesk\Forms\Sanitizer;
    
    use WPDesk\Forms\Sanitizer;
    
    class CallableSanitizer implements Sanitizer {
    
    	/** @var callable */
    	private $callable;
    
    	public function __construct( callable $callable ) {
    		$this->callable = $callable;
    	}
    
    	public function sanitize( $value ): string {
    		return call_user_func( $this->callable, $value );
    	}
    
    }