Passed
Push — develop ( 0377b8...dbdaf9 )
by nguereza
28:32 queued 26:02
created
src/UserAgent.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,8 +62,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Util/Helper.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Entity/Cpu.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@
 block discarded – undo
51 51
  * Class Cpu
52 52
  * @package Platine\UserAgent\Entity
53 53
  */
54
-class Cpu extends AbstractEntity
55
-{
54
+class Cpu extends AbstractEntity {
56 55
     /**
57 56
      * The CPU architecture
58 57
      * @var string
Please login to merge, or discard this patch.
src/Entity/Device.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@
 block discarded – undo
51 51
  * Class Device
52 52
  * @package Platine\UserAgent\Entity
53 53
  */
54
-class Device extends AbstractEntity
55
-{
54
+class Device extends AbstractEntity {
56 55
     /**
57 56
      * The device model
58 57
      * @var string
Please login to merge, or discard this patch.
src/Entity/AbstractEntity.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
  * Class AbstractEntity
54 54
  * @package Platine\UserAgent\Entity
55 55
  */
56
-abstract class AbstractEntity
57
-{
56
+abstract class AbstractEntity {
58 57
     /**
59 58
      * Set the information for this entity
60 59
      * @param array<string, string|int> $data
Please login to merge, or discard this patch.
src/Detector/EngineDetector.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@
 block discarded – undo
56 56
 class EngineDetector extends AbstractDetector
57 57
 {
58 58
     /**
59
-    * {@inheritdoc}
60
-    */
59
+     * {@inheritdoc}
60
+     */
61 61
     public function __construct()
62 62
     {
63 63
         parent::__construct();
Please login to merge, or discard this patch.
src/Detector/OsDetector.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@
 block discarded – undo
56 56
 class OsDetector extends AbstractDetector
57 57
 {
58 58
     /**
59
-    * {@inheritdoc}
60
-    */
59
+     * {@inheritdoc}
60
+     */
61 61
     public function __construct()
62 62
     {
63 63
         parent::__construct();
Please login to merge, or discard this patch.
src/Detector/AbstractDetector.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/',
250 246
             '',
Please login to merge, or discard this patch.
src/Detector/DeviceDetector.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,9 +55,9 @@
 block discarded – undo
55 55
  */
56 56
 class DeviceDetector extends AbstractDetector
57 57
 {
58
-     /**
59
-     * {@inheritdoc}
60
-     */
58
+        /**
59
+         * {@inheritdoc}
60
+         */
61 61
     public function __construct()
62 62
     {
63 63
         parent::__construct();
Please login to merge, or discard this patch.