Skip to content

Commit

Permalink
Merge pull request #15 from krzysztofzylka/14-błąd-połączenia-w-przyp…
Browse files Browse the repository at this point in the history
…adku-złego-kodowania-znaków

błąd połączenia w przypadku złego kodowania znaków #14
  • Loading branch information
krzysztofzylka authored Oct 28, 2024
2 parents 21967ab + a272296 commit 6a78cd2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/DatabaseConnect.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function setSqlitePath(string $path): self
*/
public function getSqlitePath(): string
{
return $this->sqlitePath;
return trim($this->sqlitePath);
}

/**
Expand Down Expand Up @@ -147,7 +147,7 @@ public function setPassword(string $password): self
*/
public function getDatabaseName(): string
{
return $this->name;
return trim($this->name);
}

/**
Expand All @@ -156,7 +156,7 @@ public function getDatabaseName(): string
*/
public function getPassword(): string
{
return $this->password;
return trim($this->password);
}

/**
Expand All @@ -165,7 +165,7 @@ public function getPassword(): string
*/
public function getUsername(): string
{
return $this->username;
return trim($this->username);
}

/**
Expand All @@ -174,7 +174,7 @@ public function getUsername(): string
*/
public function getHost(): string
{
return $this->host;
return trim($this->host);
}

/**
Expand Down Expand Up @@ -239,7 +239,7 @@ public function setCharset(string $charset): self
*/
public function getCharset(): string
{
return $this->charset;
return trim($this->charset);
}

/**
Expand Down

0 comments on commit 6a78cd2

Please sign in to comment.