Skip to content

Commit

Permalink
style: fix (updated) code style
Browse files Browse the repository at this point in the history
  • Loading branch information
JaZo committed Sep 9, 2024
1 parent d9cd739 commit aa2d88e
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/Exceptions/RequestException.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function __construct(
string $message,
private RequestInterface $request,
private ?ResponseInterface $response = null,
?\Throwable $previous = null
?\Throwable $previous = null,
) {
$code = $response ? $response->getStatusCode() : 0;
parent::__construct($message, $code, $previous);
Expand All @@ -22,7 +22,7 @@ public function __construct(
public static function create(
RequestInterface $request,
?ResponseInterface $response = null,
?\Throwable $previous = null
?\Throwable $previous = null,
): self {
if (!$response) {
return new self(
Expand Down
2 changes: 1 addition & 1 deletion src/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct(
string $clientId = 'melvin-frontend-test',
?ClientInterface $httpClient = null,
?RequestFactoryInterface $requestFactory = null,
?StreamFactoryInterface $streamFactory = null
?StreamFactoryInterface $streamFactory = null,
) {
$this->authenticate($username, $password, $clientId);
$this->httpClient = $httpClient ?: Psr18ClientDiscovery::find();
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Area.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Area
public function __construct(
public int $id,
public AreaType $type,
public string $name
public string $name,
) {
}
}
2 changes: 1 addition & 1 deletion src/Models/Attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Attachment
{
public function __construct(
public string $name,
public string $url
public string $url,
) {
}
}
2 changes: 1 addition & 1 deletion src/Models/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct(
public string $publicPhone,
public bool $active,
public int $createdById,
public int $changedById
public int $changedById,
) {
}
}
2 changes: 1 addition & 1 deletion src/Models/Detour.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct(
/**
* @var \Swis\Melvin\Enums\BoatType[]
*/
public array $boatTypes
public array $boatTypes,
) {
}
}
2 changes: 1 addition & 1 deletion src/Models/LaneInformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class LaneInformation
public function __construct(
public int $numberOfLanesRestricted,
public int $numberOfOperationalLanes,
public int $originalNumberOfLanes
public int $originalNumberOfLanes,
) {
}
}
2 changes: 1 addition & 1 deletion src/Models/Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public function __construct(
public string $city,
public string $road,
public string $district,
public string $comment
public string $comment,
) {
}
}
2 changes: 1 addition & 1 deletion src/Models/Period.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(
public ?PeriodStatus $status,
public ?bool $overrunning,
public int $order,
public ?int $parentId
public ?int $parentId,
) {
}
}
2 changes: 1 addition & 1 deletion src/Models/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function __construct(
public string $firstName,
public string $prefix,
public string $lastName,
public PersonType $type
public PersonType $type,
) {
}
}
2 changes: 1 addition & 1 deletion src/Models/Restriction.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(
* @var \Swis\Melvin\Enums\RoadManagementType[]
*/
public ?array $roadManagementTypes,
public ?RoadManagementType $roadManagementType
public ?RoadManagementType $roadManagementType,
) {
}
}
2 changes: 1 addition & 1 deletion src/Models/RestrictionExtraInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class RestrictionExtraInfo
{
public function __construct(
public ?bool $passageAllowed,
public string $description
public string $description,
) {
}
}
2 changes: 1 addition & 1 deletion src/Models/RoadAuthority.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class RoadAuthority
public function __construct(
public int $id,
public ?RoadAuthorityType $type,
public string $name
public string $name,
) {
}
}
2 changes: 1 addition & 1 deletion src/Models/Situation.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function __construct(
/**
* @var \Swis\Melvin\Models\Contact[]
*/
public array $contacts
public array $contacts,
) {
}
}
2 changes: 1 addition & 1 deletion src/Models/VehicleInformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public function __construct(
public ?float $heightCharacteristic,
public ?float $lengthCharacteristic,
public ?float $widthCharacteristic,
public ?float $grossWeightCharacteristic
public ?float $grossWeightCharacteristic,
) {
}
}
2 changes: 1 addition & 1 deletion src/Models/Week.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function __construct(
public bool $thursday,
public bool $friday,
public bool $saturday,
public bool $sunday
public bool $sunday,
) {
}
}
2 changes: 1 addition & 1 deletion src/Parsers/SituationParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(
protected RestrictionParser $restrictionParser,
protected DetourParser $detourParser,
protected ContactParser $contactParser,
protected UrlParser $urlParser
protected UrlParser $urlParser,
) {
}

Expand Down

0 comments on commit aa2d88e

Please sign in to comment.