@@ -76,9 +76,9 @@ public function dataSource()
7676 * If this flag key has already been defined in this `TestData` instance, then the builder
7777 * starts with the same configuration that was last provided for this flag.
7878 *
79- * Otherwise, it starts with a new default configuration in which the flag has `True ` and
80- * `False ` variations, is `True ` for all users when targeting is turned on and
81- * `False ` otherwise, and currently has targeting turned on. You can change any of those
79+ * Otherwise, it starts with a new default configuration in which the flag has `true ` and
80+ * `false ` variations, is `true ` for all users when targeting is turned on and
81+ * `false ` otherwise, and currently has targeting turned on. You can change any of those
8282 * properties, and provide more complex behavior, using the `FlagBuilder` methods.
8383 *
8484 * Once you have set the desired configuration, pass the builder to `update`.
@@ -135,8 +135,8 @@ public function update(FlagBuilder $flagBuilder): TestData
135135/**
136136 * A builder for feature flag configurations to be used with {@see \LaunchDarkly\Integrations\TestData}.
137137 *
138- * @see TestData::flag()
139- * @see TestData::update()
138+ * @see \LaunchDarkly\Integrations\ TestData::flag()
139+ * @see \LaunchDarkly\Integrations\ TestData::update()
140140 */
141141class FlagBuilder
142142{
@@ -217,8 +217,8 @@ private function _isBooleanFlag()
217217 * This is the default for all new flags created with
218218 * `$ldclient->integrations->test_data->TestData->flag()`.
219219 *
220- * The flag will have two variations, `True ` and `False ` (in that order);
221- * it will return `False ` whenever targeting is off, and `True ` when targeting is on
220+ * The flag will have two variations, `true ` and `false ` (in that order);
221+ * it will return `false ` whenever targeting is off, and `true ` when targeting is on
222222 * if no other settings specify otherwise.
223223 *
224224 * @return FlagBuilder the flag builder
@@ -302,7 +302,7 @@ public function offVariation($variation)
302302 * If the flag was previously configured with other variations and the variation specified is a boolean,
303303 * this also changes it to a boolean flag.
304304 *
305- * @param bool|int $variation `True ` or `False ` or the desired variation index to return:
305+ * @param bool|int $variation `true ` or `false ` or the desired variation index to return:
306306 * `0` for the first, `1` for the second, etc.
307307 * @return FlagBuilder the flag builder
308308 */
@@ -371,7 +371,7 @@ public function variationForUser(string $userKey, $variation)
371371 }
372372
373373 if (!in_array ($ userKey , $ targetForVariation )) {
374- array_push ( $ targetForVariation, $ userKey) ;
374+ $ targetForVariation[] = $ userKey ;
375375 }
376376 $ this ->_targets [$ idx ] = $ targetForVariation ;
377377 } else {
@@ -397,12 +397,12 @@ public function variationForUser(string $userKey, $variation)
397397 * Changes the allowable variation values for the flag.
398398 *
399399 * The value may be of any valid JSON type. For instance, a boolean flag
400- * normally has True, False ; a string-valued flag might have
400+ * normally has true, false ; a string-valued flag might have
401401 * 'red', 'green'; etc.
402402 *
403403 * Example: A single variation
404404 *
405- * $td->flag('new-flag')->variations(True )
405+ * $td->flag('new-flag')->variations(true )
406406 *
407407 * Example: Multiple variations
408408 *
@@ -617,7 +617,7 @@ public function andMatch(string $attribute, $values)
617617 "values " => $ values ,
618618 "negate " => false ,
619619 ];
620- array_push ( $ this ->_clauses , $ newClause) ;
620+ $ this ->_clauses [] = $ newClause ;
621621 return $ this ;
622622 }
623623
@@ -646,7 +646,7 @@ public function andNotMatch(string $attribute, ...$values)
646646 "values " => $ values ,
647647 "negate " => true ,
648648 ];
649- array_push ( $ this ->_clauses , $ newClause) ;
649+ $ this ->_clauses [] = $ newClause ;
650650 return $ this ;
651651 }
652652
0 commit comments