Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CS #123

Merged
merged 1 commit into from
Jul 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ private function __construct(
public function toArray(): array
{
return [
'street_and_number' => $this->streetAndNumber,
'town' => $this->town,
'zip_code' => $this->zipCode->getValue(),
'country' => $this->country->getValue(),
'country' => $this->country->getValue(),
'street_and_number' => $this->streetAndNumber,
'town' => $this->town,
'zip_code' => $this->zipCode->getValue(),
];
}

Expand Down
2 changes: 1 addition & 1 deletion src/Domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function getValue(): string
return $this->value;
}

public function getSecondLevelDomain(): Domain
public function getSecondLevelDomain(): self
{
$parts = \explode('.', $this->value);
$numberOfKeptParts = 2;
Expand Down
2 changes: 1 addition & 1 deletion src/DomainName.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function getValue(): string
return $this->value;
}

public function getSecondLevelDomain(): DomainName
public function getSecondLevelDomain(): self
{
$parts = \explode('.', $this->value);
$numberOfKeptParts = 2;
Expand Down
10 changes: 5 additions & 5 deletions src/Duration.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ private function __construct(

public static function from(
mixed $data
): Duration {
): self {
if ($data instanceof self) {
return $data;
}
Expand Down Expand Up @@ -77,8 +77,8 @@ public static function fromDateTimeModify(

return new static(
[
'value' => $value,
'unit' => $unit->getValue(),
'unit' => $unit->getValue(),
'value' => $value,
]
);
}
Expand All @@ -104,8 +104,8 @@ public function getDateTimeModify(): string
public function toArray(): array
{
return [
'value' => $this->value,
'unit' => $this->unit->getValue(),
'unit' => $this->unit->getValue(),
'value' => $this->value,
];
}

Expand Down
4 changes: 2 additions & 2 deletions src/Emailaddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ public static function preprocessEmailaddress(
return \strtr(
$sanitized,
[
'>' => '',
'<' => '',
'<' => '',
'>' => '',
]
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Guid.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ private function __construct(

public static function fromHex32(
Hex32 $hex32
): Guid {
): self {
$parts = \str_split(
$hex32->getValue(),
4
Expand Down
Loading