Code Duplication    Length = 6-6 lines in 3 locations

PHPDaemon/Applications/CGIRequest.php 3 locations

@@ 47-52 (lines=6) @@
44
            }
45
        }
46
47
        if (isset($this->attrs->server['CHROOT']) && $this->appInstance->config->allowoverridechroot->value) {
48
            $this->proc->chroot = $this->attrs->server['CHROOT'];
49
        }
50
51
        if (isset($this->attrs->server['SETUSER']) && $this->appInstance->config->allowoverrideuser->value) {
52
            $this->proc->setUser = $this->attrs->server['SETUSER'];
53
        }
54
55
        if (isset($this->attrs->server['SETGROUP']) && $this->appInstance->config->allowoverridegroup->value) {
@@ 51-56 (lines=6) @@
48
            $this->proc->chroot = $this->attrs->server['CHROOT'];
49
        }
50
51
        if (isset($this->attrs->server['SETUSER']) && $this->appInstance->config->allowoverrideuser->value) {
52
            $this->proc->setUser = $this->attrs->server['SETUSER'];
53
        }
54
55
        if (isset($this->attrs->server['SETGROUP']) && $this->appInstance->config->allowoverridegroup->value) {
56
            $this->proc->setGroup = $this->attrs->server['SETGROUP'];
57
        }
58
59
        if (isset($this->attrs->server['CWD']) && $this->appInstance->config->allowoverridecwd->value) {
@@ 55-60 (lines=6) @@
52
            $this->proc->setUser = $this->attrs->server['SETUSER'];
53
        }
54
55
        if (isset($this->attrs->server['SETGROUP']) && $this->appInstance->config->allowoverridegroup->value) {
56
            $this->proc->setGroup = $this->attrs->server['SETGROUP'];
57
        }
58
59
        if (isset($this->attrs->server['CWD']) && $this->appInstance->config->allowoverridecwd->value) {
60
            $this->proc->cwd = $this->attrs->server['CWD'];
61
        } elseif ($this->appInstance->config->cwd->value !== null) {
62
            $this->proc->cwd = $this->appInstance->config->cwd->value;
63
        } else {