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 ( 423fe8...f48289 )
by gyeong-won
15:56 queued 08:14
created
classes/xml/xmlquery/tags/group/GroupsTag.class.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -26,19 +26,19 @@  discard block
 block discarded – undo
26 26
 	{
27 27
 		$this->groups = array();
28 28
 
29
-		if($xml_groups)
29
+		if ($xml_groups)
30 30
 		{
31
-			if(!is_array($xml_groups))
31
+			if (!is_array($xml_groups))
32 32
 			{
33 33
 				$xml_groups = array($xml_groups);
34 34
 			}
35 35
 
36 36
 			$dbParser = &DB::getParser();
37
-			for($i = 0; $i < count($xml_groups); $i++)
37
+			for ($i = 0; $i < count($xml_groups); $i++)
38 38
 			{
39 39
 				$group = $xml_groups[$i];
40 40
 				$column = trim($group->attrs->column);
41
-				if(!$column)
41
+				if (!$column)
42 42
 				{
43 43
 					continue;
44 44
 				}
@@ -51,10 +51,10 @@  discard block
 block discarded – undo
51 51
 
52 52
 	function toString()
53 53
 	{
54
-		$output = 'array(' . PHP_EOL;
55
-		foreach($this->groups as $group)
54
+		$output = 'array('.PHP_EOL;
55
+		foreach ($this->groups as $group)
56 56
 		{
57
-			$output .= "'" . $group . "' ,";
57
+			$output .= "'".$group."' ,";
58 58
 		}
59 59
 		$output = substr($output, 0, -1);
60 60
 		$output .= ')';
Please login to merge, or discard this patch.
classes/xml/xmlquery/queryargument/SortQueryArgument.class.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@
 block discarded – undo
16 16
 	 */
17 17
 	function toString()
18 18
 	{
19
-		$arg = sprintf("\n" . '${\'%s_argument\'} = new SortArgument(\'%s\', %s);' . "\n"
19
+		$arg = sprintf("\n".'${\'%s_argument\'} = new SortArgument(\'%s\', %s);'."\n"
20 20
 				, $this->argument_name
21 21
 				, $this->argument_name
22
-				, '$args->' . $this->variable_name);
22
+				, '$args->'.$this->variable_name);
23 23
 		$arg .= $this->argument_validator->toString();
24 24
 
25
-		$arg .= sprintf('if(!${\'%s_argument\'}->isValid()) return ${\'%s_argument\'}->getErrorMessage();' . "\n"
25
+		$arg .= sprintf('if(!${\'%s_argument\'}->isValid()) return ${\'%s_argument\'}->getErrorMessage();'."\n"
26 26
 				, $this->argument_name
27 27
 				, $this->argument_name
28 28
 		);
Please login to merge, or discard this patch.
classes/xml/xmlquery/queryargument/DefaultValue.class.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 	{
71 71
 		return $this->_is_string;
72 72
 		$str_pos = strpos($this->value, '(');
73
-		if($str_pos === false)
73
+		if ($str_pos === false)
74 74
 		{
75 75
 			return TRUE;
76 76
 		}
@@ -99,31 +99,31 @@  discard block
 block discarded – undo
99 99
 
100 100
 	function _setValue()
101 101
 	{
102
-		if(!isset($this->value))
102
+		if (!isset($this->value))
103 103
 		{
104 104
 			return;
105 105
 		}
106 106
 
107 107
 		// If value contains comma separated values and does not contain paranthesis
108 108
 		//  -> default value is an array
109
-		if(strpos($this->value, ',') !== FALSE && strpos($this->value, '(') === FALSE)
109
+		if (strpos($this->value, ',') !== FALSE && strpos($this->value, '(') === FALSE)
110 110
 		{
111 111
 			return sprintf('array(%s)', $this->value);
112 112
 		}
113 113
 
114 114
 		$str_pos = strpos($this->value, '(');
115 115
 		// // TODO Replace this with parseExpression
116
-		if($str_pos === FALSE)
116
+		if ($str_pos === FALSE)
117 117
 		{
118 118
 			$this->_is_string = TRUE;
119
-			return '\'' . $this->value . '\'';
119
+			return '\''.$this->value.'\'';
120 120
 		}
121 121
 		//if($str_pos===false) return $this->value;
122 122
 
123 123
 		$func_name = substr($this->value, 0, $str_pos);
124 124
 		$args = substr($this->value, $str_pos + 1, -1);
125 125
 
126
-		switch($func_name)
126
+		switch ($func_name)
127 127
 		{
128 128
 			case 'ipaddress' :
129 129
 				$val = '$_SERVER[\'REMOTE_ADDR\']';
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 				$val = sprintf('%d', $args);
160 160
 				break;
161 161
 			default :
162
-				$val = '\'' . $this->value . '\'';
162
+				$val = '\''.$this->value.'\'';
163 163
 			//$val = $this->value;
164 164
 		}
165 165
 
Please login to merge, or discard this patch.
addons/point_level_icon/point_level_icon.lib.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -7,24 +7,24 @@  discard block
 block discarded – undo
7 7
 function pointLevelIconTrans($matches)
8 8
 {
9 9
 	$member_srl = $matches[3];
10
-	if($member_srl < 1)
10
+	if ($member_srl < 1)
11 11
 	{
12 12
 		return $matches[0];
13 13
 	}
14 14
 
15
-	$orig_text = preg_replace('/' . preg_quote($matches[5], '/') . '<\/' . $matches[6] . '>$/', '', $matches[0]);
15
+	$orig_text = preg_replace('/'.preg_quote($matches[5], '/').'<\/'.$matches[6].'>$/', '', $matches[0]);
16 16
 
17 17
 	// Check Group Image Mark
18 18
 	$oMemberModel = getModel('member');
19
-	if($oMemberModel->getGroupImageMark($member_srl))
19
+	if ($oMemberModel->getGroupImageMark($member_srl))
20 20
 	{
21
-		return $orig_text . $matches[5] . '</' . $matches[6] . '>';
21
+		return $orig_text.$matches[5].'</'.$matches[6].'>';
22 22
 	}
23 23
 
24
-	if(!isset($GLOBALS['_pointLevelIcon'][$member_srl]))
24
+	if (!isset($GLOBALS['_pointLevelIcon'][$member_srl]))
25 25
 	{
26 26
 		// Get point configuration
27
-		if(!$GLOBALS['_pointConfig'])
27
+		if (!$GLOBALS['_pointConfig'])
28 28
 		{
29 29
 			$oModuleModel = getModel('module');
30 30
 			$GLOBALS['_pointConfig'] = $oModuleModel->getModuleConfig('point');
@@ -32,14 +32,14 @@  discard block
 block discarded – undo
32 32
 		$config = $GLOBALS['_pointConfig'];
33 33
 
34 34
 		// Get point model
35
-		if(!$GLOBALS['_pointModel'])
35
+		if (!$GLOBALS['_pointModel'])
36 36
 		{
37 37
 			$GLOBALS['_pointModel'] = getModel('point');
38 38
 		}
39 39
 		$oPointModel = &$GLOBALS['_pointModel'];
40 40
 
41 41
 		// Get points
42
-		if(!$oPointModel->isExistsPoint($member_srl))
42
+		if (!$oPointModel->isExistsPoint($member_srl))
43 43
 		{
44 44
 			return $matches[0];
45 45
 		}
@@ -55,25 +55,25 @@  discard block
 block discarded – undo
55 55
 
56 56
 		// Get per to go to the next level if not a top level
57 57
 		$per = NULL;
58
-		if($level < $config->max_level)
58
+		if ($level < $config->max_level)
59 59
 		{
60 60
 			$next_point = $config->level_step[$level + 1];
61 61
 			$present_point = $config->level_step[$level];
62
-			if($next_point > 0)
62
+			if ($next_point > 0)
63 63
 			{
64 64
 				$per = (int) (($point - $present_point) / ($next_point - $present_point) * 100);
65
-				$per = $per . '%';
65
+				$per = $per.'%';
66 66
 			}
67 67
 		}
68 68
 
69
-		$title = sprintf('%s:%s%s%s, %s:%s/%s', Context::getLang('point'), $point, $config->point_name, $per ? ' (' . $per . ')' : '', Context::getLang('level'), $level, $config->max_level);
69
+		$title = sprintf('%s:%s%s%s, %s:%s/%s', Context::getLang('point'), $point, $config->point_name, $per ? ' ('.$per.')' : '', Context::getLang('level'), $level, $config->max_level);
70 70
 		$alt = sprintf('[%s:%s]', Context::getLang('level'), $level);
71 71
 
72 72
 		$GLOBALS['_pointLevelIcon'][$member_srl] = sprintf('<img src="%s" alt="%s" title="%s" class="xe_point_level_icon" style="vertical-align:middle;margin-right:3px;" />', $level_icon, $alt, $title);
73 73
 	}
74 74
 	$text = $GLOBALS['_pointLevelIcon'][$member_srl];
75 75
 
76
-	return $orig_text . $text . $matches[5] . '</' . $matches[6] . '>';
76
+	return $orig_text.$text.$matches[5].'</'.$matches[6].'>';
77 77
 }
78 78
 
79 79
 /* End of file point_level_icon.lib.php */
Please login to merge, or discard this patch.
modules/communication/communication.admin.view.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 		Context::set('group_list', $group_list);
64 64
 
65 65
 		// specify a template
66
-		$this->setTemplatePath($this->module_path . 'tpl');
66
+		$this->setTemplatePath($this->module_path.'tpl');
67 67
 		$this->setTemplateFile('index');
68 68
 	}
69 69
 
Please login to merge, or discard this patch.
modules/addon/addon.controller.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 	function getCacheFilePath($type = "pc")
27 27
 	{
28 28
 		static $addon_file;
29
-		if(isset($addon_file))
29
+		if (isset($addon_file))
30 30
 		{
31 31
 			return $addon_file;
32 32
 		}
@@ -34,10 +34,10 @@  discard block
 block discarded – undo
34 34
 		$site_module_info = Context::get('site_module_info');
35 35
 		$site_srl = $site_module_info->site_srl;
36 36
 
37
-		$addon_path = _XE_PATH_ . 'files/cache/addons/';
38
-		$addon_file = $addon_path . $site_srl . $type . '.acivated_addons.cache.php';
37
+		$addon_path = _XE_PATH_.'files/cache/addons/';
38
+		$addon_file = $addon_path.$site_srl.$type.'.acivated_addons.cache.php';
39 39
 
40
-		if($this->addon_file_called)
40
+		if ($this->addon_file_called)
41 41
 		{
42 42
 			return $addon_file;
43 43
 		}
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
 		FileHandler::makeDir($addon_path);
48 48
 
49
-		if(!file_exists($addon_file))
49
+		if (!file_exists($addon_file))
50 50
 		{
51 51
 			$this->makeCacheFile($site_srl, $type);
52 52
 		}
@@ -82,30 +82,30 @@  discard block
 block discarded – undo
82 82
 		$buff = array('<?php if(!defined("__XE__")) exit();', '$_m = Context::get(\'mid\');');
83 83
 		$oAddonModel = getAdminModel('addon');
84 84
 		$addon_list = $oAddonModel->getInsertedAddons($site_srl, $gtype);
85
-		foreach($addon_list as $addon => $val)
85
+		foreach ($addon_list as $addon => $val)
86 86
 		{
87
-			if($val->addon == "smartphone"
87
+			if ($val->addon == "smartphone"
88 88
 				|| ($type == "pc" && $val->is_used != 'Y') 
89 89
 				|| ($type == "mobile" && $val->is_used_m != 'Y') 
90 90
 				|| ($gtype == 'global' && $val->is_fixed != 'Y')
91
-				|| !is_dir(_XE_PATH_ . 'addons/' . $addon))
91
+				|| !is_dir(_XE_PATH_.'addons/'.$addon))
92 92
 			{
93 93
 				continue;
94 94
 			}
95 95
 
96 96
 			$extra_vars = unserialize($val->extra_vars);
97 97
 			$mid_list = $extra_vars->mid_list;
98
-			if(!is_array($mid_list) || count($mid_list) < 1)
98
+			if (!is_array($mid_list) || count($mid_list) < 1)
99 99
 			{
100 100
 				$mid_list = NULL;
101 101
 			}
102 102
 
103 103
 			$buff[] = '$before_time = microtime(true);';
104
-			$buff[] = '$rm = \'' . $extra_vars->xe_run_method . "';";
104
+			$buff[] = '$rm = \''.$extra_vars->xe_run_method."';";
105 105
 			$buff[] = '$ml = array(';
106
-			if($mid_list)
106
+			if ($mid_list)
107 107
 			{
108
-				foreach($mid_list as $mid)
108
+				foreach ($mid_list as $mid)
109 109
 				{
110 110
 					$buff[] = "'$mid' => 1,";
111 111
 				}
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 			$buff[] = ');';
114 114
 			$buff[] = sprintf('$addon_file = \'./addons/%s/%s.addon.php\';', $addon, $addon);
115 115
 
116
-			if($val->extra_vars)
116
+			if ($val->extra_vars)
117 117
 			{
118 118
 				unset($extra_vars);
119 119
 				$extra_vars = base64_encode($val->extra_vars);
@@ -131,13 +131,13 @@  discard block
 block discarded – undo
131 131
 			$buff[] = '$after_time = microtime(true);';
132 132
 			$buff[] = '$addon_time_log = new stdClass();';
133 133
 			$buff[] = '$addon_time_log->caller = $called_position;';
134
-			$buff[] = '$addon_time_log->called = "' . $addon . '";';
135
-			$buff[] = '$addon_time_log->called_extension = "' . $addon . '";';
134
+			$buff[] = '$addon_time_log->called = "'.$addon.'";';
135
+			$buff[] = '$addon_time_log->called_extension = "'.$addon.'";';
136 136
 			$buff[] = 'writeSlowlog("addon",$after_time-$before_time,$addon_time_log);';
137 137
 		}
138
-		$addon_path = _XE_PATH_ . 'files/cache/addons/';
138
+		$addon_path = _XE_PATH_.'files/cache/addons/';
139 139
 		FileHandler::makeDir($addon_path);
140
-		$addon_file = $addon_path . ($gtype == 'site' ? $site_srl : '') . $type . '.acivated_addons.cache.php';
140
+		$addon_file = $addon_path.($gtype == 'site' ? $site_srl : '').$type.'.acivated_addons.cache.php';
141 141
 		FileHandler::writeFile($addon_file, join(PHP_EOL, $buff));
142 142
 	}
143 143
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 	 */
153 153
 	function doSetup($addon, $extra_vars, $site_srl = 0, $gtype = 'site')
154 154
 	{
155
-		if(!is_array($extra_vars->mid_list))
155
+		if (!is_array($extra_vars->mid_list))
156 156
 		{
157 157
 			unset($extra_vars->mid_list);
158 158
 		}
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 		$args = new stdClass();
161 161
 		$args->addon = $addon;
162 162
 		$args->extra_vars = serialize($extra_vars);
163
-		if($gtype == 'global')
163
+		if ($gtype == 'global')
164 164
 		{
165 165
 			return executeQuery('addon.updateAddon', $args);
166 166
 		}
@@ -176,9 +176,9 @@  discard block
 block discarded – undo
176 176
 	 */
177 177
 	function removeAddonConfig($site_srl)
178 178
 	{
179
-		$addon_path = _XE_PATH_ . 'files/cache/addons/';
180
-		$addon_file = $addon_path . $site_srl . '.acivated_addons.cache.php';
181
-		if(file_exists($addon_file))
179
+		$addon_path = _XE_PATH_.'files/cache/addons/';
180
+		$addon_file = $addon_path.$site_srl.'.acivated_addons.cache.php';
181
+		if (file_exists($addon_file))
182 182
 		{
183 183
 			FileHandler::removeFile($addon_file);
184 184
 		}
Please login to merge, or discard this patch.
modules/editor/editor.admin.controller.php 2 patches
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -23,26 +23,26 @@  discard block
 block discarded – undo
23 23
 		$enables = Context::get('enables');
24 24
 		$component_names = Context::get('component_names');
25 25
 
26
-		if(!is_array($component_names)) $component_names = array();
27
-		if(!is_array($enables)) $enables = array();
26
+		if (!is_array($component_names)) $component_names = array();
27
+		if (!is_array($enables)) $enables = array();
28 28
 
29 29
 		$unables = array_diff($component_names, $enables);
30 30
 		$componentList = array();
31 31
 
32
-		foreach($enables as $component_name)
32
+		foreach ($enables as $component_name)
33 33
 		{
34 34
 			$componentList[$component_name] = 'Y';
35 35
 		}
36
-		foreach($unables as $component_name)
36
+		foreach ($unables as $component_name)
37 37
 		{
38 38
 			$componentList[$component_name] = 'N';
39 39
 		}
40 40
 
41
-		$output = $this->editorListOrder($component_names,$site_module_info->site_srl);
42
-		if(!$output->toBool()) return new Object();
41
+		$output = $this->editorListOrder($component_names, $site_module_info->site_srl);
42
+		if (!$output->toBool()) return new Object();
43 43
 
44
-		$output = $this->editorCheckUse($componentList,$site_module_info->site_srl);
45
-		if(!$output->toBool()) return new Object();
44
+		$output = $this->editorCheckUse($componentList, $site_module_info->site_srl);
45
+		if (!$output->toBool()) return new Object();
46 46
 
47 47
 		$oEditorController = getController('editor');
48 48
 		$oEditorController->removeCache($site_module_info->site_srl);
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
 		$args = new stdClass();
58 58
 		$args->site_srl = $site_srl;
59 59
 
60
-		foreach($componentList as $componentName => $value)
60
+		foreach ($componentList as $componentName => $value)
61 61
 		{
62 62
 			$args->component_name = $componentName;
63 63
 			$args->enabled = $value;
64
-			if($site_srl == 0)
64
+			if ($site_srl == 0)
65 65
 			{
66 66
 				$output = executeQuery('editor.updateComponent', $args);
67 67
 			}
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 				$output = executeQuery('editor.updateSiteComponent', $args);
71 71
 			}
72 72
 		}
73
-		if(!$output->toBool()) return new Object();
73
+		if (!$output->toBool()) return new Object();
74 74
 
75 75
 		unset($componentList);
76 76
 		return $output;
@@ -84,13 +84,13 @@  discard block
 block discarded – undo
84 84
 		$args = new stdClass();
85 85
 		$args->site_srl = $site_srl;
86 86
 		$list_order_num = '30';
87
-		if(is_array($component_names))
87
+		if (is_array($component_names))
88 88
 		{
89
-			foreach($component_names as $name)
89
+			foreach ($component_names as $name)
90 90
 			{
91 91
 				$args->list_order = $list_order_num;
92 92
 				$args->component_name = $name;
93
-				if($site_srl == 0)
93
+				if ($site_srl == 0)
94 94
 				{
95 95
 					$output = executeQuery('editor.updateComponent', $args);
96 96
 				}
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 					$output = executeQuery('editor.updateSiteComponent', $args);
100 100
 				}
101 101
 
102
-				if(!$output->toBool()) return new Object();
102
+				if (!$output->toBool()) return new Object();
103 103
 				$list_order_num++;
104 104
 			}
105 105
 		}
@@ -124,11 +124,11 @@  discard block
 block discarded – undo
124 124
 		$args = new stdClass;
125 125
 		$args->component_name = $component_name;
126 126
 		$args->extra_vars = serialize($extra_vars);
127
-		$args->site_srl = (int)$site_module_info->site_srl;
127
+		$args->site_srl = (int) $site_module_info->site_srl;
128 128
 
129
-		if(!$args->site_srl) $output = executeQuery('editor.updateComponent', $args);
129
+		if (!$args->site_srl) $output = executeQuery('editor.updateComponent', $args);
130 130
 		else $output = executeQuery('editor.updateSiteComponent', $args);
131
-		if(!$output->toBool()) return $output;
131
+		if (!$output->toBool()) return $output;
132 132
 
133 133
 		$oEditorController = getController('editor');
134 134
 		$oEditorController->removeCache($args->site_srl);
@@ -146,10 +146,10 @@  discard block
 block discarded – undo
146 146
 		$configVars = Context::getRequestVars();
147 147
 		
148 148
 		$config = new stdClass;
149
-		if($configVars->font_defined != 'Y') $config->font_defined = $configVars->font_defined = 'N';
149
+		if ($configVars->font_defined != 'Y') $config->font_defined = $configVars->font_defined = 'N';
150 150
 		else $config->font_defined = 'Y';
151 151
 
152
-		if($config->font_defined == 'Y')
152
+		if ($config->font_defined == 'Y')
153 153
 			$config->content_font = $configVars->content_font_defined;
154 154
 		else
155 155
 			$config->content_font = $configVars->content_font;
@@ -160,11 +160,11 @@  discard block
 block discarded – undo
160 160
 		$config->comment_editor_height = $configVars->comment_editor_height;
161 161
 		$config->content_style = $configVars->content_style;
162 162
 
163
-		$config->content_font_size= $configVars->content_font_size.'px';
164
-		$config->sel_editor_colorset= $configVars->sel_editor_colorset;
165
-		$config->sel_comment_editor_colorset= $configVars->sel_comment_editor_colorset;
163
+		$config->content_font_size = $configVars->content_font_size.'px';
164
+		$config->sel_editor_colorset = $configVars->sel_editor_colorset;
165
+		$config->sel_comment_editor_colorset = $configVars->sel_comment_editor_colorset;
166 166
 
167
-		$oModuleController->insertModuleConfig('editor',$config);
167
+		$oModuleController->insertModuleConfig('editor', $config);
168 168
 		$this->setRedirectUrl(Context::get('error_return_url'));
169 169
 	}
170 170
 
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 	 */
174 174
 	function insertComponent($component_name, $enabled = false, $site_srl = 0)
175 175
 	{
176
-		if($enabled) $enabled = 'Y';
176
+		if ($enabled) $enabled = 'Y';
177 177
 		else $enabled = 'N';
178 178
 
179 179
 		$args = new stdClass;
@@ -181,12 +181,12 @@  discard block
 block discarded – undo
181 181
 		$args->enabled = $enabled;
182 182
 		$args->site_srl = $site_srl;
183 183
 		// Check if the component exists
184
-		if(!$site_srl) $output = executeQuery('editor.isComponentInserted', $args);
184
+		if (!$site_srl) $output = executeQuery('editor.isComponentInserted', $args);
185 185
 		else $output = executeQuery('editor.isSiteComponentInserted', $args);
186
-		if($output->data->count) return new Object(-1, 'msg_component_is_not_founded');
186
+		if ($output->data->count) return new Object(-1, 'msg_component_is_not_founded');
187 187
 		// Inert a component
188 188
 		$args->list_order = getNextSequence();
189
-		if(!$site_srl) $output = executeQuery('editor.insertComponent', $args);
189
+		if (!$site_srl) $output = executeQuery('editor.insertComponent', $args);
190 190
 		else $output = executeQuery('editor.insertSiteComponent', $args);
191 191
 
192 192
 		$oEditorController = getController('editor');
Please login to merge, or discard this patch.
Braces   +56 added lines, -26 removed lines patch added patch discarded remove patch
@@ -23,8 +23,12 @@  discard block
 block discarded – undo
23 23
 		$enables = Context::get('enables');
24 24
 		$component_names = Context::get('component_names');
25 25
 
26
-		if(!is_array($component_names)) $component_names = array();
27
-		if(!is_array($enables)) $enables = array();
26
+		if(!is_array($component_names)) {
27
+			$component_names = array();
28
+		}
29
+		if(!is_array($enables)) {
30
+			$enables = array();
31
+		}
28 32
 
29 33
 		$unables = array_diff($component_names, $enables);
30 34
 		$componentList = array();
@@ -39,10 +43,14 @@  discard block
 block discarded – undo
39 43
 		}
40 44
 
41 45
 		$output = $this->editorListOrder($component_names,$site_module_info->site_srl);
42
-		if(!$output->toBool()) return new Object();
46
+		if(!$output->toBool()) {
47
+			return new Object();
48
+		}
43 49
 
44 50
 		$output = $this->editorCheckUse($componentList,$site_module_info->site_srl);
45
-		if(!$output->toBool()) return new Object();
51
+		if(!$output->toBool()) {
52
+			return new Object();
53
+		}
46 54
 
47 55
 		$oEditorController = getController('editor');
48 56
 		$oEditorController->removeCache($site_module_info->site_srl);
@@ -64,13 +72,14 @@  discard block
 block discarded – undo
64 72
 			if($site_srl == 0)
65 73
 			{
66 74
 				$output = executeQuery('editor.updateComponent', $args);
67
-			}
68
-			else
75
+			} else
69 76
 			{
70 77
 				$output = executeQuery('editor.updateSiteComponent', $args);
71 78
 			}
72 79
 		}
73
-		if(!$output->toBool()) return new Object();
80
+		if(!$output->toBool()) {
81
+			return new Object();
82
+		}
74 83
 
75 84
 		unset($componentList);
76 85
 		return $output;
@@ -93,13 +102,14 @@  discard block
 block discarded – undo
93 102
 				if($site_srl == 0)
94 103
 				{
95 104
 					$output = executeQuery('editor.updateComponent', $args);
96
-				}
97
-				else
105
+				} else
98 106
 				{
99 107
 					$output = executeQuery('editor.updateSiteComponent', $args);
100 108
 				}
101 109
 
102
-				if(!$output->toBool()) return new Object();
110
+				if(!$output->toBool()) {
111
+					return new Object();
112
+				}
103 113
 				$list_order_num++;
104 114
 			}
105 115
 		}
@@ -126,9 +136,14 @@  discard block
 block discarded – undo
126 136
 		$args->extra_vars = serialize($extra_vars);
127 137
 		$args->site_srl = (int)$site_module_info->site_srl;
128 138
 
129
-		if(!$args->site_srl) $output = executeQuery('editor.updateComponent', $args);
130
-		else $output = executeQuery('editor.updateSiteComponent', $args);
131
-		if(!$output->toBool()) return $output;
139
+		if(!$args->site_srl) {
140
+			$output = executeQuery('editor.updateComponent', $args);
141
+		} else {
142
+			$output = executeQuery('editor.updateSiteComponent', $args);
143
+		}
144
+		if(!$output->toBool()) {
145
+			return $output;
146
+		}
132 147
 
133 148
 		$oEditorController = getController('editor');
134 149
 		$oEditorController->removeCache($args->site_srl);
@@ -146,13 +161,17 @@  discard block
 block discarded – undo
146 161
 		$configVars = Context::getRequestVars();
147 162
 		
148 163
 		$config = new stdClass;
149
-		if($configVars->font_defined != 'Y') $config->font_defined = $configVars->font_defined = 'N';
150
-		else $config->font_defined = 'Y';
164
+		if($configVars->font_defined != 'Y') {
165
+			$config->font_defined = $configVars->font_defined = 'N';
166
+		} else {
167
+			$config->font_defined = 'Y';
168
+		}
151 169
 
152
-		if($config->font_defined == 'Y')
153
-			$config->content_font = $configVars->content_font_defined;
154
-		else
155
-			$config->content_font = $configVars->content_font;
170
+		if($config->font_defined == 'Y') {
171
+					$config->content_font = $configVars->content_font_defined;
172
+		} else {
173
+					$config->content_font = $configVars->content_font;
174
+		}
156 175
 
157 176
 		$config->editor_skin = $configVars->editor_skin;
158 177
 		$config->editor_height = $configVars->editor_height;
@@ -173,21 +192,32 @@  discard block
 block discarded – undo
173 192
 	 */
174 193
 	function insertComponent($component_name, $enabled = false, $site_srl = 0)
175 194
 	{
176
-		if($enabled) $enabled = 'Y';
177
-		else $enabled = 'N';
195
+		if($enabled) {
196
+			$enabled = 'Y';
197
+		} else {
198
+			$enabled = 'N';
199
+		}
178 200
 
179 201
 		$args = new stdClass;
180 202
 		$args->component_name = $component_name;
181 203
 		$args->enabled = $enabled;
182 204
 		$args->site_srl = $site_srl;
183 205
 		// Check if the component exists
184
-		if(!$site_srl) $output = executeQuery('editor.isComponentInserted', $args);
185
-		else $output = executeQuery('editor.isSiteComponentInserted', $args);
186
-		if($output->data->count) return new Object(-1, 'msg_component_is_not_founded');
206
+		if(!$site_srl) {
207
+			$output = executeQuery('editor.isComponentInserted', $args);
208
+		} else {
209
+			$output = executeQuery('editor.isSiteComponentInserted', $args);
210
+		}
211
+		if($output->data->count) {
212
+			return new Object(-1, 'msg_component_is_not_founded');
213
+		}
187 214
 		// Inert a component
188 215
 		$args->list_order = getNextSequence();
189
-		if(!$site_srl) $output = executeQuery('editor.insertComponent', $args);
190
-		else $output = executeQuery('editor.insertSiteComponent', $args);
216
+		if(!$site_srl) {
217
+			$output = executeQuery('editor.insertComponent', $args);
218
+		} else {
219
+			$output = executeQuery('editor.insertSiteComponent', $args);
220
+		}
191 221
 
192 222
 		$oEditorController = getController('editor');
193 223
 		$oEditorController->removeCache($site_srl);
Please login to merge, or discard this patch.
modules/importer/importer.admin.view.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 		$this->setTemplatePath($this->module_path.'tpl');
29 29
 
30 30
 		$source_type = Context::get('source_type');
31
-		switch($source_type)
31
+		switch ($source_type)
32 32
 		{
33 33
 			case 'member' : 
34 34
 				$template_filename = "member";
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 	 */
68 68
 	function dispImporterAdminImportForm()
69 69
 	{
70
-		$oDocumentModel = getModel('document');	//for document lang use in this page
70
+		$oDocumentModel = getModel('document'); //for document lang use in this page
71 71
 
72 72
 		$this->setTemplatePath($this->module_path.'tpl');
73 73
 		$this->setTemplateFile('index');
Please login to merge, or discard this patch.
modules/spamfilter/spamfilter.admin.view.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 		// Get configurations (using module model object)
60 60
 		$oModuleModel = getModel('module');
61 61
 		$config = $oModuleModel->getModuleConfig('spamfilter');
62
-		Context::set('config',$config);
62
+		Context::set('config', $config);
63 63
 
64 64
 		$this->setTemplateFile('config_block');
65 65
 	}
Please login to merge, or discard this patch.