Code Duplication    Length = 2-2 lines in 3 locations

Sources/Class-BrowserDetect.php 3 locations

@@ 134-135 (lines=2) @@
131
	{
132
		// IE11 is a bit different than earlier versions
133
		// The isGecko() part is to ensure we get this right...
134
		if (!isset($this->_browsers['is_ie11']))
135
			$this->_browsers['is_ie11'] = strpos($_SERVER['HTTP_USER_AGENT'], 'Trident') !== false && $this->isGecko();
136
		return $this->_browsers['is_ie11'];
137
 	}
138
@@ 145-146 (lines=2) @@
142
	*/
143
	function isEdge()
144
	{
145
		if (!isset($this->_browsers['is_edge']))
146
			$this->_browsers['is_edge'] = strpos($_SERVER['HTTP_USER_AGENT'], 'Edge') !== false;
147
		return $this->_browsers['is_edge'];
148
	}
149
@@ 167-168 (lines=2) @@
164
	*/
165
	function isFirefox()
166
	{
167
		if (!isset($this->_browsers['is_firefox']))
168
			$this->_browsers['is_firefox'] = preg_match('~(?:Firefox|Ice[wW]easel|IceCat|Shiretoko|Minefield)/~', $_SERVER['HTTP_USER_AGENT']) === 1 && $this->isGecko();
169
		return $this->_browsers['is_firefox'];
170
	}
171