Code Duplication    Length = 3-3 lines in 3 locations

phpsysinfo/includes/os/class.SunOS.inc.php 3 locations

@@ 74-76 (lines=3) @@
71
    private function _kernel()
72
    {
73
        if (CommonFunctions::executeProgram('uname', '-s', $os, PSI_DEBUG) && ($os!="")) {
74
            if (CommonFunctions::executeProgram('uname', '-r', $version, PSI_DEBUG) && ($version!="")) {
75
                $os.=' '.$version;
76
            }
77
            if (CommonFunctions::executeProgram('uname', '-v', $subversion, PSI_DEBUG) && ($subversion!="")) {
78
                $os.=' ('.$subversion.')';
79
            }
@@ 77-79 (lines=3) @@
74
            if (CommonFunctions::executeProgram('uname', '-r', $version, PSI_DEBUG) && ($version!="")) {
75
                $os.=' '.$version;
76
            }
77
            if (CommonFunctions::executeProgram('uname', '-v', $subversion, PSI_DEBUG) && ($subversion!="")) {
78
                $os.=' ('.$subversion.')';
79
            }
80
            if (CommonFunctions::executeProgram('uname', '-i', $platform, PSI_DEBUG) && ($platform!="")) {
81
                $os.=' '.$platform;
82
            }
@@ 80-82 (lines=3) @@
77
            if (CommonFunctions::executeProgram('uname', '-v', $subversion, PSI_DEBUG) && ($subversion!="")) {
78
                $os.=' ('.$subversion.')';
79
            }
80
            if (CommonFunctions::executeProgram('uname', '-i', $platform, PSI_DEBUG) && ($platform!="")) {
81
                $os.=' '.$platform;
82
            }
83
            $this->sys->setKernel($os);
84
        }
85
    }