Skip to content

Commit 0ce7fab

Browse files
committed
fixed build
1 parent abdf16a commit 0ce7fab

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/SplitIO/Sdk/Validator/InputValidator.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ class InputValidator
2323
*/
2424
public static function validString($value, $name, $nameType, $operation)
2525
{
26-
if (self::checkIsNull($value, $name, $nameType, $operation) or self::checkIsNotString($value, $name, $nameType, $operation)
26+
if (self::checkIsNull($value, $name, $nameType, $operation)
27+
or self::checkIsNotString($value, $name, $nameType, $operation)
2728
or self::checkIsEmpty($value, $name, $nameType, $operation)) {
2829
return false;
2930
}
@@ -118,7 +119,8 @@ public static function validateKey($key, $operation)
118119
. ' key must be a non-empty string.');
119120
return null;
120121
}
121-
if (self::checkIsEmpty($strKey, "key", "key", $operation) or self::checkNotProperLength($strKey, "key", $operation)) {
122+
if (self::checkIsEmpty($strKey, "key", "key", $operation)
123+
or self::checkNotProperLength($strKey, "key", $operation)) {
122124
return null;
123125
}
124126

@@ -252,7 +254,9 @@ function ($featureFlagName) use ($operation) {
252254
array_filter(
253255
$featureFlagNames,
254256
function ($featureFlagName) use ($operation) {
255-
return InputValidator::validString($featureFlagName, 'featureFlagName', 'flag name', $operation);
257+
return InputValidator::validString(
258+
$featureFlagName, 'featureFlagName', 'flag name', $operation
259+
);
256260
}
257261
)
258262
)

0 commit comments

Comments
 (0)