($app_id)
| 187 | } |
| 188 | |
| 189 | public function setAppId($app_id) |
| 190 | { |
| 191 | if (!empty($app_id)) { |
| 192 | if (preg_match("/^[0-9a-fA-F]{40}$/", $app_id) != 0) { |
| 193 | log_tips(INFO, "openrasp.app_id => " . $app_id); |
| 194 | $this->app_id = $app_id; |
| 195 | } else { |
| 196 | log_tips(ERROR, "app-id option format is incorrect."); |
| 197 | } |
| 198 | } else { |
| 199 | log_tips(ERROR, "app-id option cannot be empty."); |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | public function setAppSecret($app_secret) |
| 204 | { |
no test coverage detected