Passed
Branch develop (283cae)
by Gabriel
05:29
created
src/Os.php 1 patch
Spacing   +3 added lines, -3 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
     }
@@ -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.
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.