public static function validateBase64($data, callable $filter=null) {
        return base64_encode(base64_decode($data, true)) === $data ?
            self::applyFilter($data, $filter)
            : false;
    }
public static function validateBase64($data, callable $filter=null) {
        return base64_encode(base64_decode($data, true)) === $data ?
            self::applyFilter($data, $filter)
            : false;
    }
public static function validateBase64 ( $ data , callable $ filter = null ) { return base64_encode ( base64_decode ( $ data , true ) ) === $ data ? self :: applyFilter ( $ data , $ filter ) : false ; }
Base64 validator.

@param mixed $data Data to validate
@param callable $filter Custom filter
@return bool
Base64 validator .