@@ -68,19 +68,19 @@ class Client
68
68
public function __construct (array $ connectParams , array $ settings = [])
69
69
{
70
70
if (!isset ($ connectParams ['username ' ])) {
71
- throw new \InvalidArgumentException ('not set username ' );
71
+ throw new \InvalidArgumentException ('not set username ' );
72
72
}
73
73
74
74
if (!isset ($ connectParams ['password ' ])) {
75
- throw new \InvalidArgumentException ('not set password ' );
75
+ throw new \InvalidArgumentException ('not set password ' );
76
76
}
77
77
78
78
if (!isset ($ connectParams ['port ' ])) {
79
- throw new \InvalidArgumentException ('not set port ' );
79
+ throw new \InvalidArgumentException ('not set port ' );
80
80
}
81
81
82
82
if (!isset ($ connectParams ['host ' ])) {
83
- throw new \InvalidArgumentException ('not set host ' );
83
+ throw new \InvalidArgumentException ('not set host ' );
84
84
}
85
85
86
86
if (array_key_exists ('auth_method ' , $ connectParams )) {
@@ -89,7 +89,7 @@ public function __construct(array $connectParams, array $settings = [])
89
89
'Invalid value for "auth_method" param. Should be one of [%s]. ' ,
90
90
json_encode (Http::AUTH_METHODS_LIST )
91
91
);
92
- throw new \InvalidArgumentException ($ errorMessage );
92
+ throw new \InvalidArgumentException ($ errorMessage );
93
93
}
94
94
95
95
$ this ->authMethod = $ connectParams ['auth_method ' ];
@@ -218,7 +218,7 @@ public function getConnectTimeOut(): float
218
218
public function transport (): Http
219
219
{
220
220
if (!$ this ->transport ) {
221
- throw new \InvalidArgumentException ('Empty transport class ' );
221
+ throw new \InvalidArgumentException ('Empty transport class ' );
222
222
}
223
223
224
224
return $ this ->transport ;
@@ -612,7 +612,7 @@ public function insertBatchFiles(string $tableName, $fileNames, array $columns =
612
612
613
613
foreach ($ fileNames as $ fileName ) {
614
614
if (!is_file ($ fileName ) || !is_readable ($ fileName )) {
615
- throw new QueryException ('Cant read file: ' . $ fileName . ' ' . (is_file ($ fileName ) ? '' : ' is not file ' ));
615
+ throw new QueryException ('Cant read file: ' . $ fileName . ' ' . (is_file ($ fileName ) ? '' : ' is not file ' ));
616
616
}
617
617
618
618
if (empty ($ columns )) {
0 commit comments