-
Notifications
You must be signed in to change notification settings - Fork 30
feat: OptimizelyConfigService #188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1 similar comment
@aliabbasrizvi It would be great if you can spare some time to review this. |
Reviewing this now. |
} | ||
|
||
$featureKey = $feature->getKey(); | ||
$this->featKeyOptlyVariableKeyVariableMap[ $featureKey] = $variablesKeyMap; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove space in front of $featureKey
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - a tiny format issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Just rename private variables in all new classes to have leasing underscore.
Good to merge after that.
/** | ||
* @var string Revision of the config. | ||
*/ | ||
private $revision; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel there should be a leading underscore in all private variables names
/** | ||
* @var array List of experiments in config. | ||
*/ | ||
private $experiments; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same feedback as above
@aliabbasrizvi Thanks for reviewing. The latest PSR standard for PHP discourages to put a leading underscore before private/protected properties.
https://www.php-fig.org/psr/psr-12/ and so did the previous PSR2 standard https://www.php-fig.org/psr/psr-2/ |
Thanks for pointing that out @oakbani |
Going to merge this. |
Summary
Adds support for OptimizelyConfigService.
Test plan