Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dvesh3 authored and github-actions[bot] committed Dec 27, 2022
1 parent c32f673 commit e0e9d1e
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 24 deletions.
3 changes: 1 addition & 2 deletions src/ActionTrigger/EventHandler/DefaultEventHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ public function __construct(
protected PaginatorInterface $paginator,
protected CustomerProviderInterface $customerProvider,
protected ActionManagerInterface $actionManager
)
{
) {
}

protected function getRulesGroupedByEvents()
Expand Down
1 change: 0 additions & 1 deletion src/ActivityManager/DefaultActivityManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

class DefaultActivityManager implements ActivityManagerInterface
{

/**
* @var bool
*/
Expand Down
5 changes: 1 addition & 4 deletions src/ActivityStore/SqlActivityStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
Expand Down
6 changes: 2 additions & 4 deletions src/Controller/Admin/ActivitiesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -103,8 +102,7 @@ public function detailAction(
Request $request,
ActivityViewInterface $activityView,
ActivityStoreInterface $activityStore
)
{
) {
$activity = $activityStore->getEntryById($request->get('activityId'));

return $this->render(
Expand Down
3 changes: 1 addition & 2 deletions src/Controller/Admin/DuplicatesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ public function listAction(
Request $request,
DuplicatesIndexInterface $duplicatesIndex,
DefaultCustomerDuplicatesView $duplicatesView
)
{
) {
// fetch all filters
$filters = $request->get('filter', []);
// check if filters exist
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ public function __construct(
private array $duplicateCheckFields = [],
protected array $duplicateCheckTrimmedFields = [],
protected array $matchedDuplicateFields = [],
)
{
) {
}

/**
Expand Down
1 change: 0 additions & 1 deletion src/CustomerSaveManager/DefaultCustomerSaveManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ public function validateOnSave(CustomerInterface $customer, $withDuplicatesCheck
return false;
}


return $this->customerSaveValidator->validate($customer, $withDuplicatesCheck);
}

Expand Down
4 changes: 1 addition & 3 deletions src/CustomerSaveValidator/DefaultCustomerSaveValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

class DefaultCustomerSaveValidator implements CustomerSaveValidatorInterface
{

/**
* DefaultCustomerSaveValidator constructor.
*
Expand All @@ -31,8 +30,7 @@ public function __construct(
private array $requiredFields,
private bool $checkForDuplicates,
protected CustomerDuplicatesServiceInterface $customerDuplicatesService
)
{
) {
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions src/Event/PimcoreObjectEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ public function __construct(
protected SegmentManagerInterface $segmentManager,
protected ActivityManagerInterface $activityManager,
protected ActivityStoreInterface $activityStore
)
{
) {
}

public function onPreUpdate(ElementEventInterface $e)
Expand Down

0 comments on commit e0e9d1e

Please sign in to comment.