Conditions | 5 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 5 |
Changes | 0 |
1 | <?php |
||
58 | 3 | public function getValue(string $key, $value, array $searchableAttributes): array |
|
59 | { |
||
60 | 3 | if (! is_object($value) && ! is_array($value) && |
|
61 | 3 | ! Str::is(self::$unsearchableAttributesKeys, $key) && |
|
62 | 3 | ! Str::is(self::$unsearchableAttributesValues, $value)) { |
|
63 | 3 | $searchableAttributes[] = $key; |
|
64 | } |
||
65 | |||
66 | 3 | return $searchableAttributes; |
|
67 | } |
||
69 |