Fix spaces in assignments
[MAILPOET-3912]
This commit is contained in:
@@ -35,11 +35,11 @@ class MarketingOptinBlock implements IntegrationInterface {
|
||||
*/
|
||||
public function initialize() {
|
||||
$script_asset_path = Env::$assetsUrl . '/dist/js/marketing_optin_block/marketing-optin-block-frontend.asset.php';
|
||||
$script_asset = file_exists($script_asset_path)
|
||||
$script_asset = file_exists($script_asset_path)
|
||||
? require $script_asset_path
|
||||
: [
|
||||
'dependencies' => [],
|
||||
'version' => Env::$version,
|
||||
'version' => Env::$version,
|
||||
];
|
||||
$this->wp->wpRegisterScript(
|
||||
'mailpoet-marketing-optin-block-frontend',
|
||||
|
@@ -75,7 +75,7 @@ class WooCommerceBlocksIntegration {
|
||||
public function registerCheckoutFrontendBlocks($integration_registry) {
|
||||
$integration_registry->register(new MarketingOptinBlock(
|
||||
[
|
||||
'defaultText' => $this->settings->get('woocommerce.optin_on_checkout.message', ''),
|
||||
'defaultText' => $this->settings->get('woocommerce.optin_on_checkout.message', ''),
|
||||
'optinEnabled' => $this->settings->get('woocommerce.optin_on_checkout.enabled', false),
|
||||
'defaultStatus' => $this->woocommerceSubscription->isCurrentUserSubscribed(),
|
||||
],
|
||||
@@ -95,13 +95,13 @@ class WooCommerceBlocksIntegration {
|
||||
$extend = Package::container()->get(ExtendRestApi::class);
|
||||
$extend->register_endpoint_data(
|
||||
[
|
||||
'endpoint' => CheckoutSchema::IDENTIFIER,
|
||||
'namespace' => 'mailpoet',
|
||||
'endpoint' => CheckoutSchema::IDENTIFIER,
|
||||
'namespace' => 'mailpoet',
|
||||
'schema_callback' => function () {
|
||||
return [
|
||||
'optin' => [
|
||||
'description' => __('Subscribe to marketing opt-in.', 'mailpoet'),
|
||||
'type' => 'boolean',
|
||||
'type' => 'boolean',
|
||||
],
|
||||
];
|
||||
},
|
||||
|
Reference in New Issue
Block a user