Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wernerkrauss committed Feb 20, 2024
1 parent 13d7d63 commit fe13858
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Checkout/Component/AddressBook.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ public function getExistingAddressFields()
$addressoptions = $member->AddressBook()->sort('Created', 'DESC')->map('ID', 'toString')->toArray();

$translatedAddressType = $this->addresstype;
if ($this->addresstype === 'Billing'){
if ($this->addresstype === 'Billing') {
$translatedAddressType = _t('SilverShop\Model\Address.BillingAddress', $this->addresstype);
}
if ($this->addresstype === 'Shipping'){
if ($this->addresstype === 'Shipping') {
$translatedAddressType = _t('SilverShop\Model\Address.ShippingAddress', $this->addresstype);
}

Expand Down
3 changes: 2 additions & 1 deletion src/Checkout/OrderEmailNotifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@ protected function debug(Email $email)
$htmlTemplate = $email->getHTMLTemplate();
$htmlRender = $email->getData()->renderWith($htmlTemplate)->RAW();
$template = $email->getHTMLTemplate();
$headers = $email->getHeaders()->toString();SSViewer::set_themes($this->current_themes);
$headers = $email->getHeaders()->toString();
SSViewer::set_themes($this->current_themes);
return "<h2>Email HTML template: $template</h2>\n" .
"<h3>Headers</h3>" .
"<pre>$headers</pre>" .
Expand Down

0 comments on commit fe13858

Please sign in to comment.