@@ -25,8 +25,7 @@ |
||
| 25 | 25 | { |
| 26 | 26 | $this->Name = 'Desktop'; |
| 27 | 27 | $this->Type = 'desktop'; |
| 28 | - } |
|
| 29 | - else |
|
| 28 | + } else |
|
| 30 | 29 | { |
| 31 | 30 | parent::__construct($xmlData); |
| 32 | 31 | |
@@ -89,9 +89,9 @@ |
||
| 89 | 89 | if($val == 'true') |
| 90 | 90 | { |
| 91 | 91 | $this->setSearchEngine(true); |
| 92 | + } else { |
|
| 93 | + $this->setSearchEngine(false); |
|
| 92 | 94 | } |
| 93 | - else |
|
| 94 | - $this->setSearchEngine(false); |
|
| 95 | 95 | break; |
| 96 | 96 | } |
| 97 | 97 | } |
@@ -126,8 +126,7 @@ |
||
| 126 | 126 | if($boolVal == 'true') |
| 127 | 127 | { |
| 128 | 128 | $this->TargetValue = true; |
| 129 | - } |
|
| 130 | - else |
|
| 129 | + } else |
|
| 131 | 130 | { |
| 132 | 131 | $this->TargetValue = false; |
| 133 | 132 | } |
@@ -117,8 +117,7 @@ discard block |
||
| 117 | 117 | $os = new OS($result); |
| 118 | 118 | $os->setVersion(self::getVersion($result, $ua)); |
| 119 | 119 | $detectorResult->OS = $os; |
| 120 | - } |
|
| 121 | - else |
|
| 120 | + } else |
|
| 122 | 121 | { |
| 123 | 122 | $os = OS::initEmpty(); |
| 124 | 123 | $detectorResult->OS = $os; |
@@ -129,8 +128,7 @@ discard block |
||
| 129 | 128 | { |
| 130 | 129 | $device = new Device($result); |
| 131 | 130 | $detectorResult->Device = $device; |
| 132 | - } |
|
| 133 | - else |
|
| 131 | + } else |
|
| 134 | 132 | { |
| 135 | 133 | $device = Device::initEmpty(); |
| 136 | 134 | $detectorResult->Device = $device; |
@@ -142,8 +140,7 @@ discard block |
||
| 142 | 140 | $browser = new Browser($result); |
| 143 | 141 | $browser->setVersion(self::getVersion($result, $ua)); |
| 144 | 142 | $detectorResult->Browser = $browser; |
| 145 | - } |
|
| 146 | - else |
|
| 143 | + } else |
|
| 147 | 144 | { |
| 148 | 145 | $browser = Browser::initEmpty(); |
| 149 | 146 | $detectorResult->Browser = $browser; |