Skip to content

Commit

Permalink
Merge pull request #2257 from coreshop/coding-standard/refactor-master
Browse files Browse the repository at this point in the history
[CS] Refactor
  • Loading branch information
dpfaffenbauer committed Apr 24, 2023
2 parents c1137ff + 30ef0ac commit 4a9efe0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/CoreShop/Behat/Context/Setup/CartPriceRuleContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ public function addingACartPriceRule($ruleName): void
$this->sharedStorage->set('cart-price-rule', $rule);
}


/**
* @Given /^the (cart rule "[^"]+") has priority "([^"]+)"$/
* @Given /^the (cart rule) has priority "([^"]+)"$/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,25 @@

declare(strict_types=1);

/*
* CoreShop
*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - CoreShop Commercial License (CCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) CoreShop GmbH (https://www.coreshop.org)
* @license https://www.coreshop.org/license GPLv3 and CCL
*
*/

namespace CoreShop\Bundle\CoreBundle\Migrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

final class Version20230418082816 extends AbstractMigration
{
public function getDescription(): string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function isCartRuleValid(
OrderInterface $cart,
CartPriceRuleInterface $cartPriceRule,
?CartPriceRuleVoucherCodeInterface $voucher,
array $configuration
array $configuration,
): bool {
if (!$cart->hasPriceRules()) {
return true;
Expand Down

0 comments on commit 4a9efe0

Please sign in to comment.