Skip to content

Commit

Permalink
style: reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHemery authored and github-actions[bot] committed Sep 5, 2022
1 parent ec666cd commit 85e50d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Support/Polygon.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function setPoints(array $points): Polygon
continue;
}

if (!is_array($point)) {
if (! is_array($point)) {
throw new InvalidPoint($point);
}

Expand Down Expand Up @@ -95,7 +95,7 @@ public function getBoundingBox(): array
*/
public function pointOnVertex(Point|array $point): bool
{
if (!($point instanceof Point)) {
if (! ($point instanceof Point)) {
$point = Point::fromArray($point);
}

Expand All @@ -113,7 +113,7 @@ public function pointOnVertex(Point|array $point): bool
*/
public function contain(Point|array $point): bool
{
if (!($point instanceof Point)) {
if (! ($point instanceof Point)) {
$point = Point::fromArray($point);
}

Expand Down Expand Up @@ -163,7 +163,7 @@ public function getPoints(): array

public function toArray(): array
{
return array_map(fn(Point $point) => $point->toArray(), $this->getPoints());
return array_map(fn (Point $point) => $point->toArray(), $this->getPoints());
}

public function jsonSerialize(): array
Expand Down

0 comments on commit 85e50d7

Please sign in to comment.