Code Duplication    Length = 5-5 lines in 4 locations

phpsysinfo/includes/ups/class.snmpups.inc.php 2 locations

@@ 119-123 (lines=5) @@
116
                                foreach ($bufferarr2 as $id=>$string) {
117
                                    $buffer .= $id." = ".$string."\n";
118
                                }
119
                            if (! empty($bufferarr3)) {
120
                                foreach ($bufferarr3 as $id=>$string) {
121
                                    $buffer .= $id." = ".$string."\n";
122
                                }
123
                            }                            }
124
                            if (! empty($bufferarr4)) {
125
                                foreach ($bufferarr4 as $id=>$string) {
126
                                    $buffer .= $id." = ".$string."\n";
@@ 124-128 (lines=5) @@
121
                                    $buffer .= $id." = ".$string."\n";
122
                                }
123
                            }                            }
124
                            if (! empty($bufferarr4)) {
125
                                foreach ($bufferarr4 as $id=>$string) {
126
                                    $buffer .= $id." = ".$string."\n";
127
                                }
128
                            }
129
                            if (strlen(trim($buffer)) > 0) {
130
                                $this->_output[$ups] = $buffer;
131
                            }

phpsysinfo/plugins/snmppinfo/class.snmppinfo.inc.php 2 locations

@@ 113-117 (lines=5) @@
110
                                error_reporting($old_err_rep); /* restore error level */
111
                                set_error_handler('errorHandlerPsi'); /* restore error handler */
112
                            }
113
                            if (! empty($bufferarr2)) {
114
                                foreach ($bufferarr2 as $id=>$string) {
115
                                    $buffer .= $id." = ".$string."\n";
116
                                }
117
                            }
118
119
                            if (! PSI_DEBUG) {
120
                                restore_error_handler(); /* default error handler */
@@ 129-133 (lines=5) @@
126
                                error_reporting($old_err_rep); /* restore error level */
127
                                set_error_handler('errorHandlerPsi'); /* restore error handler */
128
                            }
129
                            if (! empty($bufferarr3)) {
130
                                foreach ($bufferarr3 as $id=>$string) {
131
                                    $buffer .= $id." = ".$string."\n";
132
                                }
133
                            }
134
135
                            if (strlen(trim($buffer)) > 0) {
136
                                $this->_filecontent[$printer] = $buffer;