@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | $this->table = $this->config['table']; |
| 28 | 28 | |
| 29 | - if(!isset($this->config['adapter'])) |
|
| 29 | + if (!isset($this->config['adapter'])) |
|
| 30 | 30 | $this->config['adapter'] = 'Default'; |
| 31 | 31 | |
| 32 | 32 | $adapterPool = new AdapterPool(); |
@@ -39,13 +39,13 @@ discard block |
||
| 39 | 39 | { |
| 40 | 40 | $platform = $this->adapter->getPlatform()->getName(); |
| 41 | 41 | |
| 42 | - if(isset($this->config['schema']) && $platform == 'MySQL'){ |
|
| 43 | - $sql = 'USE ' . $this->config['schema'] . ';'; |
|
| 42 | + if (isset($this->config['schema']) && $platform == 'MySQL') { |
|
| 43 | + $sql = 'USE '.$this->config['schema'].';'; |
|
| 44 | 44 | $this->adapter->getDriver()->getConnection()->execute($sql); |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - if(isset($this->config['schema']) && $platform == 'PostgreSQL'){ |
|
| 48 | - $sql = 'SET SCHEMA \'' . $this->config['schema'] . '\';'; |
|
| 47 | + if (isset($this->config['schema']) && $platform == 'PostgreSQL') { |
|
| 48 | + $sql = 'SET SCHEMA \''.$this->config['schema'].'\';'; |
|
| 49 | 49 | $this->adapter->getDriver()->getConnection()->execute($sql); |
| 50 | 50 | } |
| 51 | 51 | } |