MCPcopy Create free account
hub / github.com/baidu/openrasp / setAppId

Method setAppId

rasp-install/php/install.php:189–201  ·  view source on GitHub ↗
($app_id)

Source from the content-addressed store, hash-verified

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 {

Callers 1

install.phpFile · 0.45

Calls 2

log_tipsFunction · 0.85
emptyFunction · 0.50

Tested by

no test coverage detected