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 — develop ( d48996...c35684 )
by gyeong-won
19:12
created
modules/krzip/krzip.controller.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,14 +10,14 @@
 block discarded – undo
10 10
 {
11 11
 	function updateConfig($args)
12 12
 	{
13
-		if(!$args || !is_object($args))
13
+		if (!$args || !is_object($args))
14 14
 		{
15 15
 			$args = new stdClass();
16 16
 		}
17 17
 
18 18
 		$oModuleController = getController('module');
19 19
 		$output = $oModuleController->updateModuleConfig('krzip', $args);
20
-		if($output->toBool())
20
+		if ($output->toBool())
21 21
 		{
22 22
 			unset($this->module_config);
23 23
 		}
Please login to merge, or discard this patch.
modules/krzip/krzip.admin.view.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 {
11 11
 	function init()
12 12
 	{
13
-		$this->setTemplatePath($this->module_path . 'tpl');
13
+		$this->setTemplatePath($this->module_path.'tpl');
14 14
 		$this->setTemplateFile(lcfirst(str_replace('dispKrzipAdmin', '', $this->act)));
15 15
 	}
16 16
 
Please login to merge, or discard this patch.
modules/krzip/krzip.model.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -14,20 +14,20 @@  discard block
 block discarded – undo
14 14
 	 */
15 15
 	function getConfig()
16 16
 	{
17
-		if(!isset($this->module_config))
17
+		if (!isset($this->module_config))
18 18
 		{
19 19
 			$oModuleModel = getModel('module');
20 20
 			$module_config = $oModuleModel->getModuleConfig('krzip');
21
-			if(!is_object($module_config))
21
+			if (!is_object($module_config))
22 22
 			{
23 23
 				$module_config = new stdClass();
24 24
 			}
25 25
 
26 26
 			/* 기본 설정 추가 */
27 27
 			$default_config = self::$default_config;
28
-			foreach($default_config as $key => $val)
28
+			foreach ($default_config as $key => $val)
29 29
 			{
30
-				if(!isset($module_config->{$key}))
30
+				if (!isset($module_config->{$key}))
31 31
 				{
32 32
 					$module_config->{$key} = $val;
33 33
 				}
@@ -46,12 +46,12 @@  discard block
 block discarded – undo
46 46
 	 */
47 47
 	function getMigratedPostcode($values)
48 48
 	{
49
-		if(is_array($values))
49
+		if (is_array($values))
50 50
 		{
51 51
 			$values = array_values($values);
52 52
 
53 53
 			/* 5자리 우편변호 마이그레이션 */
54
-			if(count($values) == 4 && preg_match('/^\(?[0-9a-z\x20-]{5,10}\)?$/i', trim($values[0])))
54
+			if (count($values) == 4 && preg_match('/^\(?[0-9a-z\x20-]{5,10}\)?$/i', trim($values[0])))
55 55
 			{
56 56
 				return $values;
57 57
 			}
@@ -62,28 +62,28 @@  discard block
 block discarded – undo
62 62
 		$output = array('', trim(preg_replace('/\s+/', ' ', $values)), '', '', '');
63 63
 
64 64
 		/* 우편번호 */
65
-		if(preg_match('/\(?([0-9-]{5,7})\)?/', $output[1], $matches))
65
+		if (preg_match('/\(?([0-9-]{5,7})\)?/', $output[1], $matches))
66 66
 		{
67 67
 			$output[1] = trim(preg_replace('/\s+/', ' ', str_replace($matches[0], '', $output[1])));
68 68
 			$output[0] = $matches[1];
69 69
 		}
70 70
 
71 71
 		/* 지번 주소 */
72
-		if(preg_match('/\(.+\s.+[읍면동리(마을)(0-9+가)]\s[0-9-]+\)/', $output[1], $matches))
72
+		if (preg_match('/\(.+\s.+[읍면동리(마을)(0-9+가)]\s[0-9-]+\)/', $output[1], $matches))
73 73
 		{
74 74
 			$output[1] = trim(str_replace($matches[0], '', $output[1]));
75 75
 			$output[2] = $matches[0];
76 76
 		}
77 77
 
78 78
 		/* 부가 정보 */
79
-		if(preg_match('/\(.+[읍면동리(마을)(0-9+가)](?:,.*)?\)/u', $output[1], $matches))
79
+		if (preg_match('/\(.+[읍면동리(마을)(0-9+가)](?:,.*)?\)/u', $output[1], $matches))
80 80
 		{
81 81
 			$output[1] = trim(str_replace($matches[0], '', $output[1]));
82 82
 			$output[4] = $matches[0];
83 83
 		}
84 84
 
85 85
 		/* 상세 주소 */
86
-		if(preg_match('/^(.+ [가-힝]+[0-9]*[동리로길]\s*[0-9-]+(?:번지?)?),?\s+(.+)$/u', $output[1], $matches))
86
+		if (preg_match('/^(.+ [가-힝]+[0-9]*[동리로길]\s*[0-9-]+(?:번지?)?),?\s+(.+)$/u', $output[1], $matches))
87 87
 		{
88 88
 			$output[1] = trim($matches[1]);
89 89
 			$output[3] = trim($matches[2]);
@@ -100,17 +100,17 @@  discard block
 block discarded – undo
100 100
 	function getKrzipCodeList($query)
101 101
 	{
102 102
 		$module_config = $this->getConfig();
103
-		if($module_config->api_handler != 1)
103
+		if ($module_config->api_handler != 1)
104 104
 		{
105 105
 			return $this->makeObject(-1, 'msg_invalid_request');
106 106
 		}
107
-		if(!isset($query))
107
+		if (!isset($query))
108 108
 		{
109 109
 			$query = Context::get('query');
110 110
 		}
111 111
 
112 112
 		$query = trim(strval($query));
113
-		if($query === '')
113
+		if ($query === '')
114 114
 		{
115 115
 			return $this->stop('msg_krzip_no_query');
116 116
 		}
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 		$output = $this->getEpostapiSearch($query);
119 119
 		/* XML Request에서는 Array 치환에 대한 문제로 이 함수를 제대로 사용할 수 없음 */
120 120
 		$this->add('address_list', $output->get('address_list'));
121
-		if(!$output->toBool())
121
+		if (!$output->toBool())
122 122
 		{
123 123
 			return $output;
124 124
 		}
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 		 * @note 우체국 우편번호 API는 검색어를 EUC-KR로 넘겨주어야 함
137 137
 		 */
138 138
 		$encoding = strtoupper(mb_detect_encoding($query));
139
-		if($encoding !== 'EUC-KR')
139
+		if ($encoding !== 'EUC-KR')
140 140
 		{
141 141
 			$query = iconv($encoding, 'EUC-KR', $query);
142 142
 		}
@@ -170,13 +170,13 @@  discard block
 block discarded – undo
170 170
 
171 171
 		$oXmlParser = new XmlParser();
172 172
 		$result = $oXmlParser->parse($buff);
173
-		if($result->error)
173
+		if ($result->error)
174 174
 		{
175 175
 			$err_msg = trim($result->error->message->body);
176
-			if(!$err_msg)
176
+			if (!$err_msg)
177 177
 			{
178 178
 				$err_code = intval(str_replace('ERR-', '', $result->error->error_code->body));
179
-				switch($err_code)
179
+				switch ($err_code)
180 180
 				{
181 181
 					case 1:
182 182
 						$err_msg = 'msg_krzip_is_maintenance';
@@ -195,23 +195,23 @@  discard block
 block discarded – undo
195 195
 
196 196
 			return $this->makeObject(-1, $err_msg);
197 197
 		}
198
-		if(!$result->post)
198
+		if (!$result->post)
199 199
 		{
200 200
 			return $this->makeObject(-1, 'msg_krzip_riddling_wrong');
201 201
 		}
202 202
 
203 203
 		$item_list = $result->post->itemlist->item;
204
-		if(!is_array($item_list))
204
+		if (!is_array($item_list))
205 205
 		{
206 206
 			$item_list = array($item_list);
207 207
 		}
208
-		if(!$item_list)
208
+		if (!$item_list)
209 209
 		{
210 210
 			return $this->makeObject(-1, 'msg_krzip_no_result');
211 211
 		}
212 212
 
213 213
 		$addr_list = array();
214
-		foreach($item_list as $key => $val)
214
+		foreach ($item_list as $key => $val)
215 215
 		{
216 216
 			$postcode = $val->postcd->body;
217 217
 			$road_addr = $val->address->body;
@@ -219,14 +219,14 @@  discard block
 block discarded – undo
219 219
 			$detail = '';
220 220
 			$extra = '';
221 221
 
222
-			if(preg_match('/\((?<detail>.+[읍면동리(마을)(0-9+가)](?:,.*)?)\)/', $road_addr, $matches))
222
+			if (preg_match('/\((?<detail>.+[읍면동리(마을)(0-9+가)](?:,.*)?)\)/', $road_addr, $matches))
223 223
 			{
224 224
 				$road_addr = trim(str_replace($matches[0], '', $road_addr));
225
-				$extra = '(' . $matches['detail'] . ')';
225
+				$extra = '('.$matches['detail'].')';
226 226
 			}
227
-			if(preg_match('/\((?<detail>.+[읍면동리(마을)(빌딩)(0-9+가)](?:,.*)?)\)/', $jibun_addr, $matches))
227
+			if (preg_match('/\((?<detail>.+[읍면동리(마을)(빌딩)(0-9+가)](?:,.*)?)\)/', $jibun_addr, $matches))
228 228
 			{
229
-				$jibun_addr = '(' . trim(str_replace($matches[0], '', $jibun_addr)) . ')';
229
+				$jibun_addr = '('.trim(str_replace($matches[0], '', $jibun_addr)).')';
230 230
 			}
231 231
 
232 232
 			$addr_list[] = array(
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 
262 262
 		$api_name = strval(self::$api_list[$template_config->api_handler]);
263 263
 		$oTemplate = TemplateHandler::getInstance();
264
-		$output = $oTemplate->compile($this->module_path . 'tpl', 'template.' . $api_name);
264
+		$output = $oTemplate->compile($this->module_path.'tpl', 'template.'.$api_name);
265 265
 debugPrint($output);
266 266
 		return $output;
267 267
 	}
Please login to merge, or discard this patch.
modules/krzip/krzip.admin.controller.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@
 block discarded – undo
19 19
 
20 20
 		$oKrzipController = getController('krzip');
21 21
 		$output = $oKrzipController->updateConfig($module_config);
22
-		if(!$output->toBool())
22
+		if (!$output->toBool())
23 23
 		{
24 24
 			return $output;
25 25
 		}
26 26
 
27 27
 		$success_return_url = Context::get('success_return_url');
28
-		if($success_return_url)
28
+		if ($success_return_url)
29 29
 		{
30 30
 			$return_url = $success_return_url;
31 31
 		}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,8 +28,7 @@
 block discarded – undo
28 28
 		if($success_return_url)
29 29
 		{
30 30
 			$return_url = $success_return_url;
31
-		}
32
-		else
31
+		} else
33 32
 		{
34 33
 			$return_url = getNotEncodedUrl('', 'module', 'krzip', 'act', 'dispKrzipAdminConfig');
35 34
 		}
Please login to merge, or discard this patch.
modules/krzip/krzip.view.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 {
11 11
 	function init()
12 12
 	{
13
-		$this->setTemplatePath($this->module_path . 'tpl');
13
+		$this->setTemplatePath($this->module_path.'tpl');
14 14
 	}
15 15
 
16 16
 	/**
@@ -23,13 +23,13 @@  discard block
 block discarded – undo
23 23
 		$oKrzipModel = getModel('krzip');
24 24
 		$module_config = $oKrzipModel->getConfig();
25 25
 		$module_config->sequence_id = ++self::$sequence_id;
26
-		if(!isset($api_handler) || !isset(self::$api_list[$api_handler]))
26
+		if (!isset($api_handler) || !isset(self::$api_list[$api_handler]))
27 27
 		{
28 28
 			$api_handler = $module_config->api_handler;
29 29
 		}
30 30
 
31 31
 		Context::set('template_config', $module_config);
32
-		$this->setTemplateFile('searchForm.' . self::$api_list[$api_handler]);
32
+		$this->setTemplateFile('searchForm.'.self::$api_list[$api_handler]);
33 33
 		$this->setLayoutPath('./common/tpl/');
34 34
 		$this->setLayoutFile('popup_layout');
35 35
 	}
Please login to merge, or discard this patch.