Code Duplication    Length = 3-3 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 461-463 (lines=3) @@
458
            $changes_text = [];
459
            foreach ($this->_changedParams as $fullColName => $oldValue) {
460
                $colName = substr($fullColName, strlen($class::colPrefix()));
461
                if (isset($class::$cols[$colName]['logging']) && $class::$cols[$colName]['logging'] === false) {
462
                    continue;
463
                }
464
                if (!isset($class::$cols[$colName]['logging']) || $class::$cols[$colName]['logging'] !== 'noValue') {
465
                    $oldValueText = $oldValue;
466
                    if (isset($class::$cols[$colName]) && $class::$cols[$colName]['type'] === 'select') {
@@ 509-511 (lines=3) @@
506
            $activity->save();
507
            foreach ($this->_changedParams as $fullColName => $oldValue) {
508
                $colName = substr($fullColName, strlen($class::colPrefix()));
509
                if (isset($class::$cols[$colName]['logging']) && !$class::$cols[$colName]['logging']) {
510
                    continue;
511
                }
512
                $colName = substr($fullColName, strlen($class::colPrefix()));
513
                $change = new Dashboard\Activity\Change([
514
                    'activity_id' => $activity->id,