@@ -100,8 +100,7 @@ discard block |
||
| 100 | 100 | $default = $this->Config->getDefault(); |
| 101 | 101 | |
| 102 | 102 | $name = is_null($default) ? |
| 103 | - @end(array_keys($configs)) : |
|
| 104 | - $this->Config->getDefault(); |
|
| 103 | + @end(array_keys($configs)) : $this->Config->getDefault(); |
|
| 105 | 104 | |
| 106 | 105 | self::open($name); |
| 107 | 106 | } |
@@ -132,7 +131,7 @@ discard block |
||
| 132 | 131 | } catch (\Exception $e) { |
| 133 | 132 | throw $e; |
| 134 | 133 | } |
| 135 | - } else { |
|
| 134 | + }else { |
|
| 136 | 135 | |
| 137 | 136 | throw new \Exception("This connection isn't actived."); |
| 138 | 137 | } |