From e0e9d1e071217519c79bb982ad9affd711821dcb Mon Sep 17 00:00:00 2001 From: dvesh3 Date: Tue, 27 Dec 2022 17:02:17 +0000 Subject: [PATCH] Apply php-cs-fixer changes --- src/ActionTrigger/EventHandler/DefaultEventHandler.php | 3 +-- src/ActivityManager/DefaultActivityManager.php | 1 - src/ActivityStore/SqlActivityStore.php | 5 +---- src/Controller/Admin/ActivitiesController.php | 6 ++---- src/Controller/Admin/DuplicatesController.php | 3 +-- .../DefaultCustomerDuplicatesService.php | 3 +-- src/CustomerSaveManager/DefaultCustomerSaveManager.php | 1 - src/CustomerSaveValidator/DefaultCustomerSaveValidator.php | 4 +--- .../PimcoreCustomerManagementFrameworkExtension.php | 3 --- src/Event/PimcoreObjectEventListener.php | 3 +-- 10 files changed, 8 insertions(+), 24 deletions(-) diff --git a/src/ActionTrigger/EventHandler/DefaultEventHandler.php b/src/ActionTrigger/EventHandler/DefaultEventHandler.php index bcb37b69..06c84080 100644 --- a/src/ActionTrigger/EventHandler/DefaultEventHandler.php +++ b/src/ActionTrigger/EventHandler/DefaultEventHandler.php @@ -44,8 +44,7 @@ public function __construct( protected PaginatorInterface $paginator, protected CustomerProviderInterface $customerProvider, protected ActionManagerInterface $actionManager - ) - { + ) { } protected function getRulesGroupedByEvents() diff --git a/src/ActivityManager/DefaultActivityManager.php b/src/ActivityManager/DefaultActivityManager.php index 02bdf975..d3abd52f 100644 --- a/src/ActivityManager/DefaultActivityManager.php +++ b/src/ActivityManager/DefaultActivityManager.php @@ -23,7 +23,6 @@ class DefaultActivityManager implements ActivityManagerInterface { - /** * @var bool */ diff --git a/src/ActivityStore/SqlActivityStore.php b/src/ActivityStore/SqlActivityStore.php index f8ea0cf6..0543e22f 100644 --- a/src/ActivityStore/SqlActivityStore.php +++ b/src/ActivityStore/SqlActivityStore.php @@ -18,7 +18,6 @@ use CustomerManagementFrameworkBundle\Model\ActivityExternalIdInterface; use CustomerManagementFrameworkBundle\Model\ActivityInterface; use CustomerManagementFrameworkBundle\Model\ActivityStoreEntry\ActivityStoreEntryInterface; -use CustomerManagementFrameworkBundle\Model\ActivityStoreEntry\DefaultActivityStoreEntry; use CustomerManagementFrameworkBundle\Model\CustomerInterface; use CustomerManagementFrameworkBundle\Traits\LoggerAware; use Doctrine\DBAL\Connection; @@ -36,15 +35,13 @@ abstract class SqlActivityStore const ACTIVITIES_METADATA_TABLE = 'plugin_cmf_activities_metadata'; const DELETIONS_TABLE = 'plugin_cmf_deletions'; - /** * @param PaginatorInterface $paginator */ public function __construct( protected PaginatorInterface $paginator, protected ActivityStoreEntryInterface $activityStoreEntry - ) - { + ) { } public function insertActivityIntoStore(ActivityInterface $activity) diff --git a/src/Controller/Admin/ActivitiesController.php b/src/Controller/Admin/ActivitiesController.php index 0069a522..0cac965c 100644 --- a/src/Controller/Admin/ActivitiesController.php +++ b/src/Controller/Admin/ActivitiesController.php @@ -55,8 +55,7 @@ public function listAction( CustomerProviderInterface $customerProvider, ActivityStoreInterface $activityStore, DefaultActivityView $defaultActivityView - ) - { + ) { if ($customer = $customerProvider->getById($request->get('customerId'))) { $list = $activityStore->getActivityList(); $list->setCondition('customerId = ' . $customer->getId()); @@ -103,8 +102,7 @@ public function detailAction( Request $request, ActivityViewInterface $activityView, ActivityStoreInterface $activityStore - ) - { + ) { $activity = $activityStore->getEntryById($request->get('activityId')); return $this->render( diff --git a/src/Controller/Admin/DuplicatesController.php b/src/Controller/Admin/DuplicatesController.php index dc2eaf6a..e5ff2b19 100644 --- a/src/Controller/Admin/DuplicatesController.php +++ b/src/Controller/Admin/DuplicatesController.php @@ -49,8 +49,7 @@ public function listAction( Request $request, DuplicatesIndexInterface $duplicatesIndex, DefaultCustomerDuplicatesView $duplicatesView - ) - { + ) { // fetch all filters $filters = $request->get('filter', []); // check if filters exist diff --git a/src/CustomerDuplicatesService/DefaultCustomerDuplicatesService.php b/src/CustomerDuplicatesService/DefaultCustomerDuplicatesService.php index 2c4a729e..7bfc13c8 100644 --- a/src/CustomerDuplicatesService/DefaultCustomerDuplicatesService.php +++ b/src/CustomerDuplicatesService/DefaultCustomerDuplicatesService.php @@ -31,8 +31,7 @@ public function __construct( private array $duplicateCheckFields = [], protected array $duplicateCheckTrimmedFields = [], protected array $matchedDuplicateFields = [], - ) - { + ) { } /** diff --git a/src/CustomerSaveManager/DefaultCustomerSaveManager.php b/src/CustomerSaveManager/DefaultCustomerSaveManager.php index e28d7c8e..9a04b3d9 100644 --- a/src/CustomerSaveManager/DefaultCustomerSaveManager.php +++ b/src/CustomerSaveManager/DefaultCustomerSaveManager.php @@ -225,7 +225,6 @@ public function validateOnSave(CustomerInterface $customer, $withDuplicatesCheck return false; } - return $this->customerSaveValidator->validate($customer, $withDuplicatesCheck); } diff --git a/src/CustomerSaveValidator/DefaultCustomerSaveValidator.php b/src/CustomerSaveValidator/DefaultCustomerSaveValidator.php index f52ccaad..027598cf 100644 --- a/src/CustomerSaveValidator/DefaultCustomerSaveValidator.php +++ b/src/CustomerSaveValidator/DefaultCustomerSaveValidator.php @@ -22,7 +22,6 @@ class DefaultCustomerSaveValidator implements CustomerSaveValidatorInterface { - /** * DefaultCustomerSaveValidator constructor. * @@ -31,8 +30,7 @@ public function __construct( private array $requiredFields, private bool $checkForDuplicates, protected CustomerDuplicatesServiceInterface $customerDuplicatesService - ) - { + ) { } /** diff --git a/src/DependencyInjection/PimcoreCustomerManagementFrameworkExtension.php b/src/DependencyInjection/PimcoreCustomerManagementFrameworkExtension.php index 10e8791d..e3676c4c 100644 --- a/src/DependencyInjection/PimcoreCustomerManagementFrameworkExtension.php +++ b/src/DependencyInjection/PimcoreCustomerManagementFrameworkExtension.php @@ -17,14 +17,11 @@ namespace CustomerManagementFrameworkBundle\DependencyInjection; -use CustomerManagementFrameworkBundle\CustomerDuplicatesService\CustomerDuplicatesServiceInterface; use CustomerManagementFrameworkBundle\CustomerMerger\CustomerMergerInterface; use CustomerManagementFrameworkBundle\CustomerProvider\CustomerProviderInterface; use CustomerManagementFrameworkBundle\CustomerProvider\ObjectNamingScheme\ObjectNamingSchemeInterface; use CustomerManagementFrameworkBundle\CustomerSaveManager\CustomerSaveManagerInterface; use CustomerManagementFrameworkBundle\CustomerSaveValidator\CustomerSaveValidatorInterface; -use CustomerManagementFrameworkBundle\DuplicatesIndex\DuplicatesIndexInterface; -use CustomerManagementFrameworkBundle\Newsletter\Queue\NewsletterQueueInterface; use CustomerManagementFrameworkBundle\SegmentManager\SegmentManagerInterface; use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\ContainerBuilder; diff --git a/src/Event/PimcoreObjectEventListener.php b/src/Event/PimcoreObjectEventListener.php index 55b16278..1008f92e 100644 --- a/src/Event/PimcoreObjectEventListener.php +++ b/src/Event/PimcoreObjectEventListener.php @@ -35,8 +35,7 @@ public function __construct( protected SegmentManagerInterface $segmentManager, protected ActivityManagerInterface $activityManager, protected ActivityStoreInterface $activityStore - ) - { + ) { } public function onPreUpdate(ElementEventInterface $e)