Code Duplication    Length = 10-10 lines in 2 locations

phpsysinfo/includes/os/class.BSDCommon.inc.php 1 location

@@ 200-209 (lines=10) @@
197
     *
198
     * @return void
199
     */
200
    protected function hostname()
201
    {
202
        if (PSI_USE_VHOST === true) {
203
            $this->sys->setHostname(getenv('SERVER_NAME'));
204
        } else {
205
            if (CommonFunctions::executeProgram('hostname', '', $buf, PSI_DEBUG)) {
206
                $this->sys->setHostname($buf);
207
            }
208
        }
209
    }
210
211
    /**
212
     * Kernel Version

phpsysinfo/includes/os/class.HPUX.inc.php 1 location

@@ 34-43 (lines=10) @@
31
     *
32
     * @return void
33
     */
34
    private function _hostname()
35
    {
36
        if (PSI_USE_VHOST === true) {
37
            $this->sys->setHostname(getenv('SERVER_NAME'));
38
        } else {
39
            if (CommonFunctions::executeProgram('hostname', '', $ret)) {
40
                $this->sys->setHostname($ret);
41
            }
42
        }
43
    }
44
45
    /**
46
     * HP-UX Version