Skip to content

Commit

Permalink
Merge branch '4.0' into 4.1
Browse files Browse the repository at this point in the history
* 4.0:
  [CS] Refactor
  • Loading branch information
dpfaffenbauer committed Oct 7, 2024
2 parents 4a2a077 + 6e97f70 commit 0a87677
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
9 changes: 3 additions & 6 deletions src/CoreShop/Bundle/ClassDefinitionPatchBundle/Patch.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,19 @@ public function __construct(
) {
if (is_string($interface)) {
$this->interface = [$interface];
}
else {
} else {
$this->interface = $interface;
}

if (is_string($useTraits)) {
$this->useTraits = [$useTraits];
}
else {
} else {
$this->useTraits = $useTraits;
}

if (is_string($listingUseTraits)) {
$this->listingUseTraits = [$listingUseTraits];
}
else {
} else {
$this->listingUseTraits = $listingUseTraits;
}
}
Expand Down
5 changes: 3 additions & 2 deletions src/CoreShop/Bundle/PayumBundle/CoreGatewayFactoryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ class CoreGatewayFactoryBuilder extends \Payum\Bundle\PayumBundle\Builder\CoreGa
{
private ContainerInterface $container;

public function __construct(ContainerInterface $container)
{
public function __construct(
ContainerInterface $container,
) {
parent::__construct($container);

$this->container = $container;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@

class LocalizedFallbackHelper
{
/**
* @return mixed
*/
public static function useFallback(\Closure $function, bool $use = false): mixed
{
$backup = Localizedfield::getGetFallbackValues();
Expand Down

0 comments on commit 0a87677

Please sign in to comment.