@@ -251,15 +251,15 @@ |
||
251 | 251 | } |
252 | 252 | |
253 | 253 | /** |
254 | - * @param bool |
|
255 | - * |
|
256 | - * @return $this |
|
257 | - */ |
|
254 | + * @param bool |
|
255 | + * |
|
256 | + * @return $this |
|
257 | + */ |
|
258 | 258 | public function setIsCompatibilityMode($isCompatibilityMode) |
259 | 259 | { |
260 | - $this->isCompatibilityMode = $isCompatibilityMode; |
|
260 | + $this->isCompatibilityMode = $isCompatibilityMode; |
|
261 | 261 | |
262 | - return $this; |
|
262 | + return $this; |
|
263 | 263 | } |
264 | 264 | |
265 | 265 | /** |
@@ -209,26 +209,26 @@ |
||
209 | 209 | // is version 7.0. |
210 | 210 | if (stripos(self::$userAgentString, 'MSIE 7.0;')) |
211 | 211 | { |
212 | - // IE11 in compatibility mode |
|
213 | - if (stripos(self::$userAgentString, 'Trident/7.0;')) { |
|
214 | - self::$browser->setVersion('11.0'); |
|
215 | - self::$browser->setIsCompatibilityMode(true); |
|
216 | - } |
|
217 | - // IE10 in compatibility mode |
|
218 | - else if (stripos(self::$userAgentString, 'Trident/6.0;')) { |
|
219 | - self::$browser->setVersion('10.0'); |
|
220 | - self::$browser->setIsCompatibilityMode(true); |
|
221 | - } |
|
222 | - // IE9 in compatibility mode |
|
223 | - else if (stripos(self::$userAgentString, 'Trident/5.0;')) { |
|
224 | - self::$browser->setVersion('9.0'); |
|
225 | - self::$browser->setIsCompatibilityMode(true); |
|
226 | - } |
|
227 | - // IE8 in compatibility mode |
|
228 | - else if (stripos(self::$userAgentString, 'Trident/4.0;')) { |
|
229 | - self::$browser->setVersion('8.0'); |
|
230 | - self::$browser->setIsCompatibilityMode(true); |
|
231 | - } |
|
212 | + // IE11 in compatibility mode |
|
213 | + if (stripos(self::$userAgentString, 'Trident/7.0;')) { |
|
214 | + self::$browser->setVersion('11.0'); |
|
215 | + self::$browser->setIsCompatibilityMode(true); |
|
216 | + } |
|
217 | + // IE10 in compatibility mode |
|
218 | + else if (stripos(self::$userAgentString, 'Trident/6.0;')) { |
|
219 | + self::$browser->setVersion('10.0'); |
|
220 | + self::$browser->setIsCompatibilityMode(true); |
|
221 | + } |
|
222 | + // IE9 in compatibility mode |
|
223 | + else if (stripos(self::$userAgentString, 'Trident/5.0;')) { |
|
224 | + self::$browser->setVersion('9.0'); |
|
225 | + self::$browser->setIsCompatibilityMode(true); |
|
226 | + } |
|
227 | + // IE8 in compatibility mode |
|
228 | + else if (stripos(self::$userAgentString, 'Trident/4.0;')) { |
|
229 | + self::$browser->setVersion('8.0'); |
|
230 | + self::$browser->setIsCompatibilityMode(true); |
|
231 | + } |
|
232 | 232 | } |
233 | 233 | |
234 | 234 | } |