@@ -20,15 +20,17 @@ |
||
| 20 | 20 | { |
| 21 | 21 | $this->config = Reader::getConfig($object); |
| 22 | 22 | |
| 23 | - if (!array_key_exists('table', $this->config)) |
|
| 24 | - throw new NoTableFoundException(); |
|
| 23 | + if (!array_key_exists('table', $this->config)) { |
|
| 24 | + throw new NoTableFoundException(); |
|
| 25 | + } |
|
| 25 | 26 | |
| 26 | 27 | $this->table = $this->config['table']; |
| 27 | 28 | |
| 28 | - if(!empty($adapter)) |
|
| 29 | - $this->adapter = $adapter; |
|
| 30 | - else |
|
| 31 | - $this->adapter = GlobalAdapterFeature::getStaticAdapter(); |
|
| 29 | + if(!empty($adapter)) { |
|
| 30 | + $this->adapter = $adapter; |
|
| 31 | + } else { |
|
| 32 | + $this->adapter = GlobalAdapterFeature::getStaticAdapter(); |
|
| 33 | + } |
|
| 32 | 34 | |
| 33 | 35 | $this->updateContext(); |
| 34 | 36 | } |