Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wpforms-.../vendor_p.../stripe/stripe-p.../lib
File: File.php
<?php
[0] Fix | Delete
[1] Fix | Delete
// File generated from our OpenAPI spec
[2] Fix | Delete
namespace WPForms\Vendor\Stripe;
[3] Fix | Delete
[4] Fix | Delete
/**
[5] Fix | Delete
* This object represents files hosted on Stripe's servers. You can upload
[6] Fix | Delete
* files with the <a href="https://stripe.com/docs/api#create_file">create file</a> request
[7] Fix | Delete
* (for example, when uploading dispute evidence). Stripe also
[8] Fix | Delete
* creates files independently (for example, the results of a <a href="#scheduled_queries">Sigma scheduled
[9] Fix | Delete
* query</a>).
[10] Fix | Delete
*
[11] Fix | Delete
* Related guide: <a href="https://stripe.com/docs/file-upload">File upload guide</a>
[12] Fix | Delete
*
[13] Fix | Delete
* @property string $id Unique identifier for the object.
[14] Fix | Delete
* @property string $object String representing the object's type. Objects of the same type share the same value.
[15] Fix | Delete
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
[16] Fix | Delete
* @property null|int $expires_at The file expires and isn't available at this time in epoch seconds.
[17] Fix | Delete
* @property null|string $filename The suitable name for saving the file to a filesystem.
[18] Fix | Delete
* @property null|\Stripe\Collection<\Stripe\FileLink> $links A list of <a href="https://stripe.com/docs/api#file_links">file links</a> that point at this file.
[19] Fix | Delete
* @property string $purpose The <a href="https://stripe.com/docs/file-upload#uploading-a-file">purpose</a> of the uploaded file.
[20] Fix | Delete
* @property int $size The size of the file object in bytes.
[21] Fix | Delete
* @property null|string $title A suitable title for the document.
[22] Fix | Delete
* @property null|string $type The returned file type (for example, <code>csv</code>, <code>pdf</code>, <code>jpg</code>, or <code>png</code>).
[23] Fix | Delete
* @property null|string $url Use your live secret API key to download the file from this URL.
[24] Fix | Delete
*/
[25] Fix | Delete
class File extends ApiResource
[26] Fix | Delete
{
[27] Fix | Delete
const OBJECT_NAME = 'file';
[28] Fix | Delete
use ApiOperations\All;
[29] Fix | Delete
use ApiOperations\Retrieve;
[30] Fix | Delete
const PURPOSE_ACCOUNT_REQUIREMENT = 'account_requirement';
[31] Fix | Delete
const PURPOSE_ADDITIONAL_VERIFICATION = 'additional_verification';
[32] Fix | Delete
const PURPOSE_BUSINESS_ICON = 'business_icon';
[33] Fix | Delete
const PURPOSE_BUSINESS_LOGO = 'business_logo';
[34] Fix | Delete
const PURPOSE_CUSTOMER_SIGNATURE = 'customer_signature';
[35] Fix | Delete
const PURPOSE_DISPUTE_EVIDENCE = 'dispute_evidence';
[36] Fix | Delete
const PURPOSE_DOCUMENT_PROVIDER_IDENTITY_DOCUMENT = 'document_provider_identity_document';
[37] Fix | Delete
const PURPOSE_FINANCE_REPORT_RUN = 'finance_report_run';
[38] Fix | Delete
const PURPOSE_IDENTITY_DOCUMENT = 'identity_document';
[39] Fix | Delete
const PURPOSE_IDENTITY_DOCUMENT_DOWNLOADABLE = 'identity_document_downloadable';
[40] Fix | Delete
const PURPOSE_PCI_DOCUMENT = 'pci_document';
[41] Fix | Delete
const PURPOSE_SELFIE = 'selfie';
[42] Fix | Delete
const PURPOSE_SIGMA_SCHEDULED_QUERY = 'sigma_scheduled_query';
[43] Fix | Delete
const PURPOSE_TAX_DOCUMENT_USER_UPLOAD = 'tax_document_user_upload';
[44] Fix | Delete
const PURPOSE_TERMINAL_READER_SPLASHSCREEN = 'terminal_reader_splashscreen';
[45] Fix | Delete
// This resource can have two different object names. In latter API
[46] Fix | Delete
// versions, only `file` is used, but since stripe-php may be used with
[47] Fix | Delete
// any API version, we need to support deserializing the older
[48] Fix | Delete
// `file_upload` object into the same class.
[49] Fix | Delete
const OBJECT_NAME_ALT = 'file_upload';
[50] Fix | Delete
use ApiOperations\Create {
[51] Fix | Delete
create as protected _create;
[52] Fix | Delete
}
[53] Fix | Delete
/**
[54] Fix | Delete
* @param null|array $params
[55] Fix | Delete
* @param null|array|string $opts
[56] Fix | Delete
*
[57] Fix | Delete
* @throws \Stripe\Exception\ApiErrorException if the request fails
[58] Fix | Delete
*
[59] Fix | Delete
* @return \Stripe\File the created file
[60] Fix | Delete
*/
[61] Fix | Delete
public static function create($params = null, $opts = null)
[62] Fix | Delete
{
[63] Fix | Delete
$opts = \WPForms\Vendor\Stripe\Util\RequestOptions::parse($opts);
[64] Fix | Delete
if (null === $opts->apiBase) {
[65] Fix | Delete
$opts->apiBase = Stripe::$apiUploadBase;
[66] Fix | Delete
}
[67] Fix | Delete
// Manually flatten params, otherwise curl's multipart encoder will
[68] Fix | Delete
// choke on nested arrays.
[69] Fix | Delete
$flatParams = \array_column(\WPForms\Vendor\Stripe\Util\Util::flattenParams($params), 1, 0);
[70] Fix | Delete
return static::_create($flatParams, $opts);
[71] Fix | Delete
}
[72] Fix | Delete
}
[73] Fix | Delete
[74] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function