Skip to content

Commit

Permalink
Minor clean ups
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed Nov 19, 2024
1 parent 689531e commit c048b53
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 17 deletions.
6 changes: 2 additions & 4 deletions src/Email/InvoiceEmailSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ public function __construct(
) {
}

public function sendInvoiceEmail(
InvoiceInterface $invoice,
string $customerEmail,
): void {
public function sendInvoiceEmail(InvoiceInterface $invoice, string $customerEmail): void
{
if (!$this->hasEnabledPdfFileGenerator) {
$this->emailSender->send(Emails::INVOICE_GENERATED, [$customerEmail], ['invoice' => $invoice]);

Expand Down
2 changes: 1 addition & 1 deletion src/EventProducer/OrderPlacedProducer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Sylius\InvoicingPlugin\EventProducer;

use Doctrine\ORM\Event\LifecycleEventArgs;
use Doctrine\Persistence\Event\LifecycleEventArgs;
use Sylius\Component\Core\Model\OrderInterface;
use Sylius\Component\Core\OrderCheckoutStates;
use Sylius\InvoicingPlugin\Event\OrderPlaced;
Expand Down
6 changes: 0 additions & 6 deletions src/Fixture/Factory/ShopBillingDataExampleFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ public function __construct(
$this->configureOptions($this->optionsResolver);
}

/**
* @inheritdoc
*/
public function create(array $options = []): ChannelInterface
{
$options = $this->optionsResolver->resolve($options);
Expand All @@ -62,9 +59,6 @@ public function create(array $options = []): ChannelInterface
return $channel;
}

/**
* @inheritdoc
*/
protected function configureOptions(OptionsResolver $resolver): void
{
$resolver
Expand Down
6 changes: 0 additions & 6 deletions src/Fixture/ShopBillingDataFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,11 @@

final class ShopBillingDataFixture extends AbstractResourceFixture
{
/**
* @inheritdoc
*/
public function getName(): string
{
return 'shop_billing_data';
}

/**
* @inheritdoc
*/
protected function configureResourceNode(ArrayNodeDefinition $resourceNode): void
{
$resourceNode
Expand Down

0 comments on commit c048b53

Please sign in to comment.