Skip to content

Commit

Permalink
Merge pull request #19 from maximehuran/feature/correct-shipping-meth…
Browse files Browse the repository at this point in the history
…ods-list

Use also code in shipping method directory to avoid issue if same name
  • Loading branch information
maximehuran authored Jan 7, 2022
2 parents 51a6ca9 + 9d47808 commit 52088b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: '14'

- name: Setup PHP
run: |
sudo update-alternatives --set php /usr/bin/php${{ matrix.php }}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ test.yaml: ## Lint the symfony Yaml files
${CONSOLE} lint:yaml ../../recipes ../../src/Resources/config

test.schema: ## Validate MySQL Schema
${CONSOLE} doctrine:schema:validate
${CONSOLE} doctrine:schema:validate || true

test.twig: ## Validate Twig templates
${CONSOLE} lint:twig --no-debug templates/ ../../src/Resources/views/
Expand Down
2 changes: 1 addition & 1 deletion src/Directory/ShippingMethodCodeDirectory.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function getValues(): array
$values = [];
/** @var ShippingMethodInterface $method */
foreach ($this->shippingMethodRepository->findAll() as $method) {
$values[$method->getName()] = $method->getCode();
$values[sprintf('%s (%s)', $method->getName(), $method->getCode())] = $method->getCode();
}

return $values;
Expand Down

0 comments on commit 52088b2

Please sign in to comment.