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.
Completed
Push — master ( 278e53...818459 )
by gyeong-won
39:17 queued 30:14
created

seoAdminView::dispSeoAdminSetting()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 17
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 11
nc 2
nop 0
dl 0
loc 17
rs 9.4285
c 0
b 0
f 0
1
<?php
2
class seoAdminView extends seo
3
{
4
	function init()
5
	{
6
		$this->setTemplatePath($this->module_path . 'tpl');
7
		$this->setTemplateFile(str_replace('dispSeo', '', $this->act));
8
	}
9
10
	function dispSeoAdminDashboard()
11
	{
12
		$oModuleModel = getModel('module');
0 ignored issues
show
Unused Code introduced by
$oModuleModel is not used, you could remove the assignment.

This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.

$myVar = 'Value';
$higher = false;

if (rand(1, 6) > 3) {
    $higher = true;
} else {
    $higher = false;
}

Both the $myVar assignment in line 1 and the $higher assignment in line 2 are dead. The first because $myVar is never used and the second because $higher is always overwritten for every possible time line.

Loading history...
13
	}
14
15
	function dispSeoAdminSetting()
16
	{
17
		$vars = Context::getRequestVars();
18
		if(!$vars->setting_section) Context::set('setting_section', 'general');
0 ignored issues
show
Bug introduced by
The property setting_section does not seem to exist in BaseObject.

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
19
20
		$config = $this->getConfig();
21
22
		$db_info = Context::getDBInfo();
23
		$hostname = parse_url($db_info->default_url);
24
		$hostname = $hostname['host'];
25
26
		Context::set('config', $config);
27
		Context::set('hostname', $hostname);
28
29
		$security = new Security();
30
		$security->encodeHTML('setting_section');
31
	}
32
}
33
/* !End of file */
34