Skip to content

Commit

Permalink
styleguide update
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Placzek <[email protected]>
  • Loading branch information
tada5hi committed Mar 25, 2019
1 parent 8307840 commit 57833f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions system/Database/MySQLi/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Builder extends BaseBuilder
*/
protected function _insert($table, array $keys, array $unescapedKeys, $ignore)
{
return 'INSERT '.($ignore ? 'IGNORE' : '').' INTO ' . $table . ' (' . implode(', ', $keys) . ') VALUES (' . implode(', ', $unescapedKeys) . ')';
return 'INSERT ' . ($ignore ? 'IGNORE' : '') . ' INTO ' . $table . ' (' . implode(', ', $keys) . ') VALUES (' . implode(', ', $unescapedKeys) . ')';
}

//--------------------------------------------------------------------
Expand All @@ -86,7 +86,7 @@ protected function _insert($table, array $keys, array $unescapedKeys, $ignore)
*/
protected function _insertBatch($table, $keys, $values, $ignore)
{
return 'INSERT '.($ignore ? 'IGNORE' : '').' INTO ' . $table . ' (' . implode(', ', $keys) . ') VALUES ' . implode(', ', $values);
return 'INSERT ' . ($ignore ? 'IGNORE' : '') . ' INTO ' . $table . ' (' . implode(', ', $keys) . ') VALUES ' . implode(', ', $values);
}

}
4 changes: 2 additions & 2 deletions system/Database/SQLite3/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ protected function _truncate($table)
*/
protected function _insert($table, array $keys, array $unescapedKeys, $ignore)
{
return 'INSERT '.($ignore ? 'OR IGNORE' : '').' INTO ' . $table . ' (' . implode(', ', $keys) . ') VALUES (' . implode(', ', $unescapedKeys) . ')';
return 'INSERT ' . ($ignore ? 'OR IGNORE' : '') . ' INTO ' . $table . ' (' . implode(', ', $keys) . ') VALUES (' . implode(', ', $unescapedKeys) . ')';
}

//--------------------------------------------------------------------
Expand All @@ -141,7 +141,7 @@ protected function _insert($table, array $keys, array $unescapedKeys, $ignore)
*/
protected function _insertBatch($table, $keys, $values, $ignore)
{
return 'INSERT '.($ignore ? 'OR IGNORE' : '').' INTO ' . $table . ' (' . implode(', ', $keys) . ') VALUES ' . implode(', ', $values);
return 'INSERT ' . ($ignore ? 'OR IGNORE' : '') . ' INTO ' . $table . ' (' . implode(', ', $keys) . ') VALUES ' . implode(', ', $values);
}

}

0 comments on commit 57833f1

Please sign in to comment.