Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 325-327 (lines=3) @@
322
                                    $dev->setInfo(preg_replace('/:/', '-', strtoupper($ar_buf2[1])));
323
                            elseif (preg_match('/^\s+inet\saddr:\s(\S*),/i', $line, $ar_buf2))
324
                                     $dev->setInfo(($dev->getInfo()?$dev->getInfo().';':'').$ar_buf2[1]);
325
                                 elseif (preg_match('/^\s+inet6\saddr:\s(\S*),/i', $line, $ar_buf2)
326
                                          && ($ar_buf2[1]!="::") && !preg_match('/^fe80::/i', $ar_buf2[1]))
327
                                            $dev->setInfo(($dev->getInfo()?$dev->getInfo().';':'').strtolower($ar_buf2[1]));
328
                        }
329
                    }
330
                }

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

@@ 192-194 (lines=3) @@
189
                        if (CommonFunctions::executeProgram('ifconfig', $ar_buf[0].' inet6', $bufr2, PSI_DEBUG) && ($bufr2!=="")) {
190
                            $bufe2 = preg_split("/\n/", $bufr2, -1, PREG_SPLIT_NO_EMPTY);
191
                            foreach ($bufe2 as $buf2) {
192
                                if (preg_match('/^\s+inet6\s+([^\s\/]+)/i', $buf2, $ar_buf2)
193
                                   && ($ar_buf2[1]!="::") && !preg_match('/^fe80::/i', $ar_buf2[1]))
194
                                    $dev->setInfo(($dev->getInfo()?$dev->getInfo().';':'').strtolower($ar_buf2[1]));
195
                            }
196
                        }
197
                    }