@@ -46,15 +46,19 @@ public function __construct(
46
46
string $ password ,
47
47
AbstractPlatform $ platform
48
48
) {
49
- $ this ->smi2CHClient = new Smi2CHClient ([
50
- 'host ' => $ params ['host ' ] ?? 'localhost ' ,
51
- 'port ' => $ params ['port ' ] ?? 8123 ,
52
- 'username ' => $ username ,
53
- 'password ' => $ password ,
54
- 'settings ' => array_merge ([
55
- 'database ' => $ params ['dbname ' ] ?? 'default ' ,
56
- ], $ params ['driverOptions ' ] ?? []),
57
- ]);
49
+ $ this ->smi2CHClient = new Smi2CHClient (
50
+ [
51
+ 'host ' => $ params ['host ' ] ?? 'localhost ' ,
52
+ 'port ' => $ params ['port ' ] ?? 8123 ,
53
+ 'username ' => $ username ,
54
+ 'password ' => $ password ,
55
+ ],
56
+ [
57
+ 'settings ' => array_merge ([
58
+ 'database ' => $ params ['dbname ' ] ?? 'default ' ,
59
+ ], $ params ['driverOptions ' ] ?? []),
60
+ ]
61
+ );
58
62
59
63
$ this ->platform = $ platform ;
60
64
}
@@ -94,7 +98,7 @@ public function quote($input, $type = ParameterType::STRING)
94
98
/**
95
99
* {@inheritDoc}
96
100
*/
97
- public function exec ($ statement ) : int
101
+ public function exec ($ statement ): int
98
102
{
99
103
$ stmt = $ this ->prepare ($ statement );
100
104
$ stmt ->execute ();
@@ -165,7 +169,8 @@ public function getServerVersion()
165
169
{
166
170
try {
167
171
return $ this ->smi2CHClient ->getServerVersion ();
168
- } catch (TransportException $ exception ) {
172
+ }
173
+ catch (TransportException $ exception ) {
169
174
return '' ;
170
175
}
171
176
}
0 commit comments