Code Duplication    Length = 4-4 lines in 2 locations

src/HTTPOptionsTrait.php 2 locations

@@ 96-99 (lines=4) @@
93
			// see http://php.net/manual/en/function.is-link.php#91249
94
			switch(true){
95
				case is_dir($this->ca_info):
96
				case is_link($this->ca_info) && is_dir(readlink($this->ca_info)): // @codeCoverageIgnore
97
					$this->curl_options[CURLOPT_CAPATH] = $this->ca_info;
98
					unset($this->curl_options[CURLOPT_CAINFO]);
99
					return;
100
101
				case is_file($this->ca_info):
102
				case is_link($this->ca_info) && is_file(readlink($this->ca_info)): // @codeCoverageIgnore
@@ 102-105 (lines=4) @@
99
					return;
100
101
				case is_file($this->ca_info):
102
				case is_link($this->ca_info) && is_file(readlink($this->ca_info)): // @codeCoverageIgnore
103
					$this->curl_options[CURLOPT_CAINFO] = $this->ca_info;
104
					unset($this->curl_options[CURLOPT_CAPATH]);
105
					return;
106
			}
107
108
			throw new ClientException('invalid path to SSL CA bundle (HTTPOptions::$ca_info): '.$this->ca_info);