Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
kfriars authored and github-actions[bot] committed Nov 22, 2023
1 parent 142b076 commit 6b9aad9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Concerns/HasLayouts.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public static function showLayout(): ?Layout
$layoutModel = static::layoutModel();

return $layoutModel::query()
->where($layoutModel::getLayoutKeyColumn(), static::showLayoutKey())
->first();
->where($layoutModel::getLayoutKeyColumn(), static::showLayoutKey())
->first();
}

public static function indexLayout(): Layout
Expand All @@ -60,7 +60,7 @@ public static function indexLayout(): Layout

public static function layouts(): Collection
{
if (!static::customizeableLayout()) {
if (! static::customizeableLayout()) {
return new Collection();
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/LayoutsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
expect($layout->name)->toBe('Lesson Details');
expect($layout->type)->toBe(LayoutType::Show);
expect($layout->layoutable)->toBe(Lesson::layoutKey());
});
});

it('returns the default index layout for a non-customizeable layoutable', function () {
expect($layout = Lesson::indexLayout())->not->toBeNull();
Expand Down

0 comments on commit 6b9aad9

Please sign in to comment.