Skip to content

Commit 65a8dc3

Browse files
markus-mosergithub-actions[bot]
authored andcommitted
Apply php-cs-fixer changes
1 parent d241667 commit 65a8dc3

File tree

237 files changed

+497
-1608
lines changed

Some content is hidden

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

237 files changed

+497
-1608
lines changed

src/ActionTrigger/Action/AddTrackedSegment.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
class AddTrackedSegment extends AbstractAction
2525
{
2626
const OPTION_REMOVE_OTHER_SEGMENTS_FROM_SEGMENT_GROUP = 'removeOtherSegmentsFromGroup';
27+
2728
const OPTION_INCREASE_SEGMENT_APPLICATION_COUNTER = 'increaseSegmentApplicationCounter';
29+
2830
const OPTION_CONSIDER_PROFILING_CONSENT = 'considerProfilingConsent';
2931

3032
protected $name = 'AddTrackedSegment';

src/ActionTrigger/Action/ChangeFieldValue.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
class ChangeFieldValue extends AbstractAction
2222
{
2323
const OPTION_FIELD = 'field';
24+
2425
const OPTION_VALUE = 'value';
2526

2627
public function process(

src/ActionTrigger/Action/SendMail.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@
2323
class SendMail extends AbstractAction
2424
{
2525
const OPTION_CONSIDER_PROFILING_CONSENT = 'considerProfilingConsent';
26+
2627
const OPTION_EMAIL_DOCUMENT = 'emailDoc';
28+
2729
const OPTION_SEND_TO_CUSTOMER = 'toCustomer';
30+
2831
protected $name = 'SendMail';
2932

3033
public function process(

src/ActionTrigger/Condition/ConditionDefinitionInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public function getDefinitionData();
4040
public function getOptions();
4141

4242
/**
43-
* @param array $options
4443
*
4544
* @return void
4645
*/

src/ActionTrigger/Condition/ConditionInterface.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,10 @@ interface ConditionInterface
2424
/**
2525
* ConditionInterface constructor.
2626
*
27-
* @param LoggerInterface $logger
2827
*/
2928
public function __construct(LoggerInterface $logger);
3029

3130
/**
32-
* @param ConditionDefinitionInterface $conditionDefinition
33-
* @param CustomerInterface $customer
34-
* @param RuleEnvironmentInterface $environment
3531
*
3632
* @return bool
3733
*/
@@ -42,7 +38,6 @@ public function check(
4238
);
4339

4440
/**
45-
* @param ConditionDefinitionInterface $conditionDefinition
4641
*
4742
* @return string
4843
*/
@@ -56,7 +51,6 @@ public function getDbCondition(ConditionDefinitionInterface $conditionDefinition
5651
public static function createConditionDefinitionFromEditmode($setting);
5752

5853
/**
59-
* @param ConditionDefinitionInterface $conditionDefinition
6054
*
6155
* @return array
6256
*/

src/ActionTrigger/Condition/CountActivities.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
class CountActivities extends AbstractMatchCondition
2424
{
2525
const OPTION_TYPE = 'type';
26+
2627
const OPTION_COUNT = 'count';
28+
2729
const OPTION_OPERATOR = 'operator';
2830

2931
public function check(

src/ActionTrigger/Condition/CountTargetGroupWeight.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
class CountTargetGroupWeight extends AbstractMatchCondition
2323
{
2424
const OPTION_OPERATOR = 'operator';
25+
2526
const OPTION_COUNT = 'count';
27+
2628
const OPTION_TARGET_GROUP = 'targetGroup';
2729

2830
public function check(

src/ActionTrigger/Condition/CountTrackedSegment.php

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@
2323
class CountTrackedSegment extends AbstractMatchCondition
2424
{
2525
const OPTION_OPERATOR = 'operator';
26+
2627
const OPTION_COUNT = 'count';
28+
2729
const OPTION_SEGMENTS = 'segments';
2830

29-
/**
30-
* @inheritdoc
31-
*/
3231
public function check(
3332
ConditionDefinitionInterface $conditionDefinition,
3433
CustomerInterface $customer,
@@ -60,19 +59,13 @@ public function check(
6059
return $this->matchCondition($trackedCount, $options[self::OPTION_OPERATOR], (int)$options[self::OPTION_COUNT]);
6160
}
6261

63-
/**
64-
* @inheritdoc
65-
*/
6662
public function getDbCondition(ConditionDefinitionInterface $conditionDefinition)
6763
{
6864
//return a condition that does not match any customer since this condition can only be used
6965
//when assigned target group trigger appeared
7066
return '1=2';
7167
}
7268

73-
/**
74-
* @inheritdoc
75-
*/
7669
public static function createConditionDefinitionFromEditmode($setting)
7770
{
7871
$segmentDataArray = $setting->options->segments;
@@ -89,9 +82,6 @@ public static function createConditionDefinitionFromEditmode($setting)
8982
return new \CustomerManagementFrameworkBundle\Model\ActionTrigger\ConditionDefinition($setting);
9083
}
9184

92-
/**
93-
* @inheritdoc
94-
*/
9585
public static function getDataForEditmode(ConditionDefinitionInterface $conditionDefinition)
9686
{
9787
$segmentManager = \Pimcore::getContainer()->get('cmf.segment_manager');
@@ -105,7 +95,7 @@ public static function getDataForEditmode(ConditionDefinitionInterface $conditio
10595
if ($segment) {
10696
$dataSegments[] = [
10797
$segment->getId(),
108-
$segment->getFullPath()
98+
$segment->getFullPath(),
10999
];
110100
}
111101
}

src/ActionTrigger/Condition/Customer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
class Customer extends AbstractCondition
2424
{
2525
const OPTION_CUSTOMER_ID = 'customerId';
26+
2627
const OPTION_CUSTOMER = 'customer';
28+
2729
const OPTION_NOT = 'not';
2830

2931
public function check(

src/ActionTrigger/Condition/CustomerField.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
class CustomerField extends AbstractCondition
2222
{
2323
const OPTION_FIELDNAME = 'fieldname';
24+
2425
const OPTION_FIELDVALUE = 'fieldvalue';
26+
2527
const OPTION_NOT = 'not';
2628

2729
public function check(

0 commit comments

Comments
 (0)