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