Code Duplication    Length = 10-10 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 1283-1292 (lines=10) @@
1280
            $moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false);
1281
        }
1282
1283
        if (!empty($moduleConfig['storage']['appTypeSplit'])) {
1284
            if (empty($options['appType'])) {
1285
                $appType = App::$cur->type;
1286
            } else {
1287
                $appType = $options['appType'];
1288
            }
1289
            $storage = !empty($moduleConfig['storage'][$appType]) ? $moduleConfig['storage'][$appType] : [];
1290
        } else {
1291
            $storage = !empty($moduleConfig['storage']) ? $moduleConfig['storage'] : [];
1292
        }
1293
        if (empty($storage[$classPath[1]])) {
1294
            $storage[$classPath[1]] = [];
1295
        }
@@ 1474-1483 (lines=10) @@
1471
            $moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false);
1472
        }
1473
1474
        if (!empty($moduleConfig['storage']['appTypeSplit'])) {
1475
            if (empty($options['appType'])) {
1476
                $appType = App::$cur->type;
1477
            } else {
1478
                $appType = $options['appType'];
1479
            }
1480
            $storage = !empty($moduleConfig['storage'][$appType]) ? $moduleConfig['storage'][$appType] : [];
1481
        } else {
1482
            $storage = !empty($moduleConfig['storage']) ? $moduleConfig['storage'] : [];
1483
        }
1484
        if (empty($storage[$classPath[1]])) {
1485
            $storage[$classPath[1]] = [];
1486
        }