Skip to content

Commit 6b27bb4

Browse files
brendtactions-user
authored andcommitted
Fix styling
1 parent bb78dbd commit 6b27bb4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/PeriodTraits/PeriodOperations.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function overlap(Period ...$others): ?static
4040
{
4141
if (count($others) === 0) {
4242
return null;
43-
} else if (count($others) > 1) {
43+
} elseif (count($others) > 1) {
4444
return $this->overlapAll(...$others);
4545
} else {
4646
$other = $others[0];
@@ -119,7 +119,7 @@ public function subtract(Period ...$others): PeriodCollection
119119
{
120120
if (count($others) === 0) {
121121
return PeriodCollection::make($this);
122-
} else if (count($others) > 1) {
122+
} elseif (count($others) > 1) {
123123
return $this->subtractAll(...$others);
124124
} else {
125125
$other = $others[0];

tests/Operations/OverlapTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public function passing_empty_period_collection_returns_null()
186186
$current = Period::make('2018-01-01', '2018-01-31');
187187
$emptyCollection = new PeriodCollection;
188188

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

191191
$this->assertNull($diff);
192192
}

tests/Operations/SubtractTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ public function passing_empty_period_collection_returns_same_period_within_colle
231231
$current = Period::make('2018-01-01', '2018-01-31');
232232
$emptyCollection = new PeriodCollection;
233233

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

236236
$this->assertInstanceOf(PeriodCollection::class, $diff);
237237
$this->assertCount(1, $diff);

0 commit comments

Comments
 (0)