Skip to content

Commit 1579c4d

Browse files
committed
fix styling
1 parent 4e979a6 commit 1579c4d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/Concerns/HasVisibility.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ trait HasVisibility
99
{
1010
/**
1111
* Determine wheather if the model is visible
12-
*
12+
*
1313
* @return \Illuminate\Database\Eloquent\Builder
1414
*/
1515
public function scopeVisible(Builder $builder)
@@ -19,11 +19,11 @@ public function scopeVisible(Builder $builder)
1919

2020
/**
2121
* Determine wheather if the model is hidden
22-
*
22+
*
2323
* @return \Illuminate\Database\Eloquent\Builder
2424
*/
2525
public function scopeHidden(Builder $builder)
2626
{
2727
return $builder->where('is_visible', Visibility::HIDDEN->value);
2828
}
29-
}
29+
}

tests/Feature/CategoryTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@
2929
]);
3030

3131
Category::factory()->times(9)->create([
32-
'is_visible' => false
32+
'is_visible' => false,
3333
]);
3434

3535
$this->assertEquals(Category::count(), 19);
3636
$this->assertEquals(Category::visible()->count(), 10);
3737
$this->assertEquals(Category::hidden()->count(), 9);
3838
});
39-

0 commit comments

Comments
 (0)