diff options
author | Hugues Peccatte <hugues.peccatte@gmail.com> | 2015-07-23 15:38:07 +0300 |
---|---|---|
committer | Hugues Peccatte <hugues.peccatte@gmail.com> | 2015-07-23 15:38:07 +0300 |
commit | bf61709259e4b953bced1f332e29b375c5243ba4 (patch) | |
tree | b418ecddc46d2a503e3d7001c98899973326782a /tbl_export.php | |
parent | 1daf0a030fc199396cca274a64a6002a3685c76e (diff) |
Make PHPCS happy.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Diffstat (limited to 'tbl_export.php')
-rw-r--r-- | tbl_export.php | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/tbl_export.php b/tbl_export.php index 5a75e19be6..afbe4fb9f1 100644 --- a/tbl_export.php +++ b/tbl_export.php @@ -81,7 +81,9 @@ if (isset($_REQUEST['templateAction']) && $cfgRelation['exporttemplateswork']) { ); } elseif ('load' == $_REQUEST['templateAction']) { $data = null; - while ($row = $GLOBALS['dbi']->fetchAssoc($result, $GLOBALS['controllink'])) { + while ($row = $GLOBALS['dbi']->fetchAssoc( + $result, $GLOBALS['controllink'] + )) { $data = $row['template_data']; } $response->addJSON('data', $data); @@ -138,8 +140,16 @@ if (! empty($sql_query)) { // Rebuilding the SELECT and FROM clauses. $replaces = array( - array('SELECT', 'SELECT ' . SqlParser\Components\ExpressionArray::build($parser->statements[0]->expr)), - array('FROM', 'FROM ' . SqlParser\Components\ExpressionArray::build($parser->statements[0]->from)), + array( + 'SELECT', 'SELECT ' . SqlParser\Components\ExpressionArray::build( + $parser->statements[0]->expr + ), + ), + array( + 'FROM', 'FROM ' . SqlParser\Components\ExpressionArray::build( + $parser->statements[0]->from + ), + ), ); // Checking if the WHERE clause has to be replaced. |