Code Duplication    Length = 5-5 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 1162-1166 (lines=5) @@
1159
        } else {
1160
            $moduleConfig['storage'] = $storage;
1161
        }
1162
        if (empty(static::$storage['options']['share'])) {
1163
            Config::save('module', $moduleConfig, $classPath[0]);
1164
        } else {
1165
            Config::save('share', $moduleConfig, $classPath[0]);
1166
        }
1167
        return true;
1168
    }
1169
@@ 1359-1363 (lines=5) @@
1356
        } else {
1357
            $moduleConfig['storage'] = $storage;
1358
        }
1359
        if (empty(static::$storage['options']['share'])) {
1360
            Config::save('module', $moduleConfig, $classPath[0]);
1361
        } else {
1362
            Config::save('share', $moduleConfig, $classPath[0]);
1363
        }
1364
        return true;
1365
    }
1366