Code Duplication    Length = 5-5 lines in 2 locations

system/Inji/Model.php 2 locations

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