Skip to content

Commit

Permalink
"Postal group "%s":" and "Service "%s":" prematurely ending the string
Browse files Browse the repository at this point in the history
  • Loading branch information
eojeel authored Jun 2, 2023
1 parent 419d00b commit 2e52e60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/ShippingsettingsSample.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function printShippingsettings($settings) {
printf("- There are %d postal code group(s):\n",
count($settings->getPostalCodeGroups()));
foreach ($settings->getPostalCodeGroups() as $group) {
printf(" Postal group '%s':\n", $group->getName());
printf(" Postal group %s:\n", $group->getName());
printf(" - Country: %s\n", $group->getCountry());
printf(" - Contains %d postal code range(s).\n",
count($group->getPostalCodeRanges()));
Expand All @@ -113,7 +113,7 @@ public function printShippingsettings($settings) {
printf("- There are %d shipping service(s):\n",
count($settings->getServices()));
foreach ($settings->getServices() as $service) {
printf(" Service '%s':\n", $service->getName());
printf(" Service %s:\n", $service->getName());
printf(" - Active: %s\n", $service->getActive() ? 'yes' : 'no');
printf(" - Country: %s\n", $service->getDeliveryCountry());
printf(" - Currency: %s\n", $service->getCurrency());
Expand Down

0 comments on commit 2e52e60

Please sign in to comment.