@@ -10,14 +10,12 @@ |
||
10 | 10 | * @class BaseEntity |
11 | 11 | * @package Quantum\Hub\Entity |
12 | 12 | */ |
13 | -class BaseEntity |
|
14 | -{ |
|
13 | +class BaseEntity { |
|
15 | 14 | /** |
16 | 15 | * Create new instance |
17 | 16 | * @param array<string, mixed> $data |
18 | 17 | */ |
19 | - public function __construct(array $data = []) |
|
20 | - { |
|
18 | + public function __construct(array $data = []) { |
|
21 | 19 | $this->hydrate($data); |
22 | 20 | } |
23 | 21 |
@@ -8,8 +8,7 @@ |
||
8 | 8 | * @class Commit |
9 | 9 | * @package Quantum\Hub\Entity |
10 | 10 | */ |
11 | -class Commit extends BaseEntity |
|
12 | -{ |
|
11 | +class Commit extends BaseEntity { |
|
13 | 12 | /** |
14 | 13 | * The id of the commit |
15 | 14 | * @var string |
@@ -8,8 +8,7 @@ |
||
8 | 8 | * @class Repository |
9 | 9 | * @package Quantum\Hub\Entity |
10 | 10 | */ |
11 | -class Repository extends BaseEntity |
|
12 | -{ |
|
11 | +class Repository extends BaseEntity { |
|
13 | 12 | /** |
14 | 13 | * The name |
15 | 14 | * @var string |
@@ -8,8 +8,7 @@ |
||
8 | 8 | * @class Sender |
9 | 9 | * @package Quantum\Hub\Entity |
10 | 10 | */ |
11 | -class Sender extends BaseEntity |
|
12 | -{ |
|
11 | +class Sender extends BaseEntity { |
|
13 | 12 | /** |
14 | 13 | * The name of the user who do the push |
15 | 14 | * @var string |
@@ -19,8 +19,7 @@ |
||
19 | 19 | * @package Quantum\Hub |
20 | 20 | * @template T |
21 | 21 | */ |
22 | -class WebHook |
|
23 | -{ |
|
22 | +class WebHook { |
|
24 | 23 | /** |
25 | 24 | * The request instance to use |
26 | 25 | * @var ServerRequestInterface |
@@ -124,10 +124,10 @@ discard block |
||
124 | 124 | return new Repository($data); |
125 | 125 | } |
126 | 126 | |
127 | - /** |
|
128 | - * Return the sender (user who make push) info |
|
129 | - * @return Sender |
|
130 | - */ |
|
127 | + /** |
|
128 | + * Return the sender (user who make push) info |
|
129 | + * @return Sender |
|
130 | + */ |
|
131 | 131 | public function getSender(): Sender |
132 | 132 | { |
133 | 133 | $data = $this->getPayloadValue('sender', []); |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | |
329 | 329 | $client = new HttpClient($url); |
330 | 330 | $client->json() |
331 | - ->verifySslCertificate(false); |
|
331 | + ->verifySslCertificate(false); |
|
332 | 332 | try { |
333 | 333 | $response = $client->post('', $params); |
334 | 334 |