Completed
Branch 3.0.0 (d1c058)
by Serhii
02:32
created
src/Device.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Robot.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,9 +89,9 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/DetectorRule.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,8 +126,7 @@
 block discarded – undo
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
                         }
Please login to merge, or discard this patch.
src/Detector.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -117,8 +117,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.