Skip to content

Commit

Permalink
Merge pull request #123 from vibko/update-coding-style
Browse files Browse the repository at this point in the history
Update CS
  • Loading branch information
vibko committed Jul 7, 2023
2 parents 6aa3ccb + 6270ae3 commit 9e4240f
Show file tree
Hide file tree
Showing 23 changed files with 350 additions and 350 deletions.
8 changes: 4 additions & 4 deletions src/Address.php
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
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
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
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
Expand Up @@ -78,8 +78,8 @@ public static function preprocessEmailaddress(
return \strtr(
$sanitized,
[
'>' => '',
'<' => '',
'<' => '',
'>' => '',
]
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Guid.php
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

0 comments on commit 9e4240f

Please sign in to comment.