@@ -8,7 +8,7 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace InnoCraft\Experiments\Filters; |
| 10 | 10 | |
| 11 | -class NeverTrigger implements FilterInterface { |
|
| 11 | +class NeverTrigger implements FilterInterface { |
|
| 12 | 12 | |
| 13 | 13 | public function shouldTrigger() |
| 14 | 14 | { |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | use InnoCraft\Experiments\Storage\StorageInterface; |
| 12 | 12 | use InvalidArgumentException; |
| 13 | 13 | |
| 14 | -class IsInTestGroup implements FilterInterface { |
|
| 14 | +class IsInTestGroup implements FilterInterface { |
|
| 15 | 15 | |
| 16 | 16 | const MAX_PERCENTAGE = 100; |
| 17 | 17 | const STORAGE_NAMESPACE = 'isInTestGroup'; |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | use InvalidArgumentException; |
| 12 | 12 | |
| 13 | -class CustomFilter implements FilterInterface { |
|
| 13 | +class CustomFilter implements FilterInterface { |
|
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | 16 | * @var \Callable |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | use DateTimeInterface; |
| 12 | 12 | use DateTime; |
| 13 | 13 | |
| 14 | -class ScheduledDate implements FilterInterface { |
|
| 14 | +class ScheduledDate implements FilterInterface { |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * @var DateTimeInterface |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace InnoCraft\Experiments\Filters; |
| 10 | 10 | |
| 11 | -class AlwaysTrigger implements FilterInterface { |
|
| 11 | +class AlwaysTrigger implements FilterInterface { |
|
| 12 | 12 | |
| 13 | 13 | public function shouldTrigger() |
| 14 | 14 | { |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | 'startDate' => '2017-01-02 03:04:05', // optional, only activate the experiment after this date |
| 24 | 24 | 'endDate' => '2019-01-02 03:04:05', // optional, only activate the experiment before this date |
| 25 | 25 | 'currentDate' => '2018-01-02 03:04:05', // optional, defaults to "now", |
| 26 | - 'customFilter' => function () { // optional, a callable to further restrict with custom logic for who the experiment will be activated |
|
| 26 | + 'customFilter' => function() { // optional, a callable to further restrict with custom logic for who the experiment will be activated |
|
| 27 | 27 | return true; // eg return UserCountry::GetCountry() === 'de'; |
| 28 | 28 | } |
| 29 | 29 | ]; |