Skip to content

Commit 20011fd

Browse files
kaspernowakgithub-actions[bot]
authored andcommitted
Fix styling
1 parent cd31a73 commit 20011fd

File tree

60 files changed

+73
-28
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+73
-28
lines changed

src/Dto/DefaultPositions/AddDefaultPositionDTO.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public static function fromArray(array $data): self
2828
if (! $data) {
2929
throw new Exception('Unable to create DTO. Data missing from response.');
3030
}
31+
3132
return new self(
3233
amount: Arr::get($data, 'amount'),
3334
unit_id: Arr::get($data, 'unit_id'),

src/Dto/DefaultPositions/CreateEditDefaultPositionDTO.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public static function fromArray(array $data): self
2727
if (! $data) {
2828
throw new Exception('Unable to create DTO. Data missing from response.');
2929
}
30+
3031
return new self(
3132
amount: Arr::get($data, 'amount'),
3233
unit_id: Arr::get($data, 'unit_id'),

src/Dto/DefaultPositions/DefaultPositionDTO.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function __construct(
2525
public ?string $discount_in_percent,
2626
public ?string $position_total,
2727
public ?int $parent_id,
28-
public ?string $type = 'KbPositionCustom',
28+
public ?string $type,
2929
public ?string $pos,
3030
public ?string $internal_pos,
3131
public ?bool $is_optional,
@@ -37,6 +37,7 @@ public static function fromResponse(Response $response): self
3737
throw new Exception('Failed to create DTO from Response');
3838
}
3939
$data = $response->json();
40+
4041
return self::fromArray($data);
4142
}
4243

@@ -45,6 +46,7 @@ public static function fromArray(array $data): self
4546
if (! $data) {
4647
throw new Exception('Unable to create DTO. Data missing from response.');
4748
}
49+
4850
return new self(
4951
id: Arr::get($data, 'id'),
5052
amount: Arr::get($data, 'amount'),

src/Dto/DiscountPositions/AddDiscountPositionDTO.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public static function fromArray(array $data): self
2424
if (! $data) {
2525
throw new Exception('Unable to create DTO. Data missing from response.');
2626
}
27+
2728
return new self(
2829
text: Arr::get($data, 'text'),
2930
is_percentual: Arr::get($data, 'is_percentual'),

src/Dto/DiscountPositions/CreateEditDiscountPositionDTO.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public static function fromArray(array $data): self
2323
if (! $data) {
2424
throw new Exception('Unable to create DTO. Data missing from response.');
2525
}
26+
2627
return new self(
2728
text: Arr::get($data, 'text'),
2829
is_percentual: Arr::get($data, 'is_percentual'),

src/Dto/DiscountPositions/DiscountPositionDTO.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public static function fromResponse(Response $response): self
2727
throw new Exception('Failed to create DTO from Response');
2828
}
2929
$data = $response->json();
30+
3031
return self::fromArray($data);
3132
}
3233

@@ -35,6 +36,7 @@ public static function fromArray(array $data): self
3536
if (! $data) {
3637
throw new Exception('Unable to create DTO. Data missing from response.');
3738
}
39+
3840
return new self(
3941
id: Arr::get($data, 'id'),
4042
text: Arr::get($data, 'text'),

src/Dto/Invoices/SendInvoiceDTO.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Exception;
66
use Illuminate\Support\Arr;
7-
use Saloon\Http\Response;
87
use Spatie\LaravelData\Data;
98

109
class SendInvoiceDTO extends Data

src/Dto/ItemPositions/AddItemPositionDTO.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public static function fromArray(array $data): self
2929
if (! $data) {
3030
throw new Exception('Unable to create DTO. Data missing from response.');
3131
}
32+
3233
return new self(
3334
amount: Arr::get($data, 'amount'),
3435
unit_id: Arr::get($data, 'unit_id'),

src/Dto/ItemPositions/CreateItemPositionDTO.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public static function fromArray(array $data): self
2828
if (! $data) {
2929
throw new Exception('Unable to create DTO. Data missing from response.');
3030
}
31+
3132
return new self(
3233
amount: Arr::get($data, 'amount'),
3334
unit_id: Arr::get($data, 'unit_id'),

src/Dto/ItemPositions/EditItemPositionDTO.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public static function fromArray(array $data): self
2727
if (! $data) {
2828
throw new Exception('Unable to create DTO. Data missing from response.');
2929
}
30+
3031
return new self(
3132
amount: Arr::get($data, 'amount'),
3233
unit_id: Arr::get($data, 'unit_id'),

0 commit comments

Comments
 (0)