@@ -58,8 +58,7 @@ discard block |
||
58 | 58 | * Class AbstractDetector |
59 | 59 | * @package Platine\UserAgent\Detector |
60 | 60 | */ |
61 | -abstract class AbstractDetector |
|
62 | -{ |
|
61 | +abstract class AbstractDetector { |
|
63 | 62 | /** |
64 | 63 | * Data type and definitions |
65 | 64 | */ |
@@ -97,8 +96,7 @@ discard block |
||
97 | 96 | /** |
98 | 97 | * Create new instance |
99 | 98 | */ |
100 | - public function __construct() |
|
101 | - { |
|
99 | + public function __construct() { |
|
102 | 100 | $this->maps = $this->maps(); |
103 | 101 | $this->regex = $this->regex(); |
104 | 102 | } |
@@ -197,8 +195,7 @@ discard block |
||
197 | 195 | * Return the entity instance |
198 | 196 | * @return Browser|Cpu|Os|Device|Engine |
199 | 197 | */ |
200 | - public function entity() |
|
201 | - { |
|
198 | + public function entity() { |
|
202 | 199 | return $this->entity; |
203 | 200 | } |
204 | 201 | |
@@ -243,8 +240,7 @@ discard block |
||
243 | 240 | * @param string $str |
244 | 241 | * @return string|string[]|null |
245 | 242 | */ |
246 | - protected function trim(string $str) |
|
247 | - { |
|
243 | + protected function trim(string $str) { |
|
248 | 244 | return preg_replace( |
249 | 245 | '/^[\s\xA0]+|[\s\xA0]+$/', |
250 | 246 | '', |