Code Duplication    Length = 3-3 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 426-428 (lines=3) @@
423
            $changes_text = [];
424
            foreach ($this->_changedParams as $fullColName => $oldValue) {
425
                $colName = substr($fullColName, strlen($class::colPrefix()));
426
                if (isset($class::$cols[$colName]['logging']) && !$class::$cols[$colName]['logging']) {
427
                    continue;
428
                }
429
                $oldValueText = $oldValue;
430
                if (isset($class::$cols[$colName]) && $class::$cols[$colName]['type'] === 'select') {
431
                    switch ($class::$cols[$colName]['source']) {
@@ 472-474 (lines=3) @@
469
            $activity->save();
470
            foreach ($this->_changedParams as $fullColName => $oldValue) {
471
                $colName = substr($fullColName, strlen($class::colPrefix()));
472
                if (isset($class::$cols[$colName]['logging']) && !$class::$cols[$colName]['logging']) {
473
                    continue;
474
                }
475
                $colName = substr($fullColName, strlen($class::colPrefix()));
476
                $change = new Dashboard\Activity\Change([
477
                    'activity_id' => $activity->id,