Skip to content

Commit 8f3a410

Browse files
committed
style: consistent cs
1 parent 4bd231a commit 8f3a410

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Panel/Controller/View/ModelPreviewViewController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ public static function redirect(string $versionId): string|null
4545
// Preserve the redirect URL's query and params
4646
// and inject them into the new URL
4747
unset(
48-
$redirect->query()->_token,
49-
$redirect->query()->_version,
50-
$redirect->query()->_preview
48+
$redirect->query->_token,
49+
$redirect->query->_version,
50+
$redirect->query->_preview
5151
);
5252

5353
if ($redirect->query->isNotEmpty() === true) {
@@ -82,7 +82,7 @@ function (string $url) use ($model): string {
8282
$uri = new Uri($url);
8383

8484
// set the preview flag
85-
$uri->query()->_preview = 'true';
85+
$uri->query->_preview = 'true';
8686

8787
// inject params and query from a redirect
8888
$uri->params->merge($model->kirby()->request()->get('_params'));

0 commit comments

Comments
 (0)