@@ 188-190 (lines=3) @@ | ||
185 | ) |
|
186 | ]; |
|
187 | ||
188 | if ($this->configuration['host'] !== '') { |
|
189 | $connect_parameters[] = sprintf('host=%s', $this->configuration['host']); |
|
190 | } |
|
191 | ||
192 | if ($this->configuration['port'] !== '') { |
|
193 | $connect_parameters[] = sprintf('port=%s', $this->configuration['port']); |
|
@@ 192-194 (lines=3) @@ | ||
189 | $connect_parameters[] = sprintf('host=%s', $this->configuration['host']); |
|
190 | } |
|
191 | ||
192 | if ($this->configuration['port'] !== '') { |
|
193 | $connect_parameters[] = sprintf('port=%s', $this->configuration['port']); |
|
194 | } |
|
195 | ||
196 | if ($this->configuration['pass'] !== '') { |
|
197 | $connect_parameters[] = sprintf('password=%s', addslashes($this->configuration['pass'])); |
|
@@ 196-198 (lines=3) @@ | ||
193 | $connect_parameters[] = sprintf('port=%s', $this->configuration['port']); |
|
194 | } |
|
195 | ||
196 | if ($this->configuration['pass'] !== '') { |
|
197 | $connect_parameters[] = sprintf('password=%s', addslashes($this->configuration['pass'])); |
|
198 | } |
|
199 | ||
200 | return join(' ', $connect_parameters); |
|
201 | } |