Skip to content

Commit aac045e

Browse files
authored
Trim string config options
1 parent 4a23735 commit aac045e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Model/Config.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function isEnabled(string $storeId = null): bool
6969
*/
7070
public function getAccountId(string $storeId = null): string
7171
{
72-
return (string)$this->getConfig(self::XML_PATH_ACCOUNT_ID, $storeId);
72+
return trim((string)$this->getConfig(self::XML_PATH_ACCOUNT_ID, $storeId));
7373
}
7474

7575
/**
@@ -80,7 +80,7 @@ public function getAccountId(string $storeId = null): string
8080
*/
8181
public function getContainerId(string $storeId = null): string
8282
{
83-
return (string)$this->getConfig(self::XML_PATH_CONTAINER_ID, $storeId);
83+
return trim((string)$this->getConfig(self::XML_PATH_CONTAINER_ID, $storeId));
8484
}
8585

8686
/**
@@ -91,7 +91,7 @@ public function getContainerId(string $storeId = null): string
9191
*/
9292
public function getPublicId(string $storeId = null): string
9393
{
94-
return (string)$this->getConfig(self::XML_PATH_PUBLIC_ID, $storeId);
94+
return trim((string)$this->getConfig(self::XML_PATH_PUBLIC_ID, $storeId));
9595
}
9696

9797
/**
@@ -113,7 +113,7 @@ public function isAnalyticsEnabled(string $storeId = null): bool
113113
*/
114114
public function getMeasurementId(string $storeId = null): string
115115
{
116-
return (string)$this->getConfig(self::XML_PATH_ANALYTICS_MEASUREMENT_ID, $storeId);
116+
return trim((string)$this->getConfig(self::XML_PATH_ANALYTICS_MEASUREMENT_ID, $storeId));
117117
}
118118

119119
/**

0 commit comments

Comments
 (0)