|
@@ 90-92 (lines=3) @@
|
| 87 |
|
$params['api.chunk.start'] = intval($options['page']) * $params['api.chunk.size']; |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
if ( ! empty($searchType) && ! in_array($searchType, ["domain", "owner", "user", "ip", "package"])) { |
| 91 |
|
throw new \InvalidArgumentException("`searchType` must be one of these - domain, owner, user, ip, package"); |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
if ( ! empty($options['searchmethod']) && ! in_array($options['searchmethod'], ["exact", "regex"])) { |
| 95 |
|
throw new \InvalidArgumentException("options[searchmethod] must be either `regex` or `exact`"); |
|
@@ 936-938 (lines=3) @@
|
| 933 |
|
$params['search'] = $searchKeyword; |
| 934 |
|
} |
| 935 |
|
|
| 936 |
|
if(!empty($searchType) && !in_array($searchType, ["domain", "user", "owner", "ip", "package"])){ |
| 937 |
|
throw new ClientExceptions("searchType must be one of domain, user, owner, ip and package"); |
| 938 |
|
} |
| 939 |
|
|
| 940 |
|
if(!empty($searchType)){ |
| 941 |
|
$params['searchtype'] = $searchType; |