Code Duplication    Length = 5-5 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 1408-1412 (lines=5) @@
1405
        } else {
1406
            $moduleConfig['storage'] = $storage;
1407
        }
1408
        if (empty(static::$storage['options']['share'])) {
1409
            Config::save('module', $moduleConfig, $classPath[0]);
1410
        } else {
1411
            Config::save('share', $moduleConfig, $classPath[0]);
1412
        }
1413
        return true;
1414
    }
1415
@@ 1605-1609 (lines=5) @@
1602
        } else {
1603
            $moduleConfig['storage'] = $storage;
1604
        }
1605
        if (empty(static::$storage['options']['share'])) {
1606
            Config::save('module', $moduleConfig, $classPath[0]);
1607
        } else {
1608
            Config::save('share', $moduleConfig, $classPath[0]);
1609
        }
1610
        return true;
1611
    }
1612