Code Duplication    Length = 3-3 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 464-466 (lines=3) @@
461
            $changes_text = [];
462
            foreach ($this->_changedParams as $fullColName => $oldValue) {
463
                $colName = substr($fullColName, strlen($class::colPrefix()));
464
                if (isset($class::$cols[$colName]['logging']) && !$class::$cols[$colName]['logging']) {
465
                    continue;
466
                }
467
                if (strlen($oldValue) + strlen($this->_params[$fullColName]) < 200) {
468
                    $changes_text[] = (!empty($class::$labels[$colName]) ? $class::$labels[$colName] : $colName) . ": \"{$oldValue}\" => \"{$this->$colName}\"";
469
                } else {
@@ 480-482 (lines=3) @@
477
            $activity->save();
478
            foreach ($this->_changedParams as $fullColName => $oldValue) {
479
                $colName = substr($fullColName, strlen($class::colPrefix()));
480
                if (isset($class::$cols[$colName]['logging']) && !$class::$cols[$colName]['logging']) {
481
                    continue;
482
                }
483
                $colName = substr($fullColName, strlen($class::colPrefix()));
484
                $change = new Dashboard\Activity\Change([
485
                    'activity_id' => $activity->id,