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