@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | $this->checkParam($config); |
| 83 | 83 | |
| 84 | 84 | try { |
| 85 | - $db = new PDO("mysql:host=".$config['host'].";dbname=".$config['database'], $config['user'], $config['password']); |
|
| 85 | + $db = new PDO("mysql:host=" . $config['host'] . ";dbname=" . $config['database'], $config['user'], $config['password']); |
|
| 86 | 86 | } catch (PDOException $e) { |
| 87 | 87 | throw new PotatoException($e->getMessage()); |
| 88 | 88 | } |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | public function connectSQLite($config) |
| 94 | 94 | { |
| 95 | 95 | try { |
| 96 | - $db = new PDO("sqlite:".$config['database']); |
|
| 96 | + $db = new PDO("sqlite:" . $config['database']); |
|
| 97 | 97 | } catch (PDOException $e) { |
| 98 | 98 | throw new PotatoException($e->getMessage()); |
| 99 | 99 | } |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | $this->checkParam($config); |
| 111 | 111 | |
| 112 | 112 | try { |
| 113 | - $db = new PDO("mssql:host=".$config['host'].";dbname=".$config['database'].", ".$config['user'].", ".$config['password']); |
|
| 113 | + $db = new PDO("mssql:host=" . $config['host'] . ";dbname=" . $config['database'] . ", " . $config['user'] . ", " . $config['password']); |
|
| 114 | 114 | } catch (PDOException $e) { |
| 115 | 115 | throw new PotatoException($e->getMessage()); |
| 116 | 116 | } |