Code Duplication    Length = 5-5 lines in 2 locations

src/phpFastCache/Drivers/Memcache/Driver.php 1 location

@@ 159-163 (lines=5) @@
156
                /**
157
                 * If path is provided we consider it as an UNIX Socket
158
                 */
159
                if(!empty($server[ 'path' ]) && !$this->instance->addServer($server[ 'path' ], 0)){
160
                    $this->fallback = true;
161
                }else if (!empty($server[ 'host' ]) && !$this->instance->addServer($server[ 'host' ], $server[ 'port' ])) {
162
                    $this->fallback = true;
163
                }
164
165
                if (!empty($server[ 'sasl_user' ]) && !empty($server[ 'sasl_password' ])) {
166
                    throw new phpFastCacheDriverException('Unlike Memcached, Memcache does not support SASL authentication');

src/phpFastCache/Drivers/Memcached/Driver.php 1 location

@@ 153-157 (lines=5) @@
150
                /**
151
                 * If path is provided we consider it as an UNIX Socket
152
                 */
153
                if(!empty($server[ 'path' ]) && !$this->instance->addServer($server[ 'path' ], 0)){
154
                    $this->fallback = true;
155
                }else if (!empty($server[ 'host' ]) && !$this->instance->addServer($server[ 'host' ], $server[ 'port' ])) {
156
                    $this->fallback = true;
157
                }
158
159
                if (!empty($server[ 'sasl_user' ]) && !empty($server[ 'sasl_password' ])) {
160
                    $this->instance->setSaslAuthData($server[ 'sasl_user' ], $server[ 'sasl_password' ]);