@@ -198,7 +198,7 @@ |
||
198 | 198 | } |
199 | 199 | |
200 | 200 | /** |
201 | - * @param PartitionDefinition|PartitionDefinition[] $component The component to be built. |
|
201 | + * @param PartitionDefinition[] $component The component to be built. |
|
202 | 202 | * @param array $options Parameters for building. |
203 | 203 | * |
204 | 204 | * @return string |
@@ -108,7 +108,7 @@ |
||
108 | 108 | || ($token->type === Token::TYPE_COMMENT) |
109 | 109 | ) { |
110 | 110 | $lastRaw .= $token->token; |
111 | - $lastValue = trim($lastValue) .' '; |
|
111 | + $lastValue = trim($lastValue) . ' '; |
|
112 | 112 | continue; |
113 | 113 | } |
114 | 114 |
@@ -52,14 +52,14 @@ |
||
52 | 52 | * @var array |
53 | 53 | */ |
54 | 54 | public static $CLAUSES = array( |
55 | - 'DELETE' => array('DELETE', 2), |
|
55 | + 'DELETE' => array('DELETE', 2), |
|
56 | 56 | // Used for options. |
57 | - '_OPTIONS' => array('_OPTIONS', 1), |
|
58 | - 'FROM' => array('FROM', 3), |
|
59 | - 'PARTITION' => array('PARTITION', 3), |
|
60 | - 'WHERE' => array('WHERE', 3), |
|
61 | - 'ORDER BY' => array('ORDER BY', 3), |
|
62 | - 'LIMIT' => array('LIMIT', 3), |
|
57 | + '_OPTIONS' => array('_OPTIONS', 1), |
|
58 | + 'FROM' => array('FROM', 3), |
|
59 | + 'PARTITION' => array('PARTITION', 3), |
|
60 | + 'WHERE' => array('WHERE', 3), |
|
61 | + 'ORDER BY' => array('ORDER BY', 3), |
|
62 | + 'LIMIT' => array('LIMIT', 3), |
|
63 | 63 | ); |
64 | 64 | |
65 | 65 | /** |
@@ -54,11 +54,11 @@ |
||
54 | 54 | * @var array |
55 | 55 | */ |
56 | 56 | public static $CLAUSES = array( |
57 | - 'DROP' => array('DROP', 2), |
|
57 | + 'DROP' => array('DROP', 2), |
|
58 | 58 | // Used for options. |
59 | - '_OPTIONS' => array('_OPTIONS', 1), |
|
59 | + '_OPTIONS' => array('_OPTIONS', 1), |
|
60 | 60 | // Used for select expressions. |
61 | - 'DROP_' => array('DROP', 1), |
|
61 | + 'DROP_' => array('DROP', 1), |
|
62 | 62 | ); |
63 | 63 | |
64 | 64 | /** |
@@ -53,12 +53,12 @@ |
||
53 | 53 | * @var array |
54 | 54 | */ |
55 | 55 | public static $CLAUSES = array( |
56 | - 'REPLACE' => array('REPLACE', 2), |
|
56 | + 'REPLACE' => array('REPLACE', 2), |
|
57 | 57 | // Used for options. |
58 | - '_OPTIONS' => array('_OPTIONS', 1), |
|
59 | - 'INTO' => array('FROM', 3), |
|
60 | - 'VALUES' => array('VALUES', 1), |
|
61 | - 'SET' => array('PARTITION', 3), |
|
58 | + '_OPTIONS' => array('_OPTIONS', 1), |
|
59 | + 'INTO' => array('FROM', 3), |
|
60 | + 'VALUES' => array('VALUES', 1), |
|
61 | + 'SET' => array('PARTITION', 3), |
|
62 | 62 | ); |
63 | 63 | |
64 | 64 | /** |
@@ -83,30 +83,30 @@ |
||
83 | 83 | * @var array |
84 | 84 | */ |
85 | 85 | public static $CLAUSES = array( |
86 | - 'SELECT' => array('SELECT', 2), |
|
86 | + 'SELECT' => array('SELECT', 2), |
|
87 | 87 | // Used for options. |
88 | - '_OPTIONS' => array('_OPTIONS', 1), |
|
88 | + '_OPTIONS' => array('_OPTIONS', 1), |
|
89 | 89 | // Used for selected expressions. |
90 | - '_SELECT' => array('SELECT', 1), |
|
91 | - 'FROM' => array('FROM', 3), |
|
92 | - 'PARTITION' => array('PARTITION', 3), |
|
93 | - |
|
94 | - 'JOIN' => array('JOIN', 1), |
|
95 | - 'FULL JOIN' => array('FULL JOIN', 1), |
|
96 | - 'INNER JOIN' => array('INNER JOIN', 1), |
|
97 | - 'LEFT JOIN' => array('LEFT JOIN', 1), |
|
98 | - 'LEFT OUTER JOIN' => array('LEFT OUTER JOIN', 1), |
|
99 | - 'RIGHT JOIN' => array('RIGHT JOIN', 1), |
|
100 | - 'RIGHT OUTER JOIN' => array('RIGHT OUTER JOIN', 1), |
|
101 | - |
|
102 | - 'WHERE' => array('WHERE', 3), |
|
103 | - 'GROUP BY' => array('GROUP BY', 3), |
|
104 | - 'HAVING' => array('HAVING', 3), |
|
105 | - 'ORDER BY' => array('ORDER BY', 3), |
|
106 | - 'LIMIT' => array('LIMIT', 3), |
|
107 | - 'PROCEDURE' => array('PROCEDURE', 3), |
|
108 | - 'INTO' => array('INTO', 3), |
|
109 | - 'UNION' => array('UNION', 1), |
|
90 | + '_SELECT' => array('SELECT', 1), |
|
91 | + 'FROM' => array('FROM', 3), |
|
92 | + 'PARTITION' => array('PARTITION', 3), |
|
93 | + |
|
94 | + 'JOIN' => array('JOIN', 1), |
|
95 | + 'FULL JOIN' => array('FULL JOIN', 1), |
|
96 | + 'INNER JOIN' => array('INNER JOIN', 1), |
|
97 | + 'LEFT JOIN' => array('LEFT JOIN', 1), |
|
98 | + 'LEFT OUTER JOIN' => array('LEFT OUTER JOIN', 1), |
|
99 | + 'RIGHT JOIN' => array('RIGHT JOIN', 1), |
|
100 | + 'RIGHT OUTER JOIN' => array('RIGHT OUTER JOIN', 1), |
|
101 | + |
|
102 | + 'WHERE' => array('WHERE', 3), |
|
103 | + 'GROUP BY' => array('GROUP BY', 3), |
|
104 | + 'HAVING' => array('HAVING', 3), |
|
105 | + 'ORDER BY' => array('ORDER BY', 3), |
|
106 | + 'LIMIT' => array('LIMIT', 3), |
|
107 | + 'PROCEDURE' => array('PROCEDURE', 3), |
|
108 | + 'INTO' => array('INTO', 3), |
|
109 | + 'UNION' => array('UNION', 1), |
|
110 | 110 | // These are available only when `UNION` is present. |
111 | 111 | // 'ORDER BY' => array('ORDER BY', 3), |
112 | 112 | // 'LIMIT' => array('LIMIT', 3), |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * @var array |
32 | 32 | */ |
33 | 33 | public static $CLAUSES = array( |
34 | - 'SET' => array('SET', 3), |
|
34 | + 'SET' => array('SET', 3), |
|
35 | 35 | ); |
36 | 36 | |
37 | 37 | /** |
@@ -30,14 +30,14 @@ |
||
30 | 30 | * |
31 | 31 | * @var int |
32 | 32 | */ |
33 | - const TYPE_BEGIN = 1; |
|
33 | + const TYPE_BEGIN = 1; |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * COMMIT and ROLLBACK |
37 | 37 | * |
38 | 38 | * @var int |
39 | 39 | */ |
40 | - const TYPE_END = 2; |
|
40 | + const TYPE_END = 2; |
|
41 | 41 | |
42 | 42 | /** |
43 | 43 | * The type of this query. |
@@ -57,15 +57,15 @@ |
||
57 | 57 | * @var array |
58 | 58 | */ |
59 | 59 | public static $CLAUSES = array( |
60 | - 'UPDATE' => array('UPDATE', 2), |
|
60 | + 'UPDATE' => array('UPDATE', 2), |
|
61 | 61 | // Used for options. |
62 | - '_OPTIONS' => array('_OPTIONS', 1), |
|
62 | + '_OPTIONS' => array('_OPTIONS', 1), |
|
63 | 63 | // Used for updated tables. |
64 | - '_UPDATE' => array('UPDATE', 1), |
|
65 | - 'SET' => array('SET', 3), |
|
66 | - 'WHERE' => array('WHERE', 3), |
|
67 | - 'ORDER BY' => array('ORDER BY', 3), |
|
68 | - 'LIMIT' => array('LIMIT', 3), |
|
64 | + '_UPDATE' => array('UPDATE', 1), |
|
65 | + 'SET' => array('SET', 3), |
|
66 | + 'WHERE' => array('WHERE', 3), |
|
67 | + 'ORDER BY' => array('ORDER BY', 3), |
|
68 | + 'LIMIT' => array('LIMIT', 3), |
|
69 | 69 | ); |
70 | 70 | |
71 | 71 | /** |