Code Duplication    Length = 5-8 lines in 2 locations

source/Compare.php 2 locations

@@ 152-156 (lines=5) @@
149
                            } else {
150
                                $keyCrt                      = $key . '_' . $key2 . '__' . $key3;
151
                                $row[$keyCrt][$pSequence[0]] = $value3;
152
                                if (isset($secondArray[$key][$key2][$key3])) {
153
                                    $row[$keyCrt][$pSequence[1]] = $secondArray[$key][$key2][$key3];
154
                                } else {
155
                                    $row[$keyCrt][$pSequence[1]] = '';
156
                                }
157
                            }
158
                        }
159
                    } else {
@@ 169-176 (lines=8) @@
166
                        }
167
                    }
168
                }
169
            } else {
170
                $row[$key][$pSequence[0]] = $value;
171
                if (isset($secondArray[$key])) {
172
                    $row[$key][$pSequence[1]] = $secondArray[$key];
173
                } else {
174
                    $row[$key][$pSequence[1]] = '';
175
                }
176
            }
177
        }
178
        return $row;
179
    }