Code Duplication    Length = 7-7 lines in 4 locations

src/FlexiPeeHP/FlexiBeeRO.php 4 locations

@@ 298-304 (lines=7) @@
295
     */
296
    public function setUp($options = [])
297
    {
298
        if (isset($options['company'])) {
299
            $this->company = $options['company'];
300
        } else {
301
            if (is_null($this->company) && defined('FLEXIBEE_COMPANY')) {
302
                $this->company = constant('FLEXIBEE_COMPANY');
303
            }
304
        }
305
        if (isset($options['url'])) {
306
            $this->url = $options['url'];
307
        } else {
@@ 305-311 (lines=7) @@
302
                $this->company = constant('FLEXIBEE_COMPANY');
303
            }
304
        }
305
        if (isset($options['url'])) {
306
            $this->url = $options['url'];
307
        } else {
308
            if (is_null($this->url) && defined('FLEXIBEE_URL')) {
309
                $this->url = constant('FLEXIBEE_URL');
310
            }
311
        }
312
        if (isset($options['user'])) {
313
            $this->user = $options['user'];
314
        } else {
@@ 312-318 (lines=7) @@
309
                $this->url = constant('FLEXIBEE_URL');
310
            }
311
        }
312
        if (isset($options['user'])) {
313
            $this->user = $options['user'];
314
        } else {
315
            if (is_null($this->user) && defined('FLEXIBEE_LOGIN')) {
316
                $this->user = constant('FLEXIBEE_LOGIN');
317
            }
318
        }
319
        if (isset($options['password'])) {
320
            $this->password = $options['password'];
321
        } else {
@@ 319-325 (lines=7) @@
316
                $this->user = constant('FLEXIBEE_LOGIN');
317
            }
318
        }
319
        if (isset($options['password'])) {
320
            $this->password = $options['password'];
321
        } else {
322
            if (is_null($this->password) && defined('FLEXIBEE_PASSWORD')) {
323
                $this->password = constant('FLEXIBEE_PASSWORD');
324
            }
325
        }
326
        if (isset($options['evidence'])) {
327
            $this->setEvidence($options['evidence']);
328
        }