| @@ 281-287 (lines=7) @@ | ||
| 278 | */ |
|
| 279 | public function setUp($options = []) |
|
| 280 | { |
|
| 281 | if (isset($options['company'])) { |
|
| 282 | $this->company = $options['company']; |
|
| 283 | } else { |
|
| 284 | if (is_null($this->company) && defined('FLEXIBEE_COMPANY')) { |
|
| 285 | $this->company = constant('FLEXIBEE_COMPANY'); |
|
| 286 | } |
|
| 287 | } |
|
| 288 | if (isset($options['url'])) { |
|
| 289 | $this->url = $options['url']; |
|
| 290 | } else { |
|
| @@ 288-294 (lines=7) @@ | ||
| 285 | $this->company = constant('FLEXIBEE_COMPANY'); |
|
| 286 | } |
|
| 287 | } |
|
| 288 | if (isset($options['url'])) { |
|
| 289 | $this->url = $options['url']; |
|
| 290 | } else { |
|
| 291 | if (is_null($this->url) && defined('FLEXIBEE_URL')) { |
|
| 292 | $this->url = constant('FLEXIBEE_URL'); |
|
| 293 | } |
|
| 294 | } |
|
| 295 | if (isset($options['user'])) { |
|
| 296 | $this->user = $options['user']; |
|
| 297 | } else { |
|
| @@ 295-301 (lines=7) @@ | ||
| 292 | $this->url = constant('FLEXIBEE_URL'); |
|
| 293 | } |
|
| 294 | } |
|
| 295 | if (isset($options['user'])) { |
|
| 296 | $this->user = $options['user']; |
|
| 297 | } else { |
|
| 298 | if (is_null($this->user) && defined('FLEXIBEE_LOGIN')) { |
|
| 299 | $this->user = constant('FLEXIBEE_LOGIN'); |
|
| 300 | } |
|
| 301 | } |
|
| 302 | if (isset($options['password'])) { |
|
| 303 | $this->password = $options['password']; |
|
| 304 | } else { |
|
| @@ 302-308 (lines=7) @@ | ||
| 299 | $this->user = constant('FLEXIBEE_LOGIN'); |
|
| 300 | } |
|
| 301 | } |
|
| 302 | if (isset($options['password'])) { |
|
| 303 | $this->password = $options['password']; |
|
| 304 | } else { |
|
| 305 | if (is_null($this->password) && defined('FLEXIBEE_PASSWORD')) { |
|
| 306 | $this->password = constant('FLEXIBEE_PASSWORD'); |
|
| 307 | } |
|
| 308 | } |
|
| 309 | if (isset($options['evidence'])) { |
|
| 310 | $this->setEvidence($options['evidence']); |
|
| 311 | } |
|