@@ -31,6 +31,9 @@ |
||
| 31 | 31 | return $this->manager->connect("mysql:host={$server};", $username, $password, $options, $newLink); |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | + /** |
|
| 35 | + * @param integer $clientFlags |
|
| 36 | + */ |
|
| 34 | 37 | protected function parseClientFlags($clientFlags) |
| 35 | 38 | { |
| 36 | 39 | $options = []; |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | |
| 24 | 24 | public function connect($server = null, $username = null, $password = null, $newLink = false, $clientFlags = 0) |
| 25 | 25 | { |
| 26 | - if ($server === null) { |
|
| 26 | + if ($server === null) { |
|
| 27 | 27 | $server = ini_get('mysql.default_host'); |
| 28 | 28 | } |
| 29 | 29 | if ($username === null) { |
@@ -40,6 +40,6 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | public static function defineGlobals() |
| 42 | 42 | { |
| 43 | - require_once __DIR__ . '/globals.php'; |
|
| 43 | + require_once __DIR__.'/globals.php'; |
|
| 44 | 44 | } |
| 45 | 45 | } |
@@ -168,7 +168,7 @@ |
||
| 168 | 168 | |
| 169 | 169 | public function setLastConnection($id) |
| 170 | 170 | { |
| 171 | - uksort($this->connections, function ($a, $b) use ($id) { |
|
| 171 | + uksort($this->connections, function($a, $b) use ($id) { |
|
| 172 | 172 | if ($a === $id) { |
| 173 | 173 | return 1; |
| 174 | 174 | } |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | |
| 108 | 108 | try { |
| 109 | 109 | $countResult = $result->getConnection()->query( |
| 110 | - 'SELECT COUNT(*) FROM (' . $query . ') AS ' . uniqid('count_') |
|
| 110 | + 'SELECT COUNT(*) FROM ('.$query.') AS '.uniqid('count_') |
|
| 111 | 111 | ); |
| 112 | 112 | } catch (QueryException $e) { |
| 113 | 113 | return false; |