Skip to content

Commit 31518fc

Browse files
timothepearceactions-user
authored andcommitted
Fix styling
1 parent fdb716e commit 31518fc

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/Collections/ProjectionCollection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ public function fillBetween(
5151
$allPeriods->each(function (string $currentPeriod) use (&$projectionName, &$period, &$allProjections, &$fillCallable, &$lastProjection) {
5252
$projection = $this->firstWhere('start_date', $currentPeriod);
5353

54-
$allProjections->push(is_null($projection) ?
54+
$allProjections->push(
55+
is_null($projection) ?
5556
$this->makeProjection($projectionName, $period, $currentPeriod, is_null($fillCallable) ? null : $fillCallable($lastProjection)) :
5657
$projection
5758
);
@@ -213,8 +214,7 @@ private function makeProjection(
213214
string $period,
214215
string $startDate,
215216
array|null $content = null
216-
): Projection
217-
{
217+
): Projection {
218218
return Projection::make([
219219
'projection_name' => $projectionName,
220220
'key' => null,

tests/Collections/ProjectionCollectionTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,10 @@ public function it_fills_the_missing_period_with_the_given_callable()
212212
now()->addMinutes(10),
213213
SinglePeriodProjection::class,
214214
'5 minutes',
215-
function(Projection $lastProjection) {
215+
function (Projection $lastProjection) {
216216
return $lastProjection->content;
217-
});
217+
}
218+
);
218219

219220
$this->assertEquals($filledCollection->last()->content, $filledCollection->first()->content);
220221
}

0 commit comments

Comments
 (0)