Skip to content

Commit

Permalink
cs-fixer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Oksydan committed Dec 20, 2023
1 parent c111a55 commit 8b22576
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 16 deletions.
3 changes: 0 additions & 3 deletions src/Form/Modifier/ProductFormModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Oksydan\IsFavoriteProducts\Form\Type\ProductFavoriteType;
use Oksydan\IsFavoriteProducts\View\Admin\RenderAdminProductFavoriteStats;
use PrestaShopBundle\Form\FormBuilderModifier;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;

class ProductFormModifier
Expand Down Expand Up @@ -41,7 +40,6 @@ public function modify(
int $productId,
FormBuilderInterface $productFormBuilder
): void {

$this->formBuilderModifier->addAfter(
$productFormBuilder,
'options',
Expand All @@ -55,6 +53,5 @@ public function modify(
],
]
);

}
}
8 changes: 3 additions & 5 deletions src/Form/Type/ProductFavoriteType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@

namespace Oksydan\IsFavoriteProducts\Form\Type;

use PrestaShopBundle\Form\Admin\Type\TranslatorAwareType;
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
use PrestaShopBundle\Form\Admin\Type\CustomContentType;
use Symfony\Contracts\Translation\TranslatorInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use PrestaShopBundle\Form\Admin\Type\TranslatorAwareType;
use Symfony\Component\Form\FormBuilderInterface;

use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Contracts\Translation\TranslatorInterface;

class ProductFavoriteType extends TranslatorAwareType
{
Expand Down
4 changes: 1 addition & 3 deletions src/Hook/ActionProductFormBuilderModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

class ActionProductFormBuilderModifier extends AbstractHook
{

/**
* @var ProductFormModifier
*/
Expand All @@ -26,8 +25,7 @@ public function __construct(
\Context $context,
FavoriteProductService $favoriteProductService,
ProductFormModifier $productFormModifier
)
{
) {
parent::__construct($module, $context, $favoriteProductService);
$this->productFormModifier = $productFormModifier;
}
Expand Down
5 changes: 1 addition & 4 deletions src/Hook/DisplayAdminProductsExtra.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@

namespace Oksydan\IsFavoriteProducts\Hook;

use Oksydan\IsFavoriteProducts\Form\Modifier\ProductFormModifier;
use Oksydan\IsFavoriteProducts\Services\FavoriteProductService;
use Oksydan\IsFavoriteProducts\View\Admin\RenderAdminProductFavoriteStats;

class DisplayAdminProductsExtra extends AbstractHook
{

/**
* @var RenderAdminProductFavoriteStats
*/
Expand All @@ -27,8 +25,7 @@ public function __construct(
\Context $context,
FavoriteProductService $favoriteProductService,
RenderAdminProductFavoriteStats $renderAdminProductFavoriteStats
)
{
) {
parent::__construct($module, $context, $favoriteProductService);
$this->renderAdminProductFavoriteStats = $renderAdminProductFavoriteStats;
}
Expand Down
1 change: 0 additions & 1 deletion src/Repository/FavoriteProductLegacyRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ public function getCountFavoriteProductsForListing(
return (int) $qb->execute()->fetchOne();
}


public function getFavoriteStatsForProduct(int $idProduct, $idShop = null): array
{
$qb = $this->connection->createQueryBuilder();
Expand Down

0 comments on commit 8b22576

Please sign in to comment.