Code Duplication    Length = 5-5 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 1405-1409 (lines=5) @@
1402
        } else {
1403
            $moduleConfig['storage'] = $storage;
1404
        }
1405
        if (empty(static::$storage['options']['share'])) {
1406
            Config::save('module', $moduleConfig, $classPath[0]);
1407
        } else {
1408
            Config::save('share', $moduleConfig, $classPath[0]);
1409
        }
1410
        return true;
1411
    }
1412
@@ 1602-1606 (lines=5) @@
1599
        } else {
1600
            $moduleConfig['storage'] = $storage;
1601
        }
1602
        if (empty(static::$storage['options']['share'])) {
1603
            Config::save('module', $moduleConfig, $classPath[0]);
1604
        } else {
1605
            Config::save('share', $moduleConfig, $classPath[0]);
1606
        }
1607
        return true;
1608
    }
1609