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 = 28-30 lines in 2 locations

modules/layout/layout.model.php 1 location

@@ 334-363 (lines=30) @@
331
		// natcasesort($searched_list);
332
		// Return information for looping searched list of layouts
333
		$list = array();
334
		for($i=0;$i<$searched_count;$i++)
335
		{
336
			// Name of the layout
337
			$layout = $searched_list[$i];
338
			// Get information of the layout
339
			$layout_info = $this->getLayoutInfo($layout, null, $layout_type);
340
341
			if(!$layout_info)
342
			{
343
				continue;
344
			}
345
346
			if($withAutoinstallInfo)
347
			{
348
				// get easyinstall remove url
349
				$packageSrl = $oAutoinstallModel->getPackageSrlByPath($layout_info->path);
350
				$layout_info->remove_url = $oAutoinstallModel->getRemoveUrlByPackageSrl($packageSrl);
351
352
				// get easyinstall need update
353
				$package = $oAutoinstallModel->getInstalledPackages($packageSrl);
354
				$layout_info->need_update = $package[$packageSrl]->need_update;
355
356
				// get easyinstall update url
357
				if($layout_info->need_update)
358
				{
359
					$layout_info->update_url = $oAutoinstallModel->getUpdateUrlByPackageSrl($packageSrl);
360
				}
361
			}
362
			$list[] = $layout_info;
363
		}
364
365
		usort($list, array($this, 'sortLayoutByTitle'));
366
		return $list;

modules/widget/widget.model.php 1 location

@@ 64-91 (lines=28) @@
61
		if(!$searched_count) return;
62
		sort($searched_list);
63
		// D which pertain to the list of widgets loop spins return statement review the information you need
64
		for($i=0;$i<$searched_count;$i++)
65
		{
66
			// The name of the widget
67
			$widget = $searched_list[$i];
68
			// Wanted information on the Widget
69
			$widget_info = $this->getWidgetInfo($widget);
70
71
			if(!$widget_info)
72
			{
73
				$widget_info = new stdClass();
74
			}
75
76
			// get easyinstall remove url
77
			$packageSrl = $oAutoinstallModel->getPackageSrlByPath($widget_info->path);
78
			$widget_info->remove_url = $oAutoinstallModel->getRemoveUrlByPackageSrl($packageSrl);
79
80
			// get easyinstall need update
81
			$package = $oAutoinstallModel->getInstalledPackages($packageSrl);
82
			$widget_info->need_update = $package[$packageSrl]->need_update;
83
84
			// get easyinstall update url
85
			if ($widget_info->need_update == 'Y')
86
			{
87
				$widget_info->update_url = $oAutoinstallModel->getUpdateUrlByPackageSrl($packageSrl);
88
			}
89
90
			$list[] = $widget_info;
91
		}
92
		return $list;
93
	}
94