Skip to content

Commit 0d7fd6a

Browse files
committed
WIP
1 parent fa31d11 commit 0d7fd6a

36 files changed

+103
-131
lines changed

src/Classes/RequestClass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct()
3030
$this->ignoreReferenceErrorIngore = config('zammad.object_reference_error_ignore');
3131
$this->objectHasReferenceError = config('zammad.objet_reference_error');
3232

33-
$this->connector = new ZammadConnector();
33+
$this->connector = new ZammadConnector;
3434
}
3535

3636
private function performRequest(Request $request): Response

src/DTO/Attachment.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ public function __construct(
2828
public int $size,
2929
public string $name,
3030
public string $type,
31-
) {
32-
}
31+
) {}
3332

3433
public function url(): string
3534
{

src/DTO/Comment.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ public function __construct(
8989
public Collection $attachments,
9090
public Carbon $updated_at,
9191
public Carbon $created_at,
92-
) {
93-
}
92+
) {}
9493

9594
public static function fake(
9695
?int $id = null,

src/DTO/ObjectAttribute.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ public function __construct(
3131
public int $position,
3232
public array $data_option,
3333
public ?array $data_option_new,
34-
) {
35-
}
34+
) {}
3635

3736
public static function fake(
3837
?int $id = null,

src/DTO/User.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ public function __construct(
3131
public Carbon $updated_at,
3232
public Carbon $created_at,
3333
public ?array $expanded = null,
34-
) {
35-
}
34+
) {}
3635

3736
public static function fake(
3837
?int $id = null,

src/Events/ZammadResponseLog.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,5 @@ class ZammadResponseLog
1313
use InteractsWithSockets;
1414
use SerializesModels;
1515

16-
public function __construct(public Response $response)
17-
{
18-
}
16+
public function __construct(public Response $response) {}
1917
}

src/Requests/AccessTokens/CreateAccessTokenRequest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ class CreateAccessTokenRequest extends Request implements HasBody
1515

1616
public function __construct(
1717
protected array $payload
18-
) {
19-
}
18+
) {}
2019

2120
public function resolveEndpoint(): string
2221
{

src/Requests/AccessTokens/DestroyAccessTokenRequest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ class DestroyAccessTokenRequest extends Request
1212
public function __construct(
1313
public int $id,
1414
public bool $expand = false
15-
) {
16-
}
15+
) {}
1716

1817
public function resolveEndpoint(): string
1918
{

src/Requests/Attachment/GetAttachmentRequest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ public function __construct(
1313
public int $ticketId,
1414
public int $commentId,
1515
public int $attachmentId,
16-
) {
17-
}
16+
) {}
1817

1918
public function resolveEndpoint(): string
2019
{

src/Requests/Comments/CreateCommentRequest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ class CreateCommentRequest extends Request implements HasBody
1717

1818
public function __construct(
1919
protected array $payload
20-
) {
21-
}
20+
) {}
2221

2322
public function resolveEndpoint(): string
2423
{

0 commit comments

Comments
 (0)