summaryrefslogtreecommitdiffstats
path: root/lib/mysql.php
diff options
context:
space:
mode:
authorDavey Shafik <me@daveyshafik.com>2017-01-10 19:42:37 -0800
committerDavey Shafik <me@daveyshafik.com>2017-01-10 19:42:37 -0800
commit79a84640939bc9b09aad90e9565563a00baa5616 (patch)
treea1f7fe3c8efb668a4b4647143b280144412cae13 /lib/mysql.php
parent5723d3b4b29c1e8f66ae20a5393024464c6db14c (diff)
downloadphp7-mysql-shim-79a84640939bc9b09aad90e9565563a00baa5616.zip
php7-mysql-shim-79a84640939bc9b09aad90e9565563a00baa5616.tar.gz
php7-mysql-shim-79a84640939bc9b09aad90e9565563a00baa5616.tar.bz2
Fix CS
Diffstat (limited to 'lib/mysql.php')
-rw-r--r--lib/mysql.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/mysql.php b/lib/mysql.php
index cd45f46..d2d9772 100644
--- a/lib/mysql.php
+++ b/lib/mysql.php
@@ -153,9 +153,9 @@ namespace {
$link = \Dshafik\MySQL::getConnection($link);
return mysqli_query(
- $link,
- 'USE `' . mysqli_real_escape_string($link, $databaseName) . '`'
- ) !== false;
+ $link,
+ 'USE `' . mysqli_real_escape_string($link, $databaseName) . '`'
+ ) !== false;
}
function mysql_query($query, \mysqli $link = null)
@@ -268,10 +268,10 @@ namespace {
$found = true;
if (strpos($field, '.') !== false) {
- list($table, $name) = explode('.', $field);
+ list($table, $name) = explode('.', $field);
$i = 0;
$found = false;
- mysqli_field_seek($result, 0);
+ mysqli_field_seek($result, 0);
while ($column = mysqli_fetch_field($result)) {
if ($column->table === $table && $column->name === $name) {
$field = $i;