Code Duplication    Length = 5-5 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 1461-1465 (lines=5) @@
1458
        } else {
1459
            $moduleConfig['storage'] = $storage;
1460
        }
1461
        if (empty(static::$storage['options']['share'])) {
1462
            Config::save('module', $moduleConfig, $classPath[0]);
1463
        } else {
1464
            Config::save('share', $moduleConfig, $classPath[0]);
1465
        }
1466
        return true;
1467
    }
1468
@@ 1666-1670 (lines=5) @@
1663
        } else {
1664
            $moduleConfig['storage'] = $storage;
1665
        }
1666
        if (empty(static::$storage['options']['share'])) {
1667
            Config::save('module', $moduleConfig, $classPath[0]);
1668
        } else {
1669
            Config::save('share', $moduleConfig, $classPath[0]);
1670
        }
1671
        return true;
1672
    }
1673