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 ( 92c79f...f4bfda )
by gyeong-won
06:35
created
classes/xml/xmlquery/tags/navigation/NavigationTag.class.php 2 patches
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 __construct($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.
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.
classes/xml/xmlquery/tags/column/InsertColumnsTag.class.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -28,23 +28,23 @@  discard block
 block discarded – undo
28 28
 	{
29 29
 		$this->columns = array();
30 30
 
31
-		if(!$xml_columns)
31
+		if (!$xml_columns)
32 32
 		{
33 33
 			return;
34 34
 		}
35 35
 
36
-		if(!is_array($xml_columns))
36
+		if (!is_array($xml_columns))
37 37
 		{
38 38
 			$xml_columns = array($xml_columns);
39 39
 		}
40 40
 
41
-		foreach($xml_columns as $column)
41
+		foreach ($xml_columns as $column)
42 42
 		{
43
-			if($column->name === 'query')
43
+			if ($column->name === 'query')
44 44
 			{
45 45
 				$this->columns[] = new QueryTag($column, TRUE);
46 46
 			}
47
-			else if(!isset($column->attrs->var) && !isset($column->attrs->default))
47
+			else if (!isset($column->attrs->var) && !isset($column->attrs->default))
48 48
 			{
49 49
 				$this->columns[] = new InsertColumnTagWithoutArgument($column);
50 50
 			}
@@ -62,10 +62,10 @@  discard block
 block discarded – undo
62 62
 	 */
63 63
 	function toString()
64 64
 	{
65
-		$output_columns = 'array(' . PHP_EOL;
66
-		foreach($this->columns as $column)
65
+		$output_columns = 'array('.PHP_EOL;
66
+		foreach ($this->columns as $column)
67 67
 		{
68
-			$output_columns .= $column->getExpressionString() . PHP_EOL . ',';
68
+			$output_columns .= $column->getExpressionString().PHP_EOL.',';
69 69
 		}
70 70
 		$output_columns = substr($output_columns, 0, -1);
71 71
 		$output_columns .= ')';
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 	function getArguments()
81 81
 	{
82 82
 		$arguments = array();
83
-		foreach($this->columns as $column)
83
+		foreach ($this->columns as $column)
84 84
 		{
85 85
 			$arguments[] = $column->getArgument();
86 86
 		}
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,12 +43,10 @@
 block discarded – undo
43 43
 			if($column->name === 'query')
44 44
 			{
45 45
 				$this->columns[] = new QueryTag($column, TRUE);
46
-			}
47
-			else if(!isset($column->attrs->var) && !isset($column->attrs->default))
46
+			} else if(!isset($column->attrs->var) && !isset($column->attrs->default))
48 47
 			{
49 48
 				$this->columns[] = new InsertColumnTagWithoutArgument($column);
50
-			}
51
-			else
49
+			} else
52 50
 			{
53 51
 				$this->columns[] = new InsertColumnTag($column);
54 52
 			}
Please login to merge, or discard this patch.
classes/xml/xmlquery/tags/column/UpdateColumnTag.class.php 2 patches
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.
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.
classes/xml/xmlquery/tags/column/SelectColumnsTag.class.php 2 patches
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 __construct($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.
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.
classes/xml/xmlquery/tags/column/UpdateColumnsTag.class.php 2 patches
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.
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.
classes/xml/xmlquery/tags/column/SelectColumnTag.class.php 2 patches
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 __construct($column)
35 35
 	{
36
-		if($column == "*" || $column->attrs->name == '*')
36
+		if ($column == "*" || $column->attrs->name == '*')
37 37
 		{
38 38
 			parent::__construct(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.
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::__construct(NULL);
39 39
 			$this->name = "*";
40
-		}
41
-		else
40
+		} else
42 41
 		{
43 42
 			parent::__construct($column->attrs->name);
44 43
 			$dbParser = DB::getParser();
Please login to merge, or discard this patch.
classes/xml/xmlquery/tags/table/TablesTag.class.php 2 patches
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.
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.
classes/xml/xmlquery/tags/table/HintTableTag.class.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,13 +39,13 @@  discard block
 block discarded – undo
39 39
 		$result = sprintf('new %sTableWithHint(\'%s\'%s, array('
40 40
 				, !strncasecmp($dbType, 'Mysql', 5) ? 'Mysql' : $dbType
41 41
 				, $dbParser->escape($this->name)
42
-				, $this->alias ? ', \'' . $dbParser->escape($this->alias) . '\'' : ', null'
42
+				, $this->alias ? ', \''.$dbParser->escape($this->alias).'\'' : ', null'
43 43
 				//, ', \'' . $dbParser->escape($this->index->name) .'\', \'' . $this->index->type .'\''
44 44
 		);
45
-		foreach($this->index as $indx)
45
+		foreach ($this->index as $indx)
46 46
 		{
47 47
 			$result .= "new IndexHint(";
48
-			$result .= '\'' . $dbParser->escape($indx->name) . '\', \'' . $indx->type . '\'' . ') , ';
48
+			$result .= '\''.$dbParser->escape($indx->name).'\', \''.$indx->type.'\''.') , ';
49 49
 		}
50 50
 		$result = substr($result, 0, -2);
51 51
 		$result .= '))';
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
 	function getArguments()
56 56
 	{
57
-		if(!isset($this->conditionsTag))
57
+		if (!isset($this->conditionsTag))
58 58
 		{
59 59
 			return array();
60 60
 		}
Please login to merge, or discard this patch.
classes/xml/xmlquery/tags/table/TableTag.class.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 		$this->name = $dbParser->parseTableName($table->attrs->name);
75 75
 
76 76
 		$this->alias = $table->attrs->alias;
77
-		if(!$this->alias)
77
+		if (!$this->alias)
78 78
 		{
79 79
 			$this->alias = $table->attrs->name;
80 80
 		}
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
 		$this->conditions = $table->conditions;
85 85
 
86
-		if($this->isJoinTable())
86
+		if ($this->isJoinTable())
87 87
 		{
88 88
 			$this->conditionsTag = new JoinConditionsTag($this->conditions);
89 89
 		}
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 	function isJoinTable()
93 93
 	{
94 94
 		$joinList = array('left join' => 1, 'left outer join' => 1, 'right join' => 1, 'right outer join' => 1);
95
-		if(isset($joinList[$this->join_type]) && count($this->conditions))
95
+		if (isset($joinList[$this->join_type]) && count($this->conditions))
96 96
 		{
97 97
 			return true;
98 98
 		}
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 	{
120 120
 		$dbParser = DB::getParser();
121 121
 
122
-		if($this->isJoinTable())
122
+		if ($this->isJoinTable())
123 123
 		{
124 124
 			return sprintf('new JoinTable(\'%s\', \'%s\', "%s", %s)'
125 125
 							, $dbParser->escape($this->name)
@@ -128,12 +128,12 @@  discard block
 block discarded – undo
128 128
 		}
129 129
 		return sprintf('new Table(\'%s\'%s)'
130 130
 						, $dbParser->escape($this->name)
131
-						, $this->alias ? ', \'' . $dbParser->escape($this->alias) . '\'' : '');
131
+						, $this->alias ? ', \''.$dbParser->escape($this->alias).'\'' : '');
132 132
 	}
133 133
 
134 134
 	function getArguments()
135 135
 	{
136
-		if(!isset($this->conditionsTag))
136
+		if (!isset($this->conditionsTag))
137 137
 		{
138 138
 			return array();
139 139
 		}
Please login to merge, or discard this patch.