Skip to content

Commit 67d14ea

Browse files
committed
code cleanup
1 parent d24ac0c commit 67d14ea

File tree

75 files changed

+225
-239
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+225
-239
lines changed

composer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
"nyholm/psr7": "^1.8",
2424
"phpspec/phpspec": "^7.0",
2525
"phpunit/phpunit": "^9.5",
26-
"polishsymfonycommunity/symfony-mocker-container": "^1.0",
27-
"sylius/mailer-bundle": "^1.8 || ^2.0@beta",
2826
"sylius/sylius-rector": "^2.0",
2927
"sylius-labs/coding-standard": "^4.4",
3028
"sylius-labs/suite-tags-extension": "~0.2",
@@ -34,7 +32,7 @@
3432
"symfony/http-client": "^6.4 || ^7.1",
3533
"symfony/intl": "^6.4 || ^7.1",
3634
"symfony/web-profiler-bundle": "^6.4 || ^7.1",
37-
"lchrusciel/api-test-case": "^4.1 || ^5.0",
35+
"lchrusciel/api-test-case": "^5.0",
3836
"robertfausk/behat-panther-extension": "^1.1",
3937
"symfony/webpack-encore-bundle": "^2.1",
4038
"phpstan/phpstan-doctrine": "^1.5",

src/Command/RemoveGuestWishlistsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
)]
2727
final class RemoveGuestWishlistsCommand extends Command
2828
{
29-
public function __construct(private WishlistRepositoryInterface $wishlistRepository)
29+
public function __construct(private readonly WishlistRepositoryInterface $wishlistRepository)
3030
{
3131
parent::__construct();
3232
}

src/Command/Wishlist/AddProductToSelectedWishlist.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
final class AddProductToSelectedWishlist implements AddProductToSelectedWishlistInterface
2020
{
2121
public function __construct(
22-
private WishlistInterface $wishlist,
23-
private ProductInterface $product,
22+
private readonly WishlistInterface $wishlist,
23+
private readonly ProductInterface $product,
2424
) {
2525
}
2626

src/Command/Wishlist/AddProductsToCart.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
use Doctrine\Common\Collections\Collection;
1717

18-
final class AddProductsToCart implements AddProductsToCartInterface
18+
final readonly class AddProductsToCart implements AddProductsToCartInterface
1919
{
20-
public function __construct(private readonly Collection $wishlistProducts)
20+
public function __construct(private Collection $wishlistProducts)
2121
{
2222
}
2323

src/Command/Wishlist/AddSelectedProductsToCart.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
use Doctrine\Common\Collections\Collection;
1717

18-
final class AddSelectedProductsToCart implements AddSelectedProductsToCartInterface
18+
final readonly class AddSelectedProductsToCart implements AddSelectedProductsToCartInterface
1919
{
20-
public function __construct(private readonly Collection $wishlistProducts)
20+
public function __construct(private Collection $wishlistProducts)
2121
{
2222
}
2323

src/Command/Wishlist/AddWishlistToUser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
final class AddWishlistToUser implements WishlistSyncCommandInterface
2020
{
2121
public function __construct(
22-
private WishlistInterface $wishlist,
23-
private ShopUserInterface $shopUser,
22+
private readonly WishlistInterface $wishlist,
23+
private readonly ShopUserInterface $shopUser,
2424
) {
2525
}
2626

src/Command/Wishlist/CopySelectedProductsToOtherWishlist.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
final class CopySelectedProductsToOtherWishlist implements CopySelectedProductsToOtherWishlistInterface
1919
{
2020
public function __construct(
21-
private Collection $wishlistProducts,
22-
private int $destinedWishlistId,
21+
private readonly Collection $wishlistProducts,
22+
private readonly int $destinedWishlistId,
2323
) {
2424
}
2525

src/Command/Wishlist/ExportSelectedProductsFromWishlistToPdf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
final class ExportSelectedProductsFromWishlistToPdf implements ExportSelectedProductsFromWishlistToPdfInterface
1919
{
20-
public function __construct(private Collection $wishlistProducts)
20+
public function __construct(private readonly Collection $wishlistProducts)
2121
{
2222
}
2323

src/Command/Wishlist/ExportWishlistToCsv.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
final class ExportWishlistToCsv implements WishlistSyncCommandInterface
1919
{
2020
public function __construct(
21-
private Collection $wishlistProducts,
22-
private \SplFileObject $file,
21+
private readonly Collection $wishlistProducts,
22+
private readonly \SplFileObject $file,
2323
) {
2424
}
2525

src/Command/Wishlist/ImportWishlistFromCsv.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
final class ImportWishlistFromCsv implements WishlistSyncCommandInterface
1919
{
2020
public function __construct(
21-
private \SplFileInfo $file,
22-
private Request $request,
23-
private int $wishlistId,
21+
private readonly \SplFileInfo $file,
22+
private readonly Request $request,
23+
private readonly int $wishlistId,
2424
) {
2525
}
2626

0 commit comments

Comments
 (0)