GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 35-35 lines in 2 locations

modules/module/module.model.php 2 locations

@@ 1368-1402 (lines=35) @@
1365
	 * @brief Return module configurations
1366
	 * Global configuration is used to manage board, member and others
1367
	 */
1368
	function getModuleConfig($module, $site_srl = 0)
1369
	{
1370
		$config = false;
1371
		// cache controll
1372
		$oCacheHandler = CacheHandler::getInstance('object', null, true);
1373
		if($oCacheHandler->isSupport())
1374
		{
1375
			$object_key = 'module_config:' . $module . '_' . $site_srl;
1376
			$cache_key = $oCacheHandler->getGroupKey('site_and_module', $object_key);
1377
			$config = $oCacheHandler->get($cache_key);
1378
		}
1379
1380
		if($config === false)
1381
		{
1382
			if(!$GLOBALS['__ModuleConfig__'][$site_srl][$module])
1383
			{
1384
				$args = new stdClass();
1385
				$args->module = $module;
1386
				$args->site_srl = $site_srl;
1387
				$output = executeQuery('module.getModuleConfig', $args);
1388
				if($output->data->config) $config = unserialize($output->data->config);
1389
				else $config = null;
1390
1391
				//insert in cache
1392
				if($oCacheHandler->isSupport())
1393
				{
1394
					$oCacheHandler->put($cache_key, $config);
1395
				}
1396
				$GLOBALS['__ModuleConfig__'][$site_srl][$module] = $config;
1397
			}
1398
			return $GLOBALS['__ModuleConfig__'][$site_srl][$module];
1399
		}
1400
1401
		return $config;
1402
	}
1403
1404
	/**
1405
	 * @brief Return the module configuration of mid
@@ 1408-1442 (lines=35) @@
1405
	 * @brief Return the module configuration of mid
1406
	 * Manage mid configurations which depend on module
1407
	 */
1408
	function getModulePartConfig($module, $module_srl)
1409
	{
1410
		$config = false;
1411
		// cache controll
1412
		$oCacheHandler = CacheHandler::getInstance('object', null, true);
1413
		if($oCacheHandler->isSupport())
1414
		{
1415
			$object_key = 'module_part_config:'.$module.'_'.$module_srl;
1416
			$cache_key = $oCacheHandler->getGroupKey('site_and_module', $object_key);
1417
			$config = $oCacheHandler->get($cache_key);
1418
		}
1419
1420
		if($config === false)
1421
		{
1422
			if(!isset($GLOBALS['__ModulePartConfig__'][$module][$module_srl]))
1423
			{
1424
				$args = new stdClass();
1425
				$args->module = $module;
1426
				$args->module_srl = $module_srl;
1427
				$output = executeQuery('module.getModulePartConfig', $args);
1428
				if($output->data->config) $config = unserialize($output->data->config);
1429
				else $config = null;
1430
1431
				//insert in cache
1432
				if($oCacheHandler->isSupport())
1433
				{
1434
					$oCacheHandler->put($cache_key, $config);
1435
				}
1436
				$GLOBALS['__ModulePartConfig__'][$module][$module_srl] = $config;
1437
			}
1438
			return $GLOBALS['__ModulePartConfig__'][$module][$module_srl];
1439
		}
1440
1441
		return $config;
1442
	}
1443
1444
	/**
1445
	 * @brief Get all of module configurations for each mid