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 = 13-14 lines in 2 locations

modules/layout/layout.admin.model.php 1 location

@@ 167-179 (lines=13) @@
164
		$this->add('html', $script.$html);
165
	}
166
167
	public function getLayoutAdminSiteDefaultLayout()
168
	{
169
		$siteSrl = Context::get('site_srl');
170
		$type = Context::get('type');
171
172
		$layoutSrl = $this->getSiteDefaultLayout($type, $siteSrl);
173
174
		$oLayoutModel = getModel('layout');
175
		$layoutInfo = $oLayoutModel->getLayoutRawData($layoutSrl, array('title'));
176
177
		$this->add('layout_srl', $layoutSrl);
178
		$this->add('title', $layoutInfo->title);
179
	}
180
181
	public function getSiteDefaultLayout($viewType = 'P', $siteSrl = 0)
182
	{

modules/menu/menu.admin.controller.php 1 location

@@ 1490-1503 (lines=14) @@
1487
	 * It looks unnecessary at this moment however no need to eliminate the feature. Just leave it.
1488
	 * @return void
1489
	 */
1490
	function procMenuAdminMakeXmlFile()
1491
	{
1492
		// Check input value
1493
		$menu_srl = Context::get('menu_srl');
1494
		// Get information of the menu
1495
		$oMenuAdminModel = getAdminModel('menu');
1496
		$menu_info = $oMenuAdminModel->getMenu($menu_srl);
1497
		$menu_title = $menu_info->title;
1498
		// Re-generate the xml file
1499
		$xml_file = $this->makeXmlFile($menu_srl);
1500
		// Set return value
1501
		$this->add('menu_title',$menu_title);
1502
		$this->add('xml_file',$xml_file);
1503
	}
1504
1505
	/**
1506
	 * Register a menu image button