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
Pull Request — master (#1805)
by
unknown
18:31
created
addons/point_level_icon/point_level_icon.lib.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  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
 	}
@@ -16,15 +16,15 @@  discard block
 block discarded – undo
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 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,11 +55,11 @@  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 65
 				$per = $per . '%';
Please login to merge, or discard this patch.
addons/resize_image/resize_image.addon.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /* Copyright (C) NAVER <http://www.navercorp.com> */
3 3
 
4
-if(!defined('__XE__'))
4
+if (!defined('__XE__'))
5 5
 {
6 6
 	exit();
7 7
 }
@@ -11,9 +11,9 @@  discard block
 block discarded – undo
11 11
  * @author NAVER ([email protected])
12 12
  * @brief Add-on to resize images in the body
13 13
  */
14
-if($called_position == 'after_module_proc' && Context::getResponseMethod() == "HTML" && !isCrawler())
14
+if ($called_position == 'after_module_proc' && Context::getResponseMethod() == "HTML" && !isCrawler())
15 15
 {
16
-	if(Mobile::isFromMobilePhone())
16
+	if (Mobile::isFromMobilePhone())
17 17
 	{
18 18
 		Context::loadFile('./addons/resize_image/css/resize_image.mobile.css', true);
19 19
 	}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@
 block discarded – undo
16 16
 	if(Mobile::isFromMobilePhone())
17 17
 	{
18 18
 		Context::loadFile('./addons/resize_image/css/resize_image.mobile.css', true);
19
-	}
20
-	else
19
+	} else
21 20
 	{
22 21
 		Context::loadJavascriptPlugin('ui');
23 22
 		Context::loadFile(array('./addons/resize_image/js/resize_image.min.js', 'body', '', null), true);
Please login to merge, or discard this patch.
classes/cache/CacheApc.class.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 	 */
19 19
 	function getInstance($opt = null)
20 20
 	{
21
-		if(!$GLOBALS['__CacheApc__'])
21
+		if (!$GLOBALS['__CacheApc__'])
22 22
 		{
23 23
 			$GLOBALS['__CacheApc__'] = new CacheApc();
24 24
 		}
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 	 */
57 57
 	function put($key, $buff, $valid_time = 0)
58 58
 	{
59
-		if($valid_time == 0)
59
+		if ($valid_time == 0)
60 60
 		{
61 61
 			$valid_time = $this->valid_time;
62 62
 		}
@@ -76,13 +76,13 @@  discard block
 block discarded – undo
76 76
 	{
77 77
 		$_key = md5(_XE_PATH_ . $key);
78 78
 		$obj = apc_fetch($_key, $success);
79
-		if(!$success || !is_array($obj))
79
+		if (!$success || !is_array($obj))
80 80
 		{
81 81
 			return false;
82 82
 		}
83 83
 		unset($obj[1]);
84 84
 
85
-		if($modified_time > 0 && $modified_time > $obj[0])
85
+		if ($modified_time > 0 && $modified_time > $obj[0])
86 86
 		{
87 87
 			$this->delete($key);
88 88
 			return false;
@@ -103,12 +103,12 @@  discard block
 block discarded – undo
103 103
 	{
104 104
 		$_key = md5(_XE_PATH_ . $key);
105 105
 		$obj = apc_fetch($_key, $success);
106
-		if(!$success || !is_array($obj))
106
+		if (!$success || !is_array($obj))
107 107
 		{
108 108
 			return false;
109 109
 		}
110 110
 
111
-		if($modified_time > 0 && $modified_time > $obj[0])
111
+		if ($modified_time > 0 && $modified_time > $obj[0])
112 112
 		{
113 113
 			$this->delete($key);
114 114
 			return false;
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 	}
149 149
 }
150 150
 
151
-CacheApc::$isSupport  = function_exists('apc_add');
151
+CacheApc::$isSupport = function_exists('apc_add');
152 152
 
153 153
 /* End of file CacheApc.class.php */
154 154
 /* Location: ./classes/cache/CacheApc.class.php */
Please login to merge, or discard this patch.
classes/cache/CacheMemcache.class.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 	 */
23 23
 	function getInstance($url)
24 24
 	{
25
-		if(!$GLOBALS['__CacheMemcache__'])
25
+		if (!$GLOBALS['__CacheMemcache__'])
26 26
 		{
27 27
 			$GLOBALS['__CacheMemcache__'] = new CacheMemcache($url);
28 28
 		}
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 		$config['url'] = is_array($url) ? $url : array($url);
43 43
 		$this->Memcache = new Memcache;
44 44
 
45
-		foreach($config['url'] as $url)
45
+		foreach ($config['url'] as $url)
46 46
 		{
47 47
 			$info = parse_url($url);
48 48
 			$this->Memcache->addServer($info['host'], $info['port']);
@@ -56,12 +56,12 @@  discard block
 block discarded – undo
56 56
 	 */
57 57
 	function isSupport()
58 58
 	{
59
-		if(isset($GLOBALS['XE_MEMCACHE_SUPPORT']))
59
+		if (isset($GLOBALS['XE_MEMCACHE_SUPPORT']))
60 60
 		{
61 61
 			return true;
62 62
 		}
63 63
 
64
-		if($this->Memcache->set('xe', 'xe', MEMCACHE_COMPRESSED, 1))
64
+		if ($this->Memcache->set('xe', 'xe', MEMCACHE_COMPRESSED, 1))
65 65
 		{
66 66
 			$GLOBALS['XE_MEMCACHE_SUPPORT'] = true;
67 67
 		}
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 	 */
104 104
 	function put($key, $buff, $valid_time = 0)
105 105
 	{
106
-		if($valid_time == 0)
106
+		if ($valid_time == 0)
107 107
 		{
108 108
 			$valid_time = $this->valid_time;
109 109
 		}
@@ -124,13 +124,13 @@  discard block
 block discarded – undo
124 124
 		$_key = $this->getKey($key);
125 125
 
126 126
 		$obj = $this->Memcache->get($_key);
127
-		if(!$obj || !is_array($obj))
127
+		if (!$obj || !is_array($obj))
128 128
 		{
129 129
 			return false;
130 130
 		}
131 131
 		unset($obj[1]);
132 132
 
133
-		if($modified_time > 0 && $modified_time > $obj[0])
133
+		if ($modified_time > 0 && $modified_time > $obj[0])
134 134
 		{
135 135
 			$this->_delete($_key);
136 136
 			return false;
@@ -153,12 +153,12 @@  discard block
 block discarded – undo
153 153
 	{
154 154
 		$_key = $this->getKey($key);
155 155
 		$obj = $this->Memcache->get($_key);
156
-		if(!$obj || !is_array($obj))
156
+		if (!$obj || !is_array($obj))
157 157
 		{
158 158
 			return false;
159 159
 		}
160 160
 
161
-		if($modified_time > 0 && $modified_time > $obj[0])
161
+		if ($modified_time > 0 && $modified_time > $obj[0])
162 162
 		{
163 163
 			$this->_delete($_key);
164 164
 			return false;
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,8 +64,7 @@
 block discarded – undo
64 64
 		if($this->Memcache->set('xe', 'xe', MEMCACHE_COMPRESSED, 1))
65 65
 		{
66 66
 			$GLOBALS['XE_MEMCACHE_SUPPORT'] = true;
67
-		}
68
-		else
67
+		} else
69 68
 		{
70 69
 			$GLOBALS['XE_MEMCACHE_SUPPORT'] = false;
71 70
 		}
Please login to merge, or discard this patch.
classes/cache/CacheWincache.class.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 	 */
21 21
 	function getInstance($opt = null)
22 22
 	{
23
-		if(!$GLOBALS['__CacheWincache__'])
23
+		if (!$GLOBALS['__CacheWincache__'])
24 24
 		{
25 25
 			$GLOBALS['__CacheWincache__'] = new CacheWincache();
26 26
 		}
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 	 */
60 60
 	function put($key, $buff, $valid_time = 0)
61 61
 	{
62
-		if($valid_time == 0)
62
+		if ($valid_time == 0)
63 63
 		{
64 64
 			$valid_time = $this->valid_time;
65 65
 		}
@@ -78,13 +78,13 @@  discard block
 block discarded – undo
78 78
 	{
79 79
 		$_key = md5(_XE_PATH_ . $key);
80 80
 		$obj = wincache_ucache_get($_key, $success);
81
-		if(!$success || !is_array($obj))
81
+		if (!$success || !is_array($obj))
82 82
 		{
83 83
 			return false;
84 84
 		}
85 85
 		unset($obj[1]);
86 86
 
87
-		if($modified_time > 0 && $modified_time > $obj[0])
87
+		if ($modified_time > 0 && $modified_time > $obj[0])
88 88
 		{
89 89
 			$this->_delete($_key);
90 90
 			return false;
@@ -105,12 +105,12 @@  discard block
 block discarded – undo
105 105
 	{
106 106
 		$_key = md5(_XE_PATH_ . $key);
107 107
 		$obj = wincache_ucache_get($_key, $success);
108
-		if(!$success || !is_array($obj))
108
+		if (!$success || !is_array($obj))
109 109
 		{
110 110
 			return false;
111 111
 		}
112 112
 
113
-		if($modified_time > 0 && $modified_time > $obj[0])
113
+		if ($modified_time > 0 && $modified_time > $obj[0])
114 114
 		{
115 115
 			$this->_delete($_key);
116 116
 			return false;
Please login to merge, or discard this patch.
classes/db/queryparts/Subquery.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
 
57 57
 	function isJoinTable()
58 58
 	{
59
-		if($this->join_type)
59
+		if ($this->join_type)
60 60
 		{
61 61
 			return true;
62 62
 		}
Please login to merge, or discard this patch.
classes/db/queryparts/condition/ConditionGroup.class.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -32,14 +32,14 @@  discard block
 block discarded – undo
32 32
 	function ConditionGroup($conditions, $pipe = "")
33 33
 	{
34 34
 		$this->conditions = array();
35
-		foreach($conditions as $condition)
35
+		foreach ($conditions as $condition)
36 36
 		{
37
-			if($condition->show())
37
+			if ($condition->show())
38 38
 			{
39 39
 				$this->conditions[] = $condition;
40 40
 			}
41 41
 		}
42
-		if(count($this->conditions) === 0)
42
+		if (count($this->conditions) === 0)
43 43
 		{
44 44
 			$this->_show = false;
45 45
 		}
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
 	function setPipe($pipe)
60 60
 	{
61
-		if($this->pipe !== $pipe)
61
+		if ($this->pipe !== $pipe)
62 62
 		{
63 63
 			$this->_group = null;
64 64
 		}
@@ -72,14 +72,14 @@  discard block
 block discarded – undo
72 72
 	 */
73 73
 	function toString($with_value = true)
74 74
 	{
75
-		if(!isset($this->_group))
75
+		if (!isset($this->_group))
76 76
 		{
77 77
 			$cond_indx = 0;
78 78
 			$group = '';
79 79
 
80
-			foreach($this->conditions as $condition)
80
+			foreach ($this->conditions as $condition)
81 81
 			{
82
-				if($cond_indx === 0)
82
+				if ($cond_indx === 0)
83 83
 				{
84 84
 					$condition->setPipe("");
85 85
 				}
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 				$cond_indx++;
88 88
 			}
89 89
 
90
-			if($this->pipe !== "" && trim($group) !== '')
90
+			if ($this->pipe !== "" && trim($group) !== '')
91 91
 			{
92 92
 				$group = $this->pipe . ' (' . $group . ')';
93 93
 			}
@@ -104,10 +104,10 @@  discard block
 block discarded – undo
104 104
 	function getArguments()
105 105
 	{
106 106
 		$args = array();
107
-		foreach($this->conditions as $condition)
107
+		foreach ($this->conditions as $condition)
108 108
 		{
109 109
 			$arg = $condition->getArgument();
110
-			if($arg)
110
+			if ($arg)
111 111
 			{
112 112
 				$args[] = $arg;
113 113
 			}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,7 @@
 block discarded – undo
42 42
 		if(count($this->conditions) === 0)
43 43
 		{
44 44
 			$this->_show = false;
45
-		}
46
-		else
45
+		} else
47 46
 		{
48 47
 			$this->_show = true;
49 48
 		}
Please login to merge, or discard this patch.
classes/db/queryparts/condition/ConditionWithArgument.class.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 	 */
20 20
 	function ConditionWithArgument($column_name, $argument, $operation, $pipe = "")
21 21
 	{
22
-		if($argument === null)
22
+		if ($argument === null)
23 23
 		{
24 24
 			$this->_show = false;
25 25
 			return;
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
 	function getArgument()
32 32
 	{
33
-		if(!$this->show())
33
+		if (!$this->show())
34 34
 			return;
35 35
 		return $this->argument;
36 36
 	}
@@ -43,14 +43,14 @@  discard block
 block discarded – undo
43 43
 	{
44 44
 		$value = $this->argument->getUnescapedValue();
45 45
 
46
-		if(is_array($value))
46
+		if (is_array($value))
47 47
 		{
48 48
 			$q = '';
49
-			foreach($value as $v)
49
+			foreach ($value as $v)
50 50
 			{
51 51
 				$q .= '?,';
52 52
 			}
53
-			if($q !== '')
53
+			if ($q !== '')
54 54
 			{
55 55
 				$q = substr($q, 0, -1);
56 56
 			}
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 		else
60 60
 		{
61 61
 			// Prepared statements: column names should not be sent as query arguments, but instead concatenated to query string
62
-			if($this->argument->isColumnName())
62
+			if ($this->argument->isColumnName())
63 63
 			{
64 64
 				$q = $value;
65 65
 			}
@@ -76,17 +76,17 @@  discard block
 block discarded – undo
76 76
 	 */
77 77
 	function show()
78 78
 	{
79
-		if(!isset($this->_show))
79
+		if (!isset($this->_show))
80 80
 		{
81
-			if(!$this->argument->isValid())
81
+			if (!$this->argument->isValid())
82 82
 			{
83 83
 				$this->_show = false;
84 84
 			}
85
-			if($this->_value === '\'\'')
85
+			if ($this->_value === '\'\'')
86 86
 			{
87 87
 				$this->_show = false;
88 88
 			}
89
-			if(!isset($this->_show))
89
+			if (!isset($this->_show))
90 90
 			{
91 91
 				return parent::show();
92 92
 			}
Please login to merge, or discard this patch.
Braces   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,8 +30,9 @@  discard block
 block discarded – undo
30 30
 
31 31
 	function getArgument()
32 32
 	{
33
-		if(!$this->show())
34
-			return;
33
+		if(!$this->show()) {
34
+					return;
35
+		}
35 36
 		return $this->argument;
36 37
 	}
37 38
 
@@ -55,15 +56,13 @@  discard block
 block discarded – undo
55 56
 				$q = substr($q, 0, -1);
56 57
 			}
57 58
 			$q = '(' . $q . ')';
58
-		}
59
-		else
59
+		} else
60 60
 		{
61 61
 			// Prepared statements: column names should not be sent as query arguments, but instead concatenated to query string
62 62
 			if($this->argument->isColumnName())
63 63
 			{
64 64
 				$q = $value;
65
-			}
66
-			else
65
+			} else
67 66
 			{
68 67
 				$q = '?';
69 68
 			}
Please login to merge, or discard this patch.
classes/db/queryparts/expression/ClickCountExpression.class.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 	{
28 28
 		parent::SelectExpression($column_name, $alias);
29 29
 
30
-		if(!is_bool($click_count))
30
+		if (!is_bool($click_count))
31 31
 		{
32 32
 			// error_log("Click_count value for $column_name was not boolean", 0);
33 33
 			$this->click_count = false;
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	function getExpression()
48 48
 	{
49 49
 		$db_type = Context::getDBType();
50
-		if($db_type == 'cubrid')
50
+		if ($db_type == 'cubrid')
51 51
 		{
52 52
 			return "INCR($this->column_name)";
53 53
 		}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
 		if($db_type == 'cubrid')
51 51
 		{
52 52
 			return "INCR($this->column_name)";
53
-		}
54
-		else
53
+		} else
55 54
 		{
56 55
 			return "$this->column_name";
57 56
 		}
Please login to merge, or discard this patch.