Test Failed
Pull Request — master (#78)
by Gabriel
04:07 queued 01:28
created
src/ScriptedAgentDetector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
         self::$scriptedAgent->setInfoURL(ScriptedAgent::UNKNOWN);
76 76
 
77 77
         foreach (self::$robotsList as $robotName) {
78
-            $funcName = self::FUNC_PREFIX . $robotName;
78
+            $funcName = self::FUNC_PREFIX.$robotName;
79 79
 
80 80
             if (self::$funcName()) {
81 81
                 return true;
Please login to merge, or discard this patch.
src/ScriptedAgent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      */
101 101
     public function setName($name)
102 102
     {
103
-        $this->name = (string)$name;
103
+        $this->name = (string) $name;
104 104
     }
105 105
 
106 106
     /**
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      */
127 127
     public function setType($type)
128 128
     {
129
-        $this->type = (string)$type;
129
+        $this->type = (string) $type;
130 130
     }
131 131
 
132 132
     /**
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      */
153 153
     public function setInfoURL($url)
154 154
     {
155
-        $this->url = (string)$url;
155
+        $this->url = (string) $url;
156 156
     }
157 157
 
158 158
     /**
Please login to merge, or discard this patch.
src/BrowserDetector.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         self::checkWebkit();
97 97
 
98 98
         foreach (self::$browsersList as $browserName) {
99
-            $funcName = self::FUNC_PREFIX . $browserName;
99
+            $funcName = self::FUNC_PREFIX.$browserName;
100 100
 
101 101
             if (self::$funcName()) {
102 102
                 return true;
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
             $aresult = explode('Version/10.', self::$userAgentString);
201 201
             if (isset($aresult[1])) {
202 202
                 $aversion = explode(' ', $aresult[1]);
203
-                self::$browser->setVersion('10.' . $aversion[0]);
203
+                self::$browser->setVersion('10.'.$aversion[0]);
204 204
             }
205 205
             self::$browser->setName(Browser::BLACKBERRY);
206 206
             return true;
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
         if (stripos(self::$userAgentString, 'Edge') !== false) {
476 476
             $version = explode('Edge/', self::$userAgentString);
477 477
             if (isset($version[1])) {
478
-                self::$browser->setVersion((float)$version[1]);
478
+                self::$browser->setVersion((float) $version[1]);
479 479
             }
480 480
             self::$browser->setName(Browser::EDGE);
481 481
 
Please login to merge, or discard this patch.
src/Browser.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     public function setName($name)
111 111
     {
112
-        $this->name = (string)$name;
112
+        $this->name = (string) $name;
113 113
         return $this;
114 114
     }
115 115
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      */
147 147
     public function setVersion($version)
148 148
     {
149
-        $this->version = (string)$version;
149
+        $this->version = (string) $version;
150 150
         return $this;
151 151
     }
152 152
 
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
             (stripos($ua, 'Chrome/51.0.2704.103') !== false && !isset($_SERVER['HTTP_UPGRADE_INSECURE_REQUESTS']) && stristr($_SERVER['HTTP_ACCEPT_LANGUAGE'], "ru-RU") !== false) //ICQ Preview
213 213
         ) {
214 214
             $scriptedAgent = new ScriptedAgent($ua);
215
-            if ($scriptedAgent->getName()==ScriptedAgent::UNKNOWN) {
215
+            if ($scriptedAgent->getName() == ScriptedAgent::UNKNOWN) {
216 216
                 return false;
217 217
             } else {
218 218
                 return $scriptedAgent;
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
      */
229 229
     public function setIsChromeFrame($isChromeFrame)
230 230
     {
231
-        $this->isChromeFrame = (bool)$isChromeFrame;
231
+        $this->isChromeFrame = (bool) $isChromeFrame;
232 232
         return $this;
233 233
     }
234 234
 
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
      */
261 261
     public function setIsWebkit($isWebkit)
262 262
     {
263
-        $this->isWebkit = (bool)$isWebkit;
263
+        $this->isWebkit = (bool) $isWebkit;
264 264
         return $this;
265 265
     }
266 266
 
Please login to merge, or discard this patch.