summaryrefslogtreecommitdiffstats
path: root/src/Components/ExpressionArray.php
diff options
context:
space:
mode:
authorDan Ungureanu <udan1107@gmail.com>2015-08-20 22:27:52 +0300
committerDan Ungureanu <udan1107@gmail.com>2015-08-20 22:33:08 +0300
commit1b2988f296611f7294593fd1fff07c70ac514e2a (patch)
treeed618f577fe3acd835a3c801f1f8ec30d2956f8f /src/Components/ExpressionArray.php
parent14c54da98c3b4f18c78ff44c22fbdd20e8ef6e18 (diff)
downloadsql-parser-1b2988f296611f7294593fd1fff07c70ac514e2a.zip
sql-parser-1b2988f296611f7294593fd1fff07c70ac514e2a.tar.gz
sql-parser-1b2988f296611f7294593fd1fff07c70ac514e2a.tar.bz2
Fixed minor style issues in generated queries.v1.0.0
Introduced options for builders. Data types are lower case in CREATE TABLE statements, but in any other case they continue to be upper case. Formatter uses 2 spaces instead of 4 for indentation as specified in the MySQL Coding Guidelines. https://dev.mysql.com/doc/internals/en/indentation-spacing.html.
Diffstat (limited to 'src/Components/ExpressionArray.php')
-rw-r--r--src/Components/ExpressionArray.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Components/ExpressionArray.php b/src/Components/ExpressionArray.php
index 82e67c9..8327296 100644
--- a/src/Components/ExpressionArray.php
+++ b/src/Components/ExpressionArray.php
@@ -106,10 +106,11 @@ class ExpressionArray extends Component
/**
* @param Expression[] $component The component to be built.
+ * @param array $options Parameters for building.
*
* @return string
*/
- public static function build($component)
+ public static function build($component, array $options = array())
{
$ret = array();
foreach ($component as $frag) {