Skip to content

Commit f9d06d9

Browse files
committed
Remove phrase from non-localized exceptions
1 parent c508376 commit f9d06d9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/code/Magento/Catalog/Model/FrontendStorageConfigurationPool.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ class FrontendStorageConfigurationPool
2222
* StorageConfigurationPool constructor.
2323
* @param array $storageConfigurations
2424
*/
25-
public function __construct(private array $storageConfigurations = []) {}
25+
public function __construct(private array $storageConfigurations = [])
26+
{
27+
}
2628

2729
/**
2830
* Retrieve storage collector (which hold dynamic configurations) by its namespace

app/code/Magento/Store/Model/WebsiteRepository.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function getDefault()
147147
$this->initDefaultWebsite();
148148
}
149149
if (!$this->default) {
150-
throw new \DomainException(__("The default website isn't defined. Set the website and try again."));
150+
throw new \DomainException("The default website isn't defined. Set the website and try again.");
151151
}
152152
}
153153

@@ -168,7 +168,7 @@ public function clean()
168168
/**
169169
* Retrieve application config.
170170
*
171-
* @deprecated 100.1.3
171+
* @deprecated 100.1.3 Should be lazy loaded with a proxy via the DI.
172172
* @return Config
173173
*/
174174
private function getAppConfig()
@@ -191,10 +191,8 @@ private function initDefaultWebsite()
191191
if (isset($data['is_default']) && $data['is_default'] == 1) {
192192
if ($this->default) {
193193
throw new \DomainException(
194-
__(
195194
'The default website is invalid. '
196195
. 'Make sure no more than one default is defined and try again.'
197-
)
198196
);
199197
}
200198
$website = $this->factory->create([

0 commit comments

Comments
 (0)