Code Duplication    Length = 5-5 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 1431-1435 (lines=5) @@
1428
        } else {
1429
            $moduleConfig['storage'] = $storage;
1430
        }
1431
        if (empty(static::$storage['options']['share'])) {
1432
            Config::save('module', $moduleConfig, $classPath[0]);
1433
        } else {
1434
            Config::save('share', $moduleConfig, $classPath[0]);
1435
        }
1436
        return true;
1437
    }
1438
@@ 1632-1636 (lines=5) @@
1629
        } else {
1630
            $moduleConfig['storage'] = $storage;
1631
        }
1632
        if (empty(static::$storage['options']['share'])) {
1633
            Config::save('module', $moduleConfig, $classPath[0]);
1634
        } else {
1635
            Config::save('share', $moduleConfig, $classPath[0]);
1636
        }
1637
        return true;
1638
    }
1639