@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | $this->checkParam($config); |
| 78 | 78 | |
| 79 | 79 | try { |
| 80 | - $db = new PDO("mysql:host=".$config['host'].";dbname=".$config['database'], $config['user'], $config['password']); |
|
| 80 | + $db = new PDO("mysql:host=" . $config['host'] . ";dbname=" . $config['database'], $config['user'], $config['password']); |
|
| 81 | 81 | } catch (PDOException $e) { |
| 82 | 82 | throw new PotatoException($e->getMessage()); |
| 83 | 83 | } |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | public function connectSQLite($config) |
| 89 | 89 | { |
| 90 | 90 | try { |
| 91 | - $db = new PDO("sqlite:".$config['database']); |
|
| 91 | + $db = new PDO("sqlite:" . $config['database']); |
|
| 92 | 92 | } catch (PDOException $e) { |
| 93 | 93 | throw new PotatoException($e->getMessage()); |
| 94 | 94 | } |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $this->checkParam($config); |
| 106 | 106 | |
| 107 | 107 | try { |
| 108 | - $db = new PDO("mssql:host=".$config['host'].";dbname=".$config['database'].", ".$config['user'].", ".$config['password']); |
|
| 108 | + $db = new PDO("mssql:host=" . $config['host'] . ";dbname=" . $config['database'] . ", " . $config['user'] . ", " . $config['password']); |
|
| 109 | 109 | } catch (PDOException $e) { |
| 110 | 110 | throw new PotatoException($e->getMessage()); |
| 111 | 111 | } |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | $this->checkParam($config); |
| 118 | 118 | |
| 119 | 119 | try { |
| 120 | - $db = new PDO($config['type'].":host=".$config['host'].";dbname=".$config['database'].", ".$config['user'].", ".$config['password']); |
|
| 120 | + $db = new PDO($config['type'] . ":host=" . $config['host'] . ";dbname=" . $config['database'] . ", " . $config['user'] . ", " . $config['password']); |
|
| 121 | 121 | } catch (PDOException $e) { |
| 122 | 122 | throw new PotatoException($e->getMessage()); |
| 123 | 123 | } |