Code Duplication    Length = 3-3 lines in 3 locations

sources/lib/Session/ConnectionConfigurator.php 3 locations

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