Skip to content

Commit 1ae3661

Browse files
cklei-carlygithub-actions[bot]
authored andcommitted
Fix styling
1 parent 75d572e commit 1ae3661

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/Observers/ContentObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function saved($model)
6666
{
6767
$segmentProvider = ContentSegmentFactory::create();
6868

69-
// Update the route
69+
// Update the route
7070
// - if default content is changed -> default route should be updated
7171
// - if slug is changed -> the route should be updated
7272
if ($model->isDirty(['is_default', 'slug'])) {

src/Observers/ContentRouteObserver.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ public function saved($model)
3131

3232
$segmentProvider = ContentSegmentFactory::create();
3333

34-
$content->children()->get()->load('routes')->each(function (Content|Model $child) use ($segmentProvider) {
35-
34+
$content->children()->get()->load('routes')->each(function (Content | Model $child) use ($segmentProvider) {
35+
3636
$uri = $segmentProvider->getSegment($child);
37-
37+
3838
$currentRoutes = collect($child->routes->where('is_default_pattern', true))
3939
->map(fn (Model $model) => $model->toArray())
4040
->map(function (array $data) use ($uri) {
4141
$data['uri'] = $uri;
42-
42+
4343
return $data;
4444
})
4545
->all();
46-
46+
4747
event(new UpsertRoute($child->withoutRelations(), $currentRoutes));
4848
});
4949
}

0 commit comments

Comments
 (0)