Code Duplication    Length = 3-3 lines in 2 locations

PHPDaemon/BoundSocket/UNIX.php 2 locations

@@ 115-117 (lines=3) @@
112
        if ($this->group === null && !empty($this->uri['pass'])) {
113
            $this->group = $this->uri['pass'];
114
        }
115
        if ($this->group === null && isset(Daemon::$config->group->value)) {
116
            $this->group = Daemon::$config->group->value;
117
        }
118
        if ($this->group !== null) {
119
            if (!@chgrp($this->path, $this->group)) {
120
                unlink($this->path);
@@ 128-130 (lines=3) @@
125
        if ($this->user === null && !empty($this->uri['user'])) {
126
            $this->user = $this->uri['user'];
127
        }
128
        if ($this->user === null && isset(Daemon::$config->user->value)) {
129
            $this->user = Daemon::$config->user->value;
130
        }
131
        if ($this->user !== null) {
132
            if (!@chown($this->path, $this->user)) {
133
                unlink($this->path);