Code Duplication    Length = 5-5 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 1411-1415 (lines=5) @@
1408
        } else {
1409
            $moduleConfig['storage'] = $storage;
1410
        }
1411
        if (empty(static::$storage['options']['share'])) {
1412
            Config::save('module', $moduleConfig, $classPath[0]);
1413
        } else {
1414
            Config::save('share', $moduleConfig, $classPath[0]);
1415
        }
1416
        return true;
1417
    }
1418
@@ 1608-1612 (lines=5) @@
1605
        } else {
1606
            $moduleConfig['storage'] = $storage;
1607
        }
1608
        if (empty(static::$storage['options']['share'])) {
1609
            Config::save('module', $moduleConfig, $classPath[0]);
1610
        } else {
1611
            Config::save('share', $moduleConfig, $classPath[0]);
1612
        }
1613
        return true;
1614
    }
1615