| Conditions | 5 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 58 | 3 | public static function exist(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 | 3 | return $searchableAttributes; |
|
| 66 | } |
||
| 67 | |||
| 68 | 3 | return $searchableAttributes; |
|
| 69 | } |
||
| 71 |