Code Duplication    Length = 5-6 lines in 2 locations

src/Drest/Configuration.php 2 locations

@@ 444-449 (lines=6) @@
441
    {
442
        if (is_null($path)) {
443
            $this->_attributes['pathsToConfigFiles'] = [];
444
        } else {
445
            if (($offset = array_search($path, $this->_attributes['pathsToConfigFiles'])) !== false)
446
            {
447
                unset($this->_attributes['pathsToConfigFiles'][$offset]);
448
            }
449
        }
450
    }
451
452
    /**
@@ 485-489 (lines=5) @@
482
        if (!is_string($basePath)) {
483
            return false;
484
        }
485
        if (($offset = array_search($basePath, $this->_attributes['routeBasePaths'])) !== false) {
486
            unset($this->_attributes['routeBasePaths'][$offset]);
487
488
            return true;
489
        }
490
491
        return false;
492
    }