@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | $this->table = $this->config['table']; |
| 30 | 30 | |
| 31 | - if(!isset($this->config['adapter'])) |
|
| 31 | + if (!isset($this->config['adapter'])) |
|
| 32 | 32 | $this->config['adapter'] = 'Default'; |
| 33 | 33 | |
| 34 | 34 | $adapterPool = new AdapterPool(); |
@@ -37,9 +37,9 @@ discard block |
||
| 37 | 37 | $this->updateContext(); |
| 38 | 38 | |
| 39 | 39 | $platform = $this->adapter->getPlatform()->getName(); |
| 40 | - if(isset($this->config['schema']) && $platform == 'PostgreSQL'){ |
|
| 40 | + if (isset($this->config['schema']) && $platform == 'PostgreSQL') { |
|
| 41 | 41 | $pk = $this->config['primary_key']; |
| 42 | - $sq = $this->config['table'] . '_' . $pk . '_seq'; |
|
| 42 | + $sq = $this->config['table'].'_'.$pk.'_seq'; |
|
| 43 | 43 | |
| 44 | 44 | $this->featureSet = new FeatureSet(); |
| 45 | 45 | $this->featureSet->addFeature(new SequenceFeature($pk, $sq)); |
@@ -51,16 +51,16 @@ discard block |
||
| 51 | 51 | { |
| 52 | 52 | $platform = $this->adapter->getPlatform()->getName(); |
| 53 | 53 | |
| 54 | - if(isset($this->config['schema']) && $platform == 'MySQL'){ |
|
| 55 | - $sql = 'USE ' . $this->config['schema'] . ';'; |
|
| 54 | + if (isset($this->config['schema']) && $platform == 'MySQL') { |
|
| 55 | + $sql = 'USE '.$this->config['schema'].';'; |
|
| 56 | 56 | $this->adapter->getDriver()->getConnection()->execute($sql); |
| 57 | 57 | |
| 58 | 58 | $sql = 'SET FOREIGN_KEY_CHECKS = FALSE;'; |
| 59 | 59 | $this->adapter->getDriver()->getConnection()->execute($sql); |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | - if(isset($this->config['schema']) && $platform == 'PostgreSQL'){ |
|
| 63 | - $sql = 'SET SCHEMA \'' . $this->config['schema'] . '\';'; |
|
| 62 | + if (isset($this->config['schema']) && $platform == 'PostgreSQL') { |
|
| 63 | + $sql = 'SET SCHEMA \''.$this->config['schema'].'\';'; |
|
| 64 | 64 | $this->adapter->getDriver()->getConnection()->execute($sql); |
| 65 | 65 | } |
| 66 | 66 | } |