Code Duplication    Length = 7-7 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 435-441 (lines=7) @@
432
                        case 'array':
433
                            $oldValueText = isset($class::$cols[$colName]['sourceArray'][$oldValue]) ? $class::$cols[$colName]['sourceArray'][$oldValue] : $oldValue;
434
                            break;
435
                        case 'relation':
436
                            $relation = $class::getRelation($class::$cols[$colName]['relation']);
437
                            $relModel = $relation['model'];
438
                            $rel = $relModel::get($oldValue);
439
                            if ($rel) {
440
                                $oldValueText = $rel->name();
441
                            }
442
                    }
443
                }
444
                $newValueText = $this->$colName;
@@ 450-456 (lines=7) @@
447
                        case 'array':
448
                            $newValueText = isset($class::$cols[$colName]['sourceArray'][$this->$colName]) ? $class::$cols[$colName]['sourceArray'][$this->$colName] : $this->$colName;
449
                            break;
450
                        case 'relation':
451
                            $relation = $class::getRelation($class::$cols[$colName]['relation']);
452
                            $relModel = $relation['model'];
453
                            $rel = $relModel::get($this->$colName);
454
                            if ($rel) {
455
                                $newValueText = $rel->name();
456
                            }
457
                    }
458
                }
459
                if (strlen($oldValueText) + strlen($newValueText) < 200) {