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/column/SelectColumnTag.class.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@
 block discarded – undo
37 37
 		{
38 38
 			parent::ColumnTag(NULL);
39 39
 			$this->name = "*";
40
-		}
41
-		else
40
+		} else
42 41
 		{
43 42
 			parent::ColumnTag($column->attrs->name);
44 43
 			$dbParser = DB::getParser();
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 	 */
34 34
 	function SelectColumnTag($column)
35 35
 	{
36
-		if($column == "*" || $column->attrs->name == '*')
36
+		if ($column == "*" || $column->attrs->name == '*')
37 37
 		{
38 38
 			parent::ColumnTag(NULL);
39 39
 			$this->name = "*";
@@ -63,20 +63,20 @@  discard block
 block discarded – undo
63 63
 	 */
64 64
 	function getExpressionString()
65 65
 	{
66
-		if($this->name == '*')
66
+		if ($this->name == '*')
67 67
 		{
68 68
 			return "new StarExpression()";
69 69
 		}
70
-		if($this->click_count)
70
+		if ($this->click_count)
71 71
 		{
72
-			return sprintf('new ClickCountExpression(\'%s\', %s, $args->%s)', $this->name, $this->alias ? '\'' . $this->alias . '\'' : "''", $this->click_count);
72
+			return sprintf('new ClickCountExpression(\'%s\', %s, $args->%s)', $this->name, $this->alias ? '\''.$this->alias.'\'' : "''", $this->click_count);
73 73
 		}
74
-		if(strpos($this->name, '$') === 0)
74
+		if (strpos($this->name, '$') === 0)
75 75
 		{
76 76
 			return sprintf('new SelectExpression($args->%s)', substr($this->name, 1));
77 77
 		}
78 78
 		$dbParser = DB::getParser();
79
-		return sprintf('new SelectExpression(\'%s\'%s)', $this->name, $this->alias ? ', \'' . $dbParser->escape($this->alias) . '\'' : '');
79
+		return sprintf('new SelectExpression(\'%s\'%s)', $this->name, $this->alias ? ', \''.$dbParser->escape($this->alias).'\'' : '');
80 80
 	}
81 81
 
82 82
 }
Please login to merge, or discard this patch.
classes/xml/xmlquery/tags/column/SelectColumnsTag.class.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,8 +83,7 @@
 block discarded – undo
83 83
 			if(is_a($column, 'QueryTag'))
84 84
 			{
85 85
 				$output_columns .= $column->toString() . PHP_EOL . ',';
86
-			}
87
-			else
86
+			} else
88 87
 			{
89 88
 				$output_columns .= $column->getExpressionString() . PHP_EOL . ',';
90 89
 			}
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 	 */
28 28
 	function SelectColumnsTag($xml_columns_tag)
29 29
 	{
30
-		if(!$xml_columns_tag)
30
+		if (!$xml_columns_tag)
31 31
 		{
32 32
 			$xml_columns_tag = new Xml_Node_();
33 33
 		}
@@ -37,34 +37,34 @@  discard block
 block discarded – undo
37 37
 
38 38
 		$this->columns = array();
39 39
 
40
-		if(!$xml_columns)
40
+		if (!$xml_columns)
41 41
 		{
42 42
 			$this->columns[] = new SelectColumnTag("*");
43 43
 			return;
44 44
 		}
45 45
 
46
-		if(!is_array($xml_columns))
46
+		if (!is_array($xml_columns))
47 47
 		{
48 48
 			$xml_columns = array($xml_columns);
49 49
 		}
50 50
 
51
-		foreach($xml_columns as $column)
51
+		foreach ($xml_columns as $column)
52 52
 		{
53 53
 			$this->columns[] = new SelectColumnTag($column);
54 54
 		}
55 55
 
56 56
 
57
-		if(!$xml_queries)
57
+		if (!$xml_queries)
58 58
 		{
59 59
 			return;
60 60
 		}
61 61
 
62
-		if(!is_array($xml_queries))
62
+		if (!is_array($xml_queries))
63 63
 		{
64 64
 			$xml_queries = array($xml_queries);
65 65
 		}
66 66
 
67
-		foreach($xml_queries as $column)
67
+		foreach ($xml_queries as $column)
68 68
 		{
69 69
 			$this->columns[] = new QueryTag($column, TRUE);
70 70
 		}
@@ -77,16 +77,16 @@  discard block
 block discarded – undo
77 77
 	 */
78 78
 	function toString()
79 79
 	{
80
-		$output_columns = 'array(' . PHP_EOL;
81
-		foreach($this->columns as $column)
80
+		$output_columns = 'array('.PHP_EOL;
81
+		foreach ($this->columns as $column)
82 82
 		{
83
-			if(is_a($column, 'QueryTag'))
83
+			if (is_a($column, 'QueryTag'))
84 84
 			{
85
-				$output_columns .= $column->toString() . PHP_EOL . ',';
85
+				$output_columns .= $column->toString().PHP_EOL.',';
86 86
 			}
87 87
 			else
88 88
 			{
89
-				$output_columns .= $column->getExpressionString() . PHP_EOL . ',';
89
+				$output_columns .= $column->getExpressionString().PHP_EOL.',';
90 90
 			}
91 91
 		}
92 92
 		$output_columns = substr($output_columns, 0, -1);
@@ -102,9 +102,9 @@  discard block
 block discarded – undo
102 102
 	function getArguments()
103 103
 	{
104 104
 		$arguments = array();
105
-		foreach($this->columns as $column)
105
+		foreach ($this->columns as $column)
106 106
 		{
107
-			if(is_a($column, 'QueryTag'))
107
+			if (is_a($column, 'QueryTag'))
108 108
 			{
109 109
 				$arguments = array_merge($arguments, $column->getArguments());
110 110
 			}
Please login to merge, or discard this patch.
classes/xml/xmlquery/tags/column/UpdateColumnTag.class.php 2 patches
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,14 +41,12 @@  discard block
 block discarded – undo
41 41
 		if($column->attrs->var)
42 42
 		{
43 43
 			$this->argument = new QueryArgument($column);
44
-		}
45
-		else
44
+		} else
46 45
 		{
47 46
 			if(strpos($column->attrs->default, '.') !== FALSE)
48 47
 			{
49 48
 				$this->default_value = "'" . $dbParser->parseColumnName($column->attrs->default) . "'";
50
-			}
51
-			else
49
+			} else
52 50
 			{
53 51
 				$default_value = new DefaultValue($this->name, $column->attrs->default);
54 52
 				if($default_value->isOperation())
@@ -84,8 +82,7 @@  discard block
 block discarded – undo
84 82
 			return sprintf('new UpdateExpression(\'%s\', ${\'%s_argument\'})'
85 83
 							, $this->name
86 84
 							, $this->argument->argument_name);
87
-		}
88
-		else
85
+		} else
89 86
 		{
90 87
 			return sprintf('new UpdateExpressionWithoutArgument(\'%s\', %s)'
91 88
 							, $this->name
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -38,20 +38,20 @@  discard block
 block discarded – undo
38 38
 		$dbParser = DB::getParser();
39 39
 		$this->name = $dbParser->parseColumnName($this->name);
40 40
 
41
-		if($column->attrs->var)
41
+		if ($column->attrs->var)
42 42
 		{
43 43
 			$this->argument = new QueryArgument($column);
44 44
 		}
45 45
 		else
46 46
 		{
47
-			if(strpos($column->attrs->default, '.') !== FALSE)
47
+			if (strpos($column->attrs->default, '.') !== FALSE)
48 48
 			{
49
-				$this->default_value = "'" . $dbParser->parseColumnName($column->attrs->default) . "'";
49
+				$this->default_value = "'".$dbParser->parseColumnName($column->attrs->default)."'";
50 50
 			}
51 51
 			else
52 52
 			{
53 53
 				$default_value = new DefaultValue($this->name, $column->attrs->default);
54
-				if($default_value->isOperation())
54
+				if ($default_value->isOperation())
55 55
 				{
56 56
 					$this->argument = new QueryArgument($column, TRUE);
57 57
 				}
@@ -59,13 +59,13 @@  discard block
 block discarded – undo
59 59
 				else
60 60
 				{
61 61
 					$this->default_value = $default_value->toString();
62
-					if($default_value->isStringFromFunction())
62
+					if ($default_value->isStringFromFunction())
63 63
 					{
64
-						$this->default_value = '"\'".' . $this->default_value . '."\'"';
64
+						$this->default_value = '"\'".'.$this->default_value.'."\'"';
65 65
 					}
66
-					if($default_value->isString())
66
+					if ($default_value->isString())
67 67
 					{
68
-						$this->default_value = '"' . $this->default_value . '"';
68
+						$this->default_value = '"'.$this->default_value.'"';
69 69
 					}
70 70
 				}
71 71
 			}
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 	 */
80 80
 	function getExpressionString()
81 81
 	{
82
-		if($this->argument)
82
+		if ($this->argument)
83 83
 		{
84 84
 			return sprintf('new UpdateExpression(\'%s\', ${\'%s_argument\'})'
85 85
 							, $this->name
Please login to merge, or discard this patch.
classes/xml/xmlquery/tags/column/UpdateColumnsTag.class.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,7 @@
 block discarded – undo
38 38
 			if($column->name === 'query')
39 39
 			{
40 40
 				$this->columns[] = new QueryTag($column, true);
41
-			}
42
-			else
41
+			} else
43 42
 			{
44 43
 				$this->columns[] = new UpdateColumnTag($column);
45 44
 			}
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@  discard block
 block discarded – undo
28 28
 	{
29 29
 		$this->columns = array();
30 30
 
31
-		if(!is_array($xml_columns))
31
+		if (!is_array($xml_columns))
32 32
 		{
33 33
 			$xml_columns = array($xml_columns);
34 34
 		}
35 35
 
36
-		foreach($xml_columns as $column)
36
+		foreach ($xml_columns as $column)
37 37
 		{
38
-			if($column->name === 'query')
38
+			if ($column->name === 'query')
39 39
 			{
40 40
 				$this->columns[] = new QueryTag($column, true);
41 41
 			}
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
 	 */
54 54
 	function toString()
55 55
 	{
56
-		$output_columns = 'array(' . PHP_EOL;
57
-		foreach($this->columns as $column)
56
+		$output_columns = 'array('.PHP_EOL;
57
+		foreach ($this->columns as $column)
58 58
 		{
59
-			$output_columns .= $column->getExpressionString() . PHP_EOL . ',';
59
+			$output_columns .= $column->getExpressionString().PHP_EOL.',';
60 60
 		}
61 61
 		$output_columns = substr($output_columns, 0, -1);
62 62
 		$output_columns .= ')';
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	function getArguments()
72 72
 	{
73 73
 		$arguments = array();
74
-		foreach($this->columns as $column)
74
+		foreach ($this->columns as $column)
75 75
 		{
76 76
 			$arguments[] = $column->getArgument();
77 77
 		}
Please login to merge, or discard this patch.
classes/xml/xmlquery/tags/condition/ConditionTag.class.php 2 patches
Braces   +8 added lines, -16 removed lines patch added patch discarded remove patch
@@ -78,13 +78,11 @@  discard block
 block discarded – undo
78 78
 		{
79 79
 			$this->query = new QueryTag($condition, TRUE);
80 80
 			$this->default_column = $this->query->toString();
81
-		}
82
-		else if($condition->attrs->var && !strpos($condition->attrs->var, '.'))
81
+		} else if($condition->attrs->var && !strpos($condition->attrs->var, '.'))
83 82
 		{
84 83
 			$this->argument = new QueryArgument($condition);
85 84
 			$this->argument_name = $this->argument->getArgumentName();
86
-		}
87
-		else
85
+		} else
88 86
 		{
89 87
 			if(isset($condition->attrs->default))
90 88
 			{
@@ -95,13 +93,11 @@  discard block
 block discarded – undo
95 93
 					if(strpos($default_value, "'") !== FALSE)
96 94
 					{
97 95
 						$default_value = "\"" . $default_value . "\"";
98
-					}
99
-					else
96
+					} else
100 97
 					{
101 98
 						$default_value = "'" . $default_value . "'";
102 99
 					}
103
-				}
104
-				else
100
+				} else
105 101
 				{
106 102
 					$default_value_object = new DefaultValue($this->column_name, $condition->attrs->default);
107 103
 					$default_value = $default_value_object->toString();
@@ -116,16 +112,14 @@  discard block
 block discarded – undo
116 112
 						if(strpos($default_value, "'") !== FALSE)
117 113
 						{
118 114
 							$default_value = "\"" . $default_value . "\"";
119
-						}
120
-						else
115
+						} else
121 116
 						{
122 117
 							$default_value = "'" . $default_value . "'";
123 118
 						}
124 119
 					}
125 120
 				}
126 121
 				$this->default_column = $default_value;
127
-			}
128
-			else
122
+			} else
129 123
 			{
130 124
 				$this->default_column = "'" . $dbParser->parseColumnName($condition->attrs->var) . "'";
131 125
 			}
@@ -161,8 +155,7 @@  discard block
 block discarded – undo
161 155
 							, '"' . $this->operation . '"'
162 156
 							, $this->pipe ? ", '" . $this->pipe . "'" : ''
163 157
 			);
164
-		}
165
-		else if(isset($this->default_column))
158
+		} else if(isset($this->default_column))
166 159
 		{
167 160
 			return sprintf("new ConditionWithoutArgument('%s',%s,%s%s)"
168 161
 							, $this->column_name
@@ -170,8 +163,7 @@  discard block
 block discarded – undo
170 163
 							, '"' . $this->operation . '"'
171 164
 							, $this->pipe ? ", '" . $this->pipe . "'" : ''
172 165
 			);
173
-		}
174
-		else
166
+		} else
175 167
 		{
176 168
 			return sprintf("new ConditionWithArgument('%s',%s,%s%s)"
177 169
 							, $this->column_name
Please login to merge, or discard this patch.
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -67,38 +67,38 @@  discard block
 block discarded – undo
67 67
 		$this->column_name = $dbParser->parseExpression($condition->attrs->column);
68 68
 
69 69
 		// If default value is column name, it should be escaped
70
-		if($isColumnName = (strpos($condition->attrs->default, '.') !== FALSE
70
+		if ($isColumnName = (strpos($condition->attrs->default, '.') !== FALSE
71 71
 				&& strpos($condition->attrs->default, '.') !== 0
72
-				&& strpos($condition->attrs->default, '%') === FALSE ))
72
+				&& strpos($condition->attrs->default, '%') === FALSE))
73 73
 		{
74 74
 			$condition->attrs->default = $dbParser->parseExpression($condition->attrs->default);
75 75
 		}
76 76
 
77
-		if($condition->node_name == 'query')
77
+		if ($condition->node_name == 'query')
78 78
 		{
79 79
 			$this->query = new QueryTag($condition, TRUE);
80 80
 			$this->default_column = $this->query->toString();
81 81
 		}
82
-		else if($condition->attrs->var && !strpos($condition->attrs->var, '.'))
82
+		else if ($condition->attrs->var && !strpos($condition->attrs->var, '.'))
83 83
 		{
84 84
 			$this->argument = new QueryArgument($condition);
85 85
 			$this->argument_name = $this->argument->getArgumentName();
86 86
 		}
87 87
 		else
88 88
 		{
89
-			if(isset($condition->attrs->default))
89
+			if (isset($condition->attrs->default))
90 90
 			{
91 91
 				$operationList = array('in' => 1, 'between' => 1, 'notin' => 1, 'not_in' => 1);
92
-				if(isset($operationList[$this->operation]))
92
+				if (isset($operationList[$this->operation]))
93 93
 				{
94 94
 					$default_value = $condition->attrs->default;
95
-					if(strpos($default_value, "'") !== FALSE)
95
+					if (strpos($default_value, "'") !== FALSE)
96 96
 					{
97
-						$default_value = "\"" . $default_value . "\"";
97
+						$default_value = "\"".$default_value."\"";
98 98
 					}
99 99
 					else
100 100
 					{
101
-						$default_value = "'" . $default_value . "'";
101
+						$default_value = "'".$default_value."'";
102 102
 					}
103 103
 				}
104 104
 				else
@@ -106,20 +106,20 @@  discard block
 block discarded – undo
106 106
 					$default_value_object = new DefaultValue($this->column_name, $condition->attrs->default);
107 107
 					$default_value = $default_value_object->toString();
108 108
 
109
-					if($default_value_object->isStringFromFunction())
109
+					if ($default_value_object->isStringFromFunction())
110 110
 					{
111
-						$default_value = '"\'".' . $default_value . '."\'"';
111
+						$default_value = '"\'".'.$default_value.'."\'"';
112 112
 					}
113 113
 
114
-					if($default_value_object->isString() && !$isColumnName && !is_numeric($condition->attrs->default))
114
+					if ($default_value_object->isString() && !$isColumnName && !is_numeric($condition->attrs->default))
115 115
 					{
116
-						if(strpos($default_value, "'") !== FALSE)
116
+						if (strpos($default_value, "'") !== FALSE)
117 117
 						{
118
-							$default_value = "\"" . $default_value . "\"";
118
+							$default_value = "\"".$default_value."\"";
119 119
 						}
120 120
 						else
121 121
 						{
122
-							$default_value = "'" . $default_value . "'";
122
+							$default_value = "'".$default_value."'";
123 123
 						}
124 124
 					}
125 125
 				}
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 			}
128 128
 			else
129 129
 			{
130
-				$this->default_column = "'" . $dbParser->parseColumnName($condition->attrs->var) . "'";
130
+				$this->default_column = "'".$dbParser->parseColumnName($condition->attrs->var)."'";
131 131
 			}
132 132
 		}
133 133
 	}
@@ -140,11 +140,11 @@  discard block
 block discarded – undo
140 140
 	function getArguments()
141 141
 	{
142 142
 		$arguments = array();
143
-		if($this->query)
143
+		if ($this->query)
144 144
 		{
145 145
 			$arguments = array_merge($arguments, $this->query->getArguments());
146 146
 		}
147
-		if($this->argument)
147
+		if ($this->argument)
148 148
 		{
149 149
 			$arguments[] = $this->argument;
150 150
 		}
@@ -153,31 +153,31 @@  discard block
 block discarded – undo
153 153
 
154 154
 	function getConditionString()
155 155
 	{
156
-		if($this->query)
156
+		if ($this->query)
157 157
 		{
158 158
 			return sprintf("new ConditionSubquery('%s',%s,%s%s)"
159 159
 							, $this->column_name
160 160
 							, $this->default_column
161
-							, '"' . $this->operation . '"'
162
-							, $this->pipe ? ", '" . $this->pipe . "'" : ''
161
+							, '"'.$this->operation.'"'
162
+							, $this->pipe ? ", '".$this->pipe."'" : ''
163 163
 			);
164 164
 		}
165
-		else if(isset($this->default_column))
165
+		else if (isset($this->default_column))
166 166
 		{
167 167
 			return sprintf("new ConditionWithoutArgument('%s',%s,%s%s)"
168 168
 							, $this->column_name
169 169
 							, $this->default_column
170
-							, '"' . $this->operation . '"'
171
-							, $this->pipe ? ", '" . $this->pipe . "'" : ''
170
+							, '"'.$this->operation.'"'
171
+							, $this->pipe ? ", '".$this->pipe."'" : ''
172 172
 			);
173 173
 		}
174 174
 		else
175 175
 		{
176 176
 			return sprintf("new ConditionWithArgument('%s',%s,%s%s)"
177 177
 							, $this->column_name
178
-							, '$' . $this->argument_name . '_argument'
179
-							, '"' . $this->operation . '"'
180
-							, $this->pipe ? ", '" . $this->pipe . "'" : ''
178
+							, '$'.$this->argument_name.'_argument'
179
+							, '"'.$this->operation.'"'
180
+							, $this->pipe ? ", '".$this->pipe."'" : ''
181 181
 			);
182 182
 		}
183 183
 	}
Please login to merge, or discard this patch.
classes/xml/xmlquery/tags/navigation/IndexTag.class.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,7 @@
 block discarded – undo
67 67
 			$arg->attrs->default = 'asc';
68 68
 			$this->sort_order_argument = new SortQueryArgument($arg);
69 69
 			$this->sort_order = '$' . $this->sort_order_argument->getArgumentName() . '_argument';
70
-		}
71
-		else
70
+		} else
72 71
 		{
73 72
 			$this->sort_order = '"' . $this->sort_order . '"';
74 73
 		}
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,18 +59,18 @@  discard block
 block discarded – undo
59 59
 		// Sort order - asc / desc
60 60
 		$this->sort_order = $index->attrs->order;
61 61
 		$sortList = array('asc' => 1, 'desc' => 1);
62
-		if(!isset($sortList[$this->sort_order]))
62
+		if (!isset($sortList[$this->sort_order]))
63 63
 		{
64 64
 			$arg = new Xml_Node_();
65 65
 			$arg->attrs = new Xml_Node_();
66 66
 			$arg->attrs->var = $this->sort_order;
67 67
 			$arg->attrs->default = 'asc';
68 68
 			$this->sort_order_argument = new SortQueryArgument($arg);
69
-			$this->sort_order = '$' . $this->sort_order_argument->getArgumentName() . '_argument';
69
+			$this->sort_order = '$'.$this->sort_order_argument->getArgumentName().'_argument';
70 70
 		}
71 71
 		else
72 72
 		{
73
-			$this->sort_order = '"' . $this->sort_order . '"';
73
+			$this->sort_order = '"'.$this->sort_order.'"';
74 74
 		}
75 75
 	}
76 76
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 	{
84 84
 		$arguments = array();
85 85
 		$arguments[] = $this->argument;
86
-		if($this->sort_order_argument)
86
+		if ($this->sort_order_argument)
87 87
 		{
88 88
 			$arguments[] = $this->sort_order_argument;
89 89
 		}
Please login to merge, or discard this patch.
classes/xml/xmlquery/tags/navigation/NavigationTag.class.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,8 +111,7 @@
 block discarded – undo
111 111
 		if($this->limit)
112 112
 		{
113 113
 			return $this->limit->toString();
114
-		}
115
-		else
114
+		} else
116 115
 		{
117 116
 			return "";
118 117
 		}
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -49,36 +49,36 @@  discard block
 block discarded – undo
49 49
 	function NavigationTag($xml_navigation)
50 50
 	{
51 51
 		$this->order = array();
52
-		if($xml_navigation)
52
+		if ($xml_navigation)
53 53
 		{
54 54
 			$order = $xml_navigation->index;
55
-			if($order)
55
+			if ($order)
56 56
 			{
57
-				if(!is_array($order))
57
+				if (!is_array($order))
58 58
 				{
59 59
 					$order = array($order);
60 60
 				}
61
-				foreach($order as $order_info)
61
+				foreach ($order as $order_info)
62 62
 				{
63 63
 					$this->order[] = new IndexTag($order_info);
64 64
 				}
65 65
 
66
-				if($xml_navigation->page && $xml_navigation->page->attrs || $xml_navigation->list_count && $xml_navigation->list_count->attrs)
66
+				if ($xml_navigation->page && $xml_navigation->page->attrs || $xml_navigation->list_count && $xml_navigation->list_count->attrs)
67 67
 				{
68 68
 					$this->limit = new LimitTag($xml_navigation);
69 69
 				}
70 70
 
71
-				if($xml_navigation->list_count)
71
+				if ($xml_navigation->list_count)
72 72
 				{
73 73
 					$this->list_count = $xml_navigation->list_count->attrs;
74 74
 				}
75 75
 
76
-				if($xml_navigation->page_count)
76
+				if ($xml_navigation->page_count)
77 77
 				{
78 78
 					$this->page_count = $xml_navigation->page_count->attrs;
79 79
 				}
80 80
 
81
-				if($xml_navigation->page)
81
+				if ($xml_navigation->page)
82 82
 				{
83 83
 					$this->page = $xml_navigation->page->attrs;
84 84
 				}
@@ -92,10 +92,10 @@  discard block
 block discarded – undo
92 92
 	 */
93 93
 	function getOrderByString()
94 94
 	{
95
-		$output = 'array(' . PHP_EOL;
96
-		foreach($this->order as $order)
95
+		$output = 'array('.PHP_EOL;
96
+		foreach ($this->order as $order)
97 97
 		{
98
-			$output .= $order->toString() . PHP_EOL . ',';
98
+			$output .= $order->toString().PHP_EOL.',';
99 99
 		}
100 100
 		$output = substr($output, 0, -1);
101 101
 		$output .= ')';
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 	 */
109 109
 	function getLimitString()
110 110
 	{
111
-		if($this->limit)
111
+		if ($this->limit)
112 112
 		{
113 113
 			return $this->limit->toString();
114 114
 		}
@@ -121,11 +121,11 @@  discard block
 block discarded – undo
121 121
 	function getArguments()
122 122
 	{
123 123
 		$arguments = array();
124
-		foreach($this->order as $order)
124
+		foreach ($this->order as $order)
125 125
 		{
126 126
 			$arguments = array_merge($order->getArguments(), $arguments);
127 127
 		}
128
-		if($this->limit)
128
+		if ($this->limit)
129 129
 		{
130 130
 			$arguments = array_merge($this->limit->getArguments(), $arguments);
131 131
 		}
Please login to merge, or discard this patch.
classes/xml/xmlquery/tags/table/TablesTag.class.php 2 patches
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -68,14 +68,12 @@  discard block
 block discarded – undo
68 68
 			if($tag->attrs->query == 'true')
69 69
 			{
70 70
 				$this->tables[] = new QueryTag($tag, true);
71
-			}
72
-			else
71
+			} else
73 72
 			{
74 73
 				if(isset($indexes[$tag->attrs->name]) && $indexes[$tag->attrs->name])
75 74
 				{
76 75
 					$this->tables[] = new HintTableTag($tag, $indexes[$tag->attrs->name]);
77
-				}
78
-				else
76
+				} else
79 77
 				{
80 78
 					$this->tables[] = new TableTag($tag);
81 79
 				}
@@ -96,8 +94,7 @@  discard block
 block discarded – undo
96 94
 			if(is_a($table, 'QueryTag'))
97 95
 			{
98 96
 				$output_tables .= $table->toString() . PHP_EOL . ',';
99
-			}
100
-			else
97
+			} else
101 98
 			{
102 99
 				$output_tables .= $table->getTableString() . PHP_EOL . ',';
103 100
 			}
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -38,21 +38,21 @@  discard block
 block discarded – undo
38 38
 		$this->tables = array();
39 39
 
40 40
 		$xml_tables = $xml_tables_tag->table;
41
-		if(!is_array($xml_tables))
41
+		if (!is_array($xml_tables))
42 42
 		{
43 43
 			$xml_tables = array($xml_tables);
44 44
 		}
45 45
 
46
-		if($xml_index_hints_tag)
46
+		if ($xml_index_hints_tag)
47 47
 		{
48 48
 			$index_nodes = $xml_index_hints_tag->index;
49
-			if(!is_array($index_nodes))
49
+			if (!is_array($index_nodes))
50 50
 			{
51 51
 				$index_nodes = array($index_nodes);
52 52
 			}
53
-			foreach($index_nodes as $index_node)
53
+			foreach ($index_nodes as $index_node)
54 54
 			{
55
-				if(!isset($indexes[$index_node->attrs->table]))
55
+				if (!isset($indexes[$index_node->attrs->table]))
56 56
 				{
57 57
 					$indexes[$index_node->attrs->table] = array();
58 58
 				}
@@ -63,15 +63,15 @@  discard block
 block discarded – undo
63 63
 			}
64 64
 		}
65 65
 
66
-		foreach($xml_tables as $tag)
66
+		foreach ($xml_tables as $tag)
67 67
 		{
68
-			if($tag->attrs->query == 'true')
68
+			if ($tag->attrs->query == 'true')
69 69
 			{
70 70
 				$this->tables[] = new QueryTag($tag, true);
71 71
 			}
72 72
 			else
73 73
 			{
74
-				if(isset($indexes[$tag->attrs->name]) && $indexes[$tag->attrs->name])
74
+				if (isset($indexes[$tag->attrs->name]) && $indexes[$tag->attrs->name])
75 75
 				{
76 76
 					$this->tables[] = new HintTableTag($tag, $indexes[$tag->attrs->name]);
77 77
 				}
@@ -90,16 +90,16 @@  discard block
 block discarded – undo
90 90
 
91 91
 	function toString()
92 92
 	{
93
-		$output_tables = 'array(' . PHP_EOL;
94
-		foreach($this->tables as $table)
93
+		$output_tables = 'array('.PHP_EOL;
94
+		foreach ($this->tables as $table)
95 95
 		{
96
-			if(is_a($table, 'QueryTag'))
96
+			if (is_a($table, 'QueryTag'))
97 97
 			{
98
-				$output_tables .= $table->toString() . PHP_EOL . ',';
98
+				$output_tables .= $table->toString().PHP_EOL.',';
99 99
 			}
100 100
 			else
101 101
 			{
102
-				$output_tables .= $table->getTableString() . PHP_EOL . ',';
102
+				$output_tables .= $table->getTableString().PHP_EOL.',';
103 103
 			}
104 104
 		}
105 105
 		$output_tables = substr($output_tables, 0, -1);
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 	function getArguments()
111 111
 	{
112 112
 		$arguments = array();
113
-		foreach($this->tables as $table)
113
+		foreach ($this->tables as $table)
114 114
 		{
115 115
 			$arguments = array_merge($arguments, $table->getArguments());
116 116
 		}
Please login to merge, or discard this patch.
config/config.inc.php 2 patches
Braces   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -10,8 +10,7 @@  discard block
 block discarded – undo
10 10
 if(version_compare(PHP_VERSION, '5.4.0', '<'))
11 11
 {
12 12
 	@error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_WARNING);
13
-}
14
-else
13
+} else
15 14
 {
16 15
 	@error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_WARNING ^ E_STRICT);
17 16
 }
@@ -56,8 +55,7 @@  discard block
 block discarded – undo
56 55
 if(file_exists(_XE_PATH_ . 'config/package.inc.php'))
57 56
 {
58 57
 	require _XE_PATH_ . 'config/package.inc.php';
59
-}
60
-else
58
+} else
61 59
 {
62 60
 	/**
63 61
 	 * Package type
@@ -398,12 +396,13 @@  discard block
 block discarded – undo
398 396
 	if(isset($GLOBALS['__xe_autoload_file_map'][strtolower($class_name)]))
399 397
 	{
400 398
 		require _XE_PATH_ . $GLOBALS['__xe_autoload_file_map'][strtolower($class_name)];
401
-	}
402
-	elseif(preg_match('/^([a-zA-Z0-9_]+?)(Admin)?(View|Controller|Model|Api|Wap|Mobile)?$/', $class_name, $matches))
399
+	} elseif(preg_match('/^([a-zA-Z0-9_]+?)(Admin)?(View|Controller|Model|Api|Wap|Mobile)?$/', $class_name, $matches))
403 400
 	{
404 401
 		$candidate_filename = array();
405 402
 		$candidate_filename[] = 'modules/' . $matches[1] . '/' . $matches[1];
406
-		if(isset($matches[2]) && $matches[2]) $candidate_filename[] = 'admin';
403
+		if(isset($matches[2]) && $matches[2]) {
404
+			$candidate_filename[] = 'admin';
405
+		}
407 406
 		$candidate_filename[] = (isset($matches[3]) && $matches[3]) ? strtolower($matches[3]) : 'class';
408 407
 		$candidate_filename[] = 'php';
409 408
 
Please login to merge, or discard this patch.
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  * @file   config/config.inc.php
8 8
  * @author NAVER ([email protected])
9 9
  */
10
-if(version_compare(PHP_VERSION, '5.4.0', '<'))
10
+if (version_compare(PHP_VERSION, '5.4.0', '<'))
11 11
 {
12 12
 	@error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_WARNING);
13 13
 }
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 	@error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_WARNING ^ E_STRICT);
17 17
 }
18 18
 
19
-if(!defined('__XE__'))
19
+if (!defined('__XE__'))
20 20
 {
21 21
 	exit();
22 22
 }
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
 ini_set('session.use_only_cookies', 0);
54 54
 
55 55
 
56
-if(file_exists(_XE_PATH_ . 'config/package.inc.php'))
56
+if (file_exists(_XE_PATH_.'config/package.inc.php'))
57 57
 {
58
-	require _XE_PATH_ . 'config/package.inc.php';
58
+	require _XE_PATH_.'config/package.inc.php';
59 59
 }
60 60
 else
61 61
 {
@@ -97,12 +97,12 @@  discard block
 block discarded – undo
97 97
  * define('__ENABLE_PHPUNIT_TEST__', 0);
98 98
  * define('__PROXY_SERVER__', 'http://domain:port/path');
99 99
  */
100
-if(file_exists(_XE_PATH_ . 'config/config.user.inc.php'))
100
+if (file_exists(_XE_PATH_.'config/config.user.inc.php'))
101 101
 {
102
-	require _XE_PATH_ . 'config/config.user.inc.php';
102
+	require _XE_PATH_.'config/config.user.inc.php';
103 103
 }
104 104
 
105
-if(!defined('__DEBUG__'))
105
+if (!defined('__DEBUG__'))
106 106
 {
107 107
 	/**
108 108
 	 * output debug message(bit value)
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 	define('__DEBUG__', 0);
118 118
 }
119 119
 
120
-if(!defined('__DEBUG_OUTPUT__'))
120
+if (!defined('__DEBUG_OUTPUT__'))
121 121
 {
122 122
 	/**
123 123
 	 * output location of debug message
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 	define('__DEBUG_OUTPUT__', 0);
132 132
 }
133 133
 
134
-if(!defined('__DEBUG_PROTECT__'))
134
+if (!defined('__DEBUG_PROTECT__'))
135 135
 {
136 136
 	/**
137 137
 	 * output comments of the firePHP console and browser
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 	define('__DEBUG_PROTECT__', 1);
145 145
 }
146 146
 
147
-if(!defined('__DEBUG_PROTECT_IP__'))
147
+if (!defined('__DEBUG_PROTECT_IP__'))
148 148
 {
149 149
 	/**
150 150
 	 * Set a ip address to allow debug
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 	define('__DEBUG_PROTECT_IP__', '127.0.0.1');
153 153
 }
154 154
 
155
-if(!defined('__DEBUG_DB_OUTPUT__'))
155
+if (!defined('__DEBUG_DB_OUTPUT__'))
156 156
 {
157 157
 	/**
158 158
 	 * DB error message definition
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 	define('__DEBUG_DB_OUTPUT__', 0);
166 166
 }
167 167
 
168
-if(!defined('__LOG_SLOW_QUERY__'))
168
+if (!defined('__LOG_SLOW_QUERY__'))
169 169
 {
170 170
 	/**
171 171
 	 * Query log for only timeout query among DB queries
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 	define('__LOG_SLOW_QUERY__', 0);
180 180
 }
181 181
 
182
-if(!defined('__LOG_SLOW_TRIGGER__'))
182
+if (!defined('__LOG_SLOW_TRIGGER__'))
183 183
 {
184 184
 	/**
185 185
 	 * Trigger excute time log
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
 	define('__LOG_SLOW_TRIGGER__', 0);
194 194
 }
195 195
 
196
-if(!defined('__LOG_SLOW_ADDON__'))
196
+if (!defined('__LOG_SLOW_ADDON__'))
197 197
 {
198 198
 	/**
199 199
 	 * Addon excute time log
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 	define('__LOG_SLOW_ADDON__', 0);
208 208
 }
209 209
 
210
-if(!defined('__LOG_SLOW_WIDGET__'))
210
+if (!defined('__LOG_SLOW_WIDGET__'))
211 211
 {
212 212
 	/**
213 213
 	 * Widget excute time log
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 	define('__LOG_SLOW_WIDGET__', 0);
222 222
 }
223 223
 
224
-if(!defined('__DEBUG_QUERY__'))
224
+if (!defined('__DEBUG_QUERY__'))
225 225
 {
226 226
 	/**
227 227
 	 * Leave DB query information
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 	define('__DEBUG_QUERY__', 0);
235 235
 }
236 236
 
237
-if(!defined('__OB_GZHANDLER_ENABLE__'))
237
+if (!defined('__OB_GZHANDLER_ENABLE__'))
238 238
 {
239 239
 	/**
240 240
 	 * option to enable/disable a compression feature using ob_gzhandler
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 	define('__OB_GZHANDLER_ENABLE__', 1);
249 249
 }
250 250
 
251
-if(!defined('__ENABLE_PHPUNIT_TEST__'))
251
+if (!defined('__ENABLE_PHPUNIT_TEST__'))
252 252
 {
253 253
 	/**
254 254
 	 * decide to use/not use the php unit test (Path/tests/index.php)
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 	define('__ENABLE_PHPUNIT_TEST__', 0);
262 262
 }
263 263
 
264
-if(!defined('__PROXY_SERVER__'))
264
+if (!defined('__PROXY_SERVER__'))
265 265
 {
266 266
 	/**
267 267
 	 * __PROXY_SERVER__ has server information to request to the external through the target server
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
 	define('__PROXY_SERVER__', NULL);
271 271
 }
272 272
 
273
-if(!defined('__ERROR_LOG__'))
273
+if (!defined('__ERROR_LOG__'))
274 274
 {
275 275
 	/**
276 276
 	 * __ERROR_LOG__ 는 PHP의 에러로그를 출력하는 기능입니다. 개발시 워닝에러이상의 에러부터 잡기 시작합니다.
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
 	define('__ERROR_LOG__', 0);
282 282
 }
283 283
 
284
-if(!defined('__DISABLE_DEFAULT_CSS__'))
284
+if (!defined('__DISABLE_DEFAULT_CSS__'))
285 285
 {
286 286
 	/**
287 287
 	 * XE의 기본 CSS 스타일을 로드하지 않도록 합니다.
@@ -297,25 +297,25 @@  discard block
 block discarded – undo
297 297
 }
298 298
 
299 299
 // Require specific files when using Firebug console output
300
-if((__DEBUG_OUTPUT__ == 2) && version_compare(PHP_VERSION, '6.0.0') === -1)
300
+if ((__DEBUG_OUTPUT__ == 2) && version_compare(PHP_VERSION, '6.0.0') === -1)
301 301
 {
302
-	require _XE_PATH_ . 'libs/FirePHPCore/FirePHP.class.php';
302
+	require _XE_PATH_.'libs/FirePHPCore/FirePHP.class.php';
303 303
 }
304 304
 
305 305
 // Set Timezone as server time
306
-if(version_compare(PHP_VERSION, '5.3.0') >= 0)
306
+if (version_compare(PHP_VERSION, '5.3.0') >= 0)
307 307
 {
308 308
 	date_default_timezone_set(@date_default_timezone_get());
309 309
 }
310 310
 
311 311
 // Require a function-defined-file for simple use
312
-require(_XE_PATH_ . 'config/func.inc.php');
312
+require(_XE_PATH_.'config/func.inc.php');
313 313
 
314
-if(__DEBUG__) {
314
+if (__DEBUG__) {
315 315
 	define('__StartTime__', getMicroTime());
316 316
 }
317 317
 
318
-if(__DEBUG__) {
318
+if (__DEBUG__) {
319 319
 	$GLOBALS['__elapsed_class_load__'] = 0;
320 320
 }
321 321
 
@@ -418,38 +418,38 @@  discard block
 block discarded – undo
418 418
 
419 419
 function __xe_autoload($class_name)
420 420
 {
421
-	if(__DEBUG__) {
421
+	if (__DEBUG__) {
422 422
 		$time_at = getMicroTime();
423 423
 	}
424 424
 
425
-	if(isset($GLOBALS['__xe_autoload_file_map'][strtolower($class_name)]))
425
+	if (isset($GLOBALS['__xe_autoload_file_map'][strtolower($class_name)]))
426 426
 	{
427
-		require _XE_PATH_ . $GLOBALS['__xe_autoload_file_map'][strtolower($class_name)];
427
+		require _XE_PATH_.$GLOBALS['__xe_autoload_file_map'][strtolower($class_name)];
428 428
 	}
429
-	elseif(preg_match('/^([a-zA-Z0-9_]+?)(Admin)?(View|Controller|Model|Api|Wap|Mobile)?$/', $class_name, $matches))
429
+	elseif (preg_match('/^([a-zA-Z0-9_]+?)(Admin)?(View|Controller|Model|Api|Wap|Mobile)?$/', $class_name, $matches))
430 430
 	{
431 431
 		$candidate_filename = array();
432
-		$candidate_filename[] = 'modules/' . $matches[1] . '/' . $matches[1];
433
-		if(isset($matches[2]) && $matches[2]) $candidate_filename[] = 'admin';
432
+		$candidate_filename[] = 'modules/'.$matches[1].'/'.$matches[1];
433
+		if (isset($matches[2]) && $matches[2]) $candidate_filename[] = 'admin';
434 434
 		$candidate_filename[] = (isset($matches[3]) && $matches[3]) ? strtolower($matches[3]) : 'class';
435 435
 		$candidate_filename[] = 'php';
436 436
 
437 437
 		$candidate_filename = implode('.', $candidate_filename);
438 438
 
439
-		if(file_exists(_XE_PATH_ . $candidate_filename))
439
+		if (file_exists(_XE_PATH_.$candidate_filename))
440 440
 		{
441
-			require _XE_PATH_ . $candidate_filename;
441
+			require _XE_PATH_.$candidate_filename;
442 442
 		}
443 443
 	}
444 444
 
445
-	if(__DEBUG__) {
445
+	if (__DEBUG__) {
446 446
 		$GLOBALS['__elapsed_class_load__'] += getMicroTime() - $time_at;
447 447
 	}
448 448
 }
449 449
 spl_autoload_register('__xe_autoload');
450 450
 
451
-if(file_exists(_XE_PATH_  . '/vendor/autoload.php')) {
452
-	require _XE_PATH_  . '/vendor/autoload.php';
451
+if (file_exists(_XE_PATH_.'/vendor/autoload.php')) {
452
+	require _XE_PATH_.'/vendor/autoload.php';
453 453
 }
454 454
 /* End of file config.inc.php */
455 455
 /* Location: ./config/config.inc.php */
Please login to merge, or discard this patch.