Code Duplication    Length = 5-5 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 1314-1318 (lines=5) @@
1311
        } else {
1312
            $moduleConfig['storage'] = $storage;
1313
        }
1314
        if (empty(static::$storage['options']['share'])) {
1315
            Config::save('module', $moduleConfig, $classPath[0]);
1316
        } else {
1317
            Config::save('share', $moduleConfig, $classPath[0]);
1318
        }
1319
        return true;
1320
    }
1321
@@ 1499-1503 (lines=5) @@
1496
        } else {
1497
            $moduleConfig['storage'] = $storage;
1498
        }
1499
        if (empty(static::$storage['options']['share'])) {
1500
            Config::save('module', $moduleConfig, $classPath[0]);
1501
        } else {
1502
            Config::save('share', $moduleConfig, $classPath[0]);
1503
        }
1504
        return true;
1505
    }
1506