Completed
Push — master ( 84d414...7917f0 )
by Gabriel
02:29
created
src/BrowserDetector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         self::checkChromeFrame();
90 90
 
91 91
         foreach (self::$browsersList as $browserName) {
92
-            $funcName = self::FUNC_PREFIX . $browserName;
92
+            $funcName = self::FUNC_PREFIX.$browserName;
93 93
 
94 94
             if (self::$funcName()) {
95 95
                 return true;
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
         if (stripos(self::$userAgentString, 'Edge') !== false) {
343 343
             $version = explode('Edge/', self::$userAgentString);
344 344
             if (isset($version[1])) {
345
-                self::$browser->setVersion((float)$version[1]);
345
+                self::$browser->setVersion((float) $version[1]);
346 346
             }
347 347
             self::$browser->setName(Browser::EDGE);
348 348
 
Please login to merge, or discard this patch.
src/Language.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
         }
98 98
 
99 99
         if (!empty($locale)) {
100
-            return $userLanguage . $separator . strtoupper($locale);
100
+            return $userLanguage.$separator.strtoupper($locale);
101 101
         } else {
102 102
             return $userLanguage;
103 103
         }
Please login to merge, or discard this patch.
src/Browser.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      */
97 97
     public function setName($name)
98 98
     {
99
-        $this->name = (string)$name;
99
+        $this->name = (string) $name;
100 100
 
101 101
         return $this;
102 102
     }
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      */
137 137
     public function setVersion($version)
138 138
     {
139
-        $this->version = (string)$version;
139
+        $this->version = (string) $version;
140 140
 
141 141
         return $this;
142 142
     }
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      */
165 165
     public function setIsRobot($isRobot)
166 166
     {
167
-        $this->isRobot = (bool)$isRobot;
167
+        $this->isRobot = (bool) $isRobot;
168 168
 
169 169
         return $this;
170 170
     }
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
      */
199 199
     public function setIsChromeFrame($isChromeFrame)
200 200
     {
201
-        $this->isChromeFrame = (bool)$isChromeFrame;
201
+        $this->isChromeFrame = (bool) $isChromeFrame;
202 202
 
203 203
         return $this;
204 204
     }
Please login to merge, or discard this patch.
src/OsDetector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
                             $os->setVersion('NT 4.0');
172 172
                             break;
173 173
                         default:
174
-                            if ((float)$matches[1] >= 10.0) {
174
+                            if ((float) $matches[1] >= 10.0) {
175 175
                                 $os->setVersion($matches[1]);
176 176
                             }
177 177
                             break;
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
             // Windows version
220 220
             if (preg_match('/Windows Phone ([\d\.]*)/i', $userAgent->getUserAgentString(), $matches)) {
221 221
                 if (isset($matches[1])) {
222
-                    $os->setVersion((float)$matches[1]);
222
+                    $os->setVersion((float) $matches[1]);
223 223
                 }
224 224
             }
225 225
     
Please login to merge, or discard this patch.
src/Device.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
      */
76 76
     public function setName($name)
77 77
     {
78
-        $this->name = (string)$name;
78
+        $this->name = (string) $name;
79 79
 
80 80
         return $this;
81 81
     }
Please login to merge, or discard this patch.
src/UserAgent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function setUserAgentString($userAgentString)
28 28
     {
29
-        $this->userAgentString = (string)$userAgentString;
29
+        $this->userAgentString = (string) $userAgentString;
30 30
 
31 31
         return $this;
32 32
     }
Please login to merge, or discard this patch.
src/Os.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      */
88 88
     public function setName($name)
89 89
     {
90
-        $this->name = (string)$name;
90
+        $this->name = (string) $name;
91 91
 
92 92
         return $this;
93 93
     }
@@ -100,11 +100,11 @@  discard block
 block discarded – undo
100 100
     public function getVersion()
101 101
     {
102 102
         if (isset($this->version)) {
103
-            return (string)$this->version;
103
+            return (string) $this->version;
104 104
         } else {
105 105
             OsDetector::detect($this, $this->getUserAgent());
106 106
 
107
-            return (string)$this->version;
107
+            return (string) $this->version;
108 108
         }
109 109
     }
110 110
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function setVersion($version)
119 119
     {
120
-        $this->version = (string)$version;
120
+        $this->version = (string) $version;
121 121
 
122 122
         return $this;
123 123
     }
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      */
152 152
     public function setIsMobile($isMobile = true)
153 153
     {
154
-        $this->isMobile = (bool)$isMobile;
154
+        $this->isMobile = (bool) $isMobile;
155 155
     }
156 156
 
157 157
     /**
Please login to merge, or discard this patch.