Skip to content

Commit ea3fa48

Browse files
committed
nits
1 parent 8a0264f commit ea3fa48

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/Optimizely/DecisionService/DecisionService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ public function getVariationForFeatureRollout(ProjectConfigInterface $projectCon
330330
break;
331331
}
332332
// Evaluate Everyone Else Rule / Last Rule now
333-
$rolloutRule = $rolloutRules[sizeof($rolloutRules)-1];
333+
$rolloutRule = $rolloutRules[sizeof($rolloutRules) - 1];
334334

335335
// Evaluate if user meets the audience condition of Everyone Else Rule / Last Rule now
336336
if (!Validator::doesUserMeetAudienceConditions($projectConfig, $rolloutRule, $userAttributes, $this->_logger, 'Optimizely\Enums\RolloutAudienceEvaluationLogs', 'Everyone Else')) {

tests/UtilsTests/ValidatorTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public function testAreEventTagsValidInvalidEventTags()
188188
}
189189

190190
// test that Audience evaluation proceeds if provided attributes are empty or null.
191-
public function testdoesUserMeetAudienceConditionsAudienceUsedInExperimentNoAttributesProvided()
191+
public function testDoesUserMeetAudienceConditionsAudienceUsedInExperimentNoAttributesProvided()
192192
{
193193
$configMock = $this->getMockBuilder(DatafileProjectConfig::class)
194194
->setConstructorArgs(array(DATAFILE, $this->loggerMock, new NoOpErrorHandler()))
@@ -231,7 +231,7 @@ public function testdoesUserMeetAudienceConditionsAudienceUsedInExperimentNoAttr
231231
);
232232
}
233233

234-
public function testdoesUserMeetAudienceConditionsAudienceMatch()
234+
public function testDoesUserMeetAudienceConditionsAudienceMatch()
235235
{
236236
$config = new DatafileProjectConfig(DATAFILE, new NoOpLogger(), new NoOpErrorHandler());
237237
$this->assertTrue(
@@ -244,7 +244,7 @@ public function testdoesUserMeetAudienceConditionsAudienceMatch()
244244
);
245245
}
246246

247-
public function testdoesUserMeetAudienceConditionsAudienceNoMatch()
247+
public function testDoesUserMeetAudienceConditionsAudienceNoMatch()
248248
{
249249
$config = new DatafileProjectConfig(DATAFILE, new NoOpLogger(), new NoOpErrorHandler());
250250
$this->assertFalse(
@@ -258,7 +258,7 @@ public function testdoesUserMeetAudienceConditionsAudienceNoMatch()
258258
}
259259

260260
// test that doesUserMeetAudienceConditions returns true when no audience is attached to experiment.
261-
public function testdoesUserMeetAudienceConditionsNoAudienceUsedInExperiment()
261+
public function testDoesUserMeetAudienceConditionsNoAudienceUsedInExperiment()
262262
{
263263
$config = new DatafileProjectConfig(DATAFILE, null, null);
264264
$experiment = $config->getExperimentFromKey('test_experiment');
@@ -302,7 +302,7 @@ public function testdoesUserMeetAudienceConditionsNoAudienceUsedInExperiment()
302302

303303
// test that doesUserMeetAudienceConditions returns false when some audience is attached to experiment
304304
// and user attributes do not match.
305-
public function testdoesUserMeetAudienceConditionsSomeAudienceUsedInExperiment()
305+
public function testDoesUserMeetAudienceConditionsSomeAudienceUsedInExperiment()
306306
{
307307
$config = new DatafileProjectConfig(DATAFILE, null, null);
308308
$experiment = $config->getExperimentFromKey('test_experiment');
@@ -336,7 +336,7 @@ public function testdoesUserMeetAudienceConditionsSomeAudienceUsedInExperiment()
336336
}
337337

338338
// test that doesUserMeetAudienceConditions evaluates audience when audienceConditions is an audience leaf node.
339-
public function testdoesUserMeetAudienceConditionsWithAudienceConditionsSetToAudienceIdString()
339+
public function testDoesUserMeetAudienceConditionsWithAudienceConditionsSetToAudienceIdString()
340340
{
341341
$config = new DatafileProjectConfig(DATAFILE, null, null);
342342
$experiment = $config->getExperimentFromKey('test_experiment');
@@ -355,7 +355,7 @@ public function testdoesUserMeetAudienceConditionsWithAudienceConditionsSetToAud
355355
);
356356
}
357357

358-
public function testdoesUserMeetAudienceConditionsWithUnknownAudienceId()
358+
public function testDoesUserMeetAudienceConditionsWithUnknownAudienceId()
359359
{
360360
$config = new DatafileProjectConfig(DATAFILE, $this->loggerMock, new NoOpErrorHandler());
361361
$experiment = $config->getExperimentFromKey('test_experiment');
@@ -376,7 +376,7 @@ public function testdoesUserMeetAudienceConditionsWithUnknownAudienceId()
376376
}
377377

378378
// test that doesUserMeetAudienceConditions evaluates simple audience.
379-
public function testdoesUserMeetAudienceConditionsWithSimpleAudience()
379+
public function testDoesUserMeetAudienceConditionsWithSimpleAudience()
380380
{
381381
$config = new DatafileProjectConfig(DATAFILE, null, null);
382382
$configMock = $this->getMockBuilder(DatafileProjectConfig::class)
@@ -409,7 +409,7 @@ public function testdoesUserMeetAudienceConditionsWithSimpleAudience()
409409
}
410410

411411
// test that doesUserMeetAudienceConditions evaluates complex audience.
412-
public function testdoesUserMeetAudienceConditionsWithComplexAudience()
412+
public function testDoesUserMeetAudienceConditionsWithComplexAudience()
413413
{
414414
$config = new DatafileProjectConfig(DATAFILE_WITH_TYPED_AUDIENCES, null, null);
415415
$configMock = $this->getMockBuilder(DatafileProjectConfig::class)

0 commit comments

Comments
 (0)