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