Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 247-253 (lines=7) @@
244
                    $dev->setMountPoint($ar_buf[5]);
245
                    if (CommonFunctions::executeProgram('df', '-n', $dftypes, PSI_DEBUG)) {
246
                        $mounttypes = preg_split("/\n/", $dftypes, -1, PREG_SPLIT_NO_EMPTY);
247
                        foreach ($mounttypes as $type) {
248
                            $ty_buf = preg_split('/:/', $type, 2);
249
                            if (trim($ty_buf[0]) == $dev->getMountPoint()) {
250
                                $dev->setFsType($ty_buf[1]);
251
                                break;
252
                            }
253
                        }
254
                    } elseif (CommonFunctions::executeProgram('df', '-T', $dftypes, PSI_DEBUG)) {
255
                        $dftypes = preg_replace('/\n\s/m', ' ', $dftypes);
256
                        $mounttypes = preg_split("/\n/", $dftypes, -1, PREG_SPLIT_NO_EMPTY);
@@ 257-263 (lines=7) @@
254
                    } elseif (CommonFunctions::executeProgram('df', '-T', $dftypes, PSI_DEBUG)) {
255
                        $dftypes = preg_replace('/\n\s/m', ' ', $dftypes);
256
                        $mounttypes = preg_split("/\n/", $dftypes, -1, PREG_SPLIT_NO_EMPTY);
257
                        foreach ($mounttypes as $type) {
258
                            $ty_buf = preg_split("/\s+/", $type, 3);
259
                            if ($ty_buf[0] == $dev->getName()) {
260
                                $dev->setFsType($ty_buf[1]);
261
                                break;
262
                            }
263
                        }
264
                    }
265
                    $this->sys->setDiskDevices($dev);
266
                }