@@ -53,13 +53,11 @@ |
||
53 | 53 | * @class OsDetector |
54 | 54 | * @package Platine\UserAgent\Detector |
55 | 55 | */ |
56 | -class OsDetector extends AbstractDetector |
|
57 | -{ |
|
56 | +class OsDetector extends AbstractDetector { |
|
58 | 57 | /** |
59 | 58 | * {@inheritdoc} |
60 | 59 | */ |
61 | - public function __construct() |
|
62 | - { |
|
60 | + public function __construct() { |
|
63 | 61 | parent::__construct(); |
64 | 62 | |
65 | 63 | $this->entity = new Os(); |
@@ -53,13 +53,11 @@ |
||
53 | 53 | * @class CpuDetector |
54 | 54 | * @package Platine\UserAgent\Detector |
55 | 55 | */ |
56 | -class CpuDetector extends AbstractDetector |
|
57 | -{ |
|
56 | +class CpuDetector extends AbstractDetector { |
|
58 | 57 | /** |
59 | 58 | * {@inheritdoc} |
60 | 59 | */ |
61 | - public function __construct() |
|
62 | - { |
|
60 | + public function __construct() { |
|
63 | 61 | parent::__construct(); |
64 | 62 | |
65 | 63 | $this->entity = new Cpu(); |
@@ -53,13 +53,11 @@ |
||
53 | 53 | * @class EngineDetector |
54 | 54 | * @package Platine\UserAgent\Detector |
55 | 55 | */ |
56 | -class EngineDetector extends AbstractDetector |
|
57 | -{ |
|
56 | +class EngineDetector extends AbstractDetector { |
|
58 | 57 | /** |
59 | 58 | * {@inheritdoc} |
60 | 59 | */ |
61 | - public function __construct() |
|
62 | - { |
|
60 | + public function __construct() { |
|
63 | 61 | parent::__construct(); |
64 | 62 | |
65 | 63 | $this->entity = new Engine(); |
@@ -53,13 +53,11 @@ |
||
53 | 53 | * @class BrowserDetector |
54 | 54 | * @package Platine\UserAgent\Detector |
55 | 55 | */ |
56 | -class BrowserDetector extends AbstractDetector |
|
57 | -{ |
|
56 | +class BrowserDetector extends AbstractDetector { |
|
58 | 57 | /** |
59 | 58 | * {@inheritdoc} |
60 | 59 | */ |
61 | - public function __construct() |
|
62 | - { |
|
60 | + public function __construct() { |
|
63 | 61 | parent::__construct(); |
64 | 62 | |
65 | 63 | $this->entity = new Browser(); |
@@ -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 | } |
@@ -53,13 +53,11 @@ |
||
53 | 53 | * @class DeviceDetector |
54 | 54 | * @package Platine\UserAgent\Detector |
55 | 55 | */ |
56 | -class DeviceDetector extends AbstractDetector |
|
57 | -{ |
|
56 | +class DeviceDetector extends AbstractDetector { |
|
58 | 57 | /** |
59 | 58 | * {@inheritdoc} |
60 | 59 | */ |
61 | - public function __construct() |
|
62 | - { |
|
60 | + public function __construct() { |
|
63 | 61 | parent::__construct(); |
64 | 62 | |
65 | 63 | $this->entity = new Device(); |
@@ -62,8 +62,7 @@ discard block |
||
62 | 62 | * @class UserAgent |
63 | 63 | * @package Platine\UserAgent |
64 | 64 | */ |
65 | -class UserAgent |
|
66 | -{ |
|
65 | +class UserAgent { |
|
67 | 66 | /** |
68 | 67 | * Operating System detector |
69 | 68 | * @var OsDetector |
@@ -134,8 +133,7 @@ discard block |
||
134 | 133 | * Create new instance |
135 | 134 | * @param string|null $userAgent |
136 | 135 | */ |
137 | - public function __construct(?string $userAgent = null) |
|
138 | - { |
|
136 | + public function __construct(?string $userAgent = null) { |
|
139 | 137 | $this->browserDetector = new BrowserDetector(); |
140 | 138 | $this->cpuDetector = new CpuDetector(); |
141 | 139 | $this->engineDetector = new EngineDetector(); |
@@ -51,8 +51,7 @@ |
||
51 | 51 | * @class Helper |
52 | 52 | * @package Platine\UserAgent\Util |
53 | 53 | */ |
54 | -class Helper |
|
55 | -{ |
|
54 | +class Helper { |
|
56 | 55 | /** |
57 | 56 | * Return the major version number from the full version |
58 | 57 | * @param string $fullVersion |
@@ -51,6 +51,5 @@ |
||
51 | 51 | * @class Engine |
52 | 52 | * @package Platine\UserAgent\Entity |
53 | 53 | */ |
54 | -class Engine extends BaseEntity |
|
55 | -{ |
|
54 | +class Engine extends BaseEntity { |
|
56 | 55 | } |