Fix spaces in assignments

[MAILPOET-3912]
This commit is contained in:
Jan Lysý
2022-01-03 15:55:20 +01:00
committed by Veljko V
parent 3bc84fbaf1
commit d99c7adf06
10 changed files with 26 additions and 26 deletions

View File

@@ -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',