@@ -68,19 +68,19 @@ class Client
6868 public function __construct (array $ connectParams , array $ settings = [])
6969 {
7070 if (!isset ($ connectParams ['username ' ])) {
71- throw new \InvalidArgumentException ('not set username ' );
71+ throw new \InvalidArgumentException ('not set username ' );
7272 }
7373
7474 if (!isset ($ connectParams ['password ' ])) {
75- throw new \InvalidArgumentException ('not set password ' );
75+ throw new \InvalidArgumentException ('not set password ' );
7676 }
7777
7878 if (!isset ($ connectParams ['port ' ])) {
79- throw new \InvalidArgumentException ('not set port ' );
79+ throw new \InvalidArgumentException ('not set port ' );
8080 }
8181
8282 if (!isset ($ connectParams ['host ' ])) {
83- throw new \InvalidArgumentException ('not set host ' );
83+ throw new \InvalidArgumentException ('not set host ' );
8484 }
8585
8686 if (array_key_exists ('auth_method ' , $ connectParams )) {
@@ -89,7 +89,7 @@ public function __construct(array $connectParams, array $settings = [])
8989 'Invalid value for "auth_method" param. Should be one of [%s]. ' ,
9090 json_encode (Http::AUTH_METHODS_LIST )
9191 );
92- throw new \InvalidArgumentException ($ errorMessage );
92+ throw new \InvalidArgumentException ($ errorMessage );
9393 }
9494
9595 $ this ->authMethod = $ connectParams ['auth_method ' ];
@@ -218,7 +218,7 @@ public function getConnectTimeOut(): float
218218 public function transport (): Http
219219 {
220220 if (!$ this ->transport ) {
221- throw new \InvalidArgumentException ('Empty transport class ' );
221+ throw new \InvalidArgumentException ('Empty transport class ' );
222222 }
223223
224224 return $ this ->transport ;
@@ -612,7 +612,7 @@ public function insertBatchFiles(string $tableName, $fileNames, array $columns =
612612
613613 foreach ($ fileNames as $ fileName ) {
614614 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 ' ));
616616 }
617617
618618 if (empty ($ columns )) {
0 commit comments