File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 ];
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments