Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt authored and actions-user committed Dec 23, 2021
1 parent bb78dbd commit 6b27bb4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/PeriodTraits/PeriodOperations.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function overlap(Period ...$others): ?static
{
if (count($others) === 0) {
return null;
} else if (count($others) > 1) {
} elseif (count($others) > 1) {
return $this->overlapAll(...$others);
} else {
$other = $others[0];
Expand Down Expand Up @@ -119,7 +119,7 @@ public function subtract(Period ...$others): PeriodCollection
{
if (count($others) === 0) {
return PeriodCollection::make($this);
} else if (count($others) > 1) {
} elseif (count($others) > 1) {
return $this->subtractAll(...$others);
} else {
$other = $others[0];
Expand Down
2 changes: 1 addition & 1 deletion tests/Operations/OverlapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function passing_empty_period_collection_returns_null()
$current = Period::make('2018-01-01', '2018-01-31');
$emptyCollection = new PeriodCollection;

$diff = $current->overlap(... $emptyCollection);
$diff = $current->overlap(...$emptyCollection);

$this->assertNull($diff);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Operations/SubtractTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public function passing_empty_period_collection_returns_same_period_within_colle
$current = Period::make('2018-01-01', '2018-01-31');
$emptyCollection = new PeriodCollection;

$diff = $current->subtract(... $emptyCollection);
$diff = $current->subtract(...$emptyCollection);

$this->assertInstanceOf(PeriodCollection::class, $diff);
$this->assertCount(1, $diff);
Expand Down

0 comments on commit 6b27bb4

Please sign in to comment.