Skip to content

Commit 1977097

Browse files
committed
linter
1 parent 5d8e2b0 commit 1977097

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/LaunchDarkly/EvaluationDetail.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct($value, $variationIndex, $reason = null)
2727

2828
/**
2929
* Returns the value of the flag variation for the user.
30-
*
30+
*
3131
* @return mixed
3232
*/
3333
public function getValue()
@@ -38,7 +38,7 @@ public function getValue()
3838
/**
3939
* Returns the index of the flag variation for the user, e.g. 0 for the first variation -
4040
* or null if it was the default value.
41-
*
41+
*
4242
* @return int | null
4343
*/
4444
public function getVariationIndex()
@@ -48,7 +48,7 @@ public function getVariationIndex()
4848

4949
/**
5050
* Returns information about how the flag value was calculated.
51-
*
51+
*
5252
* @return EvaluationReason
5353
*/
5454
public function getReason()
@@ -58,7 +58,7 @@ public function getReason()
5858

5959
/**
6060
* Returns true if the flag evaluated to the default value, rather than one of its variations.
61-
*
61+
*
6262
* @return bool
6363
*/
6464
public function isDefaultValue()

src/LaunchDarkly/LDClient.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)