@@ -142,7 +142,7 @@ public function variation($key, $user, $default = false)
142142 * Calculates the value of a feature flag, and returns an object that describes the way the
143143 * value was determined. The "reason" property in the result will also be included in
144144 * analytics events, if you are capturing detailed event data for this flag.
145- *
145+ *
146146 * @param string $key The unique key for the feature flag
147147 * @param LDUser $user The end user requesting the flag
148148 * @param mixed $default The default value of the flag
@@ -161,13 +161,14 @@ public function variationDetail($key, $user, $default = false)
161161 * @param mixed $default
162162 * @param bool $includeReasonsInEvents
163163 */
164- private function variationDetailInternal ($ key , $ user , $ default , $ includeReasonsInEvents ) {
164+ private function variationDetailInternal ($ key , $ user , $ default , $ includeReasonsInEvents )
165+ {
165166 $ default = $ this ->_get_default ($ key , $ default );
166167
167- $ errorResult = function ($ errorKind ) use ($ key , $ default ) {
168+ $ errorResult = function ($ errorKind ) use ($ key , $ default ) {
168169 return new EvaluationDetail ($ default , null , EvaluationReason::error ($ errorKind ));
169170 };
170- $ sendEvent = function ($ detail , $ flag ) use ($ key , $ user , $ default , $ includeReasonsInEvents ) {
171+ $ sendEvent = function ($ detail , $ flag ) use ($ key , $ user , $ default , $ includeReasonsInEvents ) {
171172 if ($ this ->isOffline () || !$ this ->_send_events ) {
172173 return ;
173174 }
0 commit comments