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

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