Code Duplication    Length = 3-3 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 466-468 (lines=3) @@
463
            $changes_text = [];
464
            foreach ($this->_changedParams as $fullColName => $oldValue) {
465
                $colName = substr($fullColName, strlen($class::colPrefix()));
466
                if (isset($class::$cols[$colName]['logging']) && !$class::$cols[$colName]['logging']) {
467
                    continue;
468
                }
469
                $oldValueText = $oldValue;
470
                if (isset($class::$cols[$colName]) && $class::$cols[$colName]['type'] === 'select') {
471
                    switch ($class::$cols[$colName]['source']) {
@@ 512-514 (lines=3) @@
509
            $activity->save();
510
            foreach ($this->_changedParams as $fullColName => $oldValue) {
511
                $colName = substr($fullColName, strlen($class::colPrefix()));
512
                if (isset($class::$cols[$colName]['logging']) && !$class::$cols[$colName]['logging']) {
513
                    continue;
514
                }
515
                $colName = substr($fullColName, strlen($class::colPrefix()));
516
                $change = new Dashboard\Activity\Change([
517
                    'activity_id' => $activity->id,