Code Duplication    Length = 5-5 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 1426-1430 (lines=5) @@
1423
        } else {
1424
            $moduleConfig['storage'] = $storage;
1425
        }
1426
        if (empty(static::$storage['options']['share'])) {
1427
            Config::save('module', $moduleConfig, $classPath[0]);
1428
        } else {
1429
            Config::save('share', $moduleConfig, $classPath[0]);
1430
        }
1431
        return true;
1432
    }
1433
@@ 1624-1628 (lines=5) @@
1621
        } else {
1622
            $moduleConfig['storage'] = $storage;
1623
        }
1624
        if (empty(static::$storage['options']['share'])) {
1625
            Config::save('module', $moduleConfig, $classPath[0]);
1626
        } else {
1627
            Config::save('share', $moduleConfig, $classPath[0]);
1628
        }
1629
        return true;
1630
    }
1631