Skip to content

Commit 5ffebf3

Browse files
committed
Fix cs
1 parent 76d283c commit 5ffebf3

16 files changed

+22
-36
lines changed

config/areas/site/dialogs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

33
use Kirby\Cms\App;
4+
use Kirby\Panel\PageCreateDialog;
45
use Kirby\Panel\Ui\Dialogs\ChangesDialog;
56
use Kirby\Panel\Ui\Dialogs\PageChangeSortDialog;
67
use Kirby\Panel\Ui\Dialogs\PageChangeStatusDialog;
78
use Kirby\Panel\Ui\Dialogs\PageChangeTemplateDialog;
89
use Kirby\Panel\Ui\Dialogs\PageChangeTitleDialog;
9-
use Kirby\Panel\PageCreateDialog;
1010
use Kirby\Panel\Ui\Dialogs\PageDeleteDialog;
1111
use Kirby\Panel\Ui\Dialogs\PageDuplicateDialog;
1212
use Kirby\Panel\Ui\Dialogs\PageMoveDialog;

config/areas/users/dialogs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
],
2020
'user.changeEmail' => [
2121
'pattern' => 'users/(:any)/changeEmail',
22-
'handler' =>UserChangeEmailDialog::for(...)
22+
'handler' => UserChangeEmailDialog::for(...)
2323
],
2424
'user.changeLanguage' => [
2525
'pattern' => 'users/(:any)/changeLanguage',

config/areas/users/drawers.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
11
<?php
22

33
$fields = require __DIR__ . '/../fields/drawers.php';
4-
$sections = require __DIR__ . '/../sections/drawers.php';
54

65
return [
76
'user.fields' => [
87
'pattern' => '(users/.*?)/fields/(:any)/(:all?)',
98
...$fields['model']
109
],
11-
'user.sections' => [
12-
'pattern' => '(users/.*?)/sections/(:any)/(:all?)',
13-
...$sections['model']
14-
],
1510
'user.file.fields' => [
1611
'pattern' => '(users/.*?)/files/(:any)/fields/(:any)/(:all?)',
1712
...$fields['file']
18-
],
19-
'user.file.sections' => [
20-
'pattern' => '(users/.*?)/files/(:any)/sections/(:any)/(:all?)',
21-
...$sections['file']
22-
],
13+
]
2314
];

src/Panel/Dialog.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Kirby\Panel;
44

5-
use Closure;
65
use Kirby\Http\Response;
76

87
/**

src/Panel/Ui/Dialog.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function __construct(
2525
public string|null $size = null,
2626
public string|array|false|null $submitButton = null,
2727
) {
28-
parent::__construct (
28+
parent::__construct(
2929
component: $component
3030
);
3131

src/Panel/Ui/Dialogs/FieldDialog.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ public static function forModel(
2929
string $model,
3030
string $field,
3131
string|null $path = null
32-
): static
33-
{
32+
): static {
3433
$model = Find::parent($model);
3534
$field = Form::for($model)->field($field);
3635
return new static($field, $path);
@@ -41,8 +40,7 @@ public static function forFile(
4140
string $filename,
4241
string $field,
4342
string|null $path = null
44-
): static
45-
{
43+
): static {
4644
$file = Find::file($model, $filename);
4745
$field = Form::for($file)->field($field);
4846
return new static($field, $path);

src/Panel/Ui/Dialogs/LanguageTranslationCreateDialog.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Kirby\Panel\Ui\Dialogs;
44

5-
use Kirby\Cms\Find;
65
use Kirby\Cms\Language;
76
use Kirby\Cms\LanguageVariable;
87
use Kirby\Toolkit\I18n;

src/Panel/Ui/Dialogs/PageMoveDialog.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Kirby\Panel\Ui\Dialogs;
44

5-
use Kirby\Cms\App;
65
use Kirby\Cms\Find;
76
use Kirby\Cms\Page;
87
use Kirby\Panel\Ui\Dialog;

src/Panel/Ui/Dialogs/SiteChangeTitleDialog.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
*/
1818
class SiteChangeTitleDialog extends FormDialog
1919
{
20-
public function __construct() {
20+
public function __construct()
21+
{
2122
parent::__construct(
2223
fields: [
2324
'title' => Field::title([

src/Panel/Ui/Dialogs/SystemActivateDialog.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
*/
1616
class SystemActivateDialog extends FormDialog
1717
{
18-
public function __construct() {
18+
public function __construct()
19+
{
1920

2021
parent::__construct(
2122
fields: $this->fields(),

src/Panel/Ui/Dialogs/SystemLicenseDialog.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
*/
1616
class SystemLicenseDialog extends Dialog
1717
{
18-
public function __construct() {
18+
public function __construct()
19+
{
1920
parent::__construct(
2021
component: 'k-license-dialog',
2122
cancelButton: $this->isRenewable(),
@@ -39,11 +40,11 @@ public function license(): array
3940
$obfuscated = $this->kirby->user()->isAdmin() === false;
4041

4142
return [
42-
'code' => $license->code($obfuscated),
43-
'icon' => $status->icon(),
44-
'info' => $status->info($license->renewal('Y-m-d', 'date')),
45-
'theme' => $status->theme(),
46-
'type' => $license->label(),
43+
'code' => $license->code($obfuscated),
44+
'icon' => $status->icon(),
45+
'info' => $status->info($license->renewal('Y-m-d', 'date')),
46+
'theme' => $status->theme(),
47+
'type' => $license->label(),
4748
];
4849
}
4950

src/Panel/Ui/Dialogs/UserChangePasswordDialog.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public function __construct(
3434
])
3535
],
3636
submitButton: I18n::translate('change'),
37-
3837
);
3938
}
4039

src/Panel/Ui/Dialogs/UserCreateDialog.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
*/
1717
class UserCreateDialog extends FormDialog
1818
{
19-
public function __construct() {
19+
public function __construct()
20+
{
2021
$roles = $this->kirby->roles()->canBeCreated();
2122

2223
// get default value for role

src/Panel/Ui/Dialogs/UserTotpEnableDialog.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Kirby\Panel\Ui\Dialogs;
44

5-
use Kirby\Cms\App;
65
use Kirby\Cms\User;
76
use Kirby\Exception\InvalidArgumentException;
87
use Kirby\Image\QrCode;

src/Panel/Ui/Drawer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct(
2626
public array|null $options = null,
2727
public string|null $title = null,
2828
) {
29-
parent::__construct (
29+
parent::__construct(
3030
component: $component
3131
);
3232

src/Panel/Ui/Drawers/FieldDrawer.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ public static function forModel(
2929
string $model,
3030
string $field,
3131
string|null $path = null
32-
): static
33-
{
32+
): static {
3433
$model = Find::parent($model);
3534
$field = Form::for($model)->field($field);
3635
return new static($field, $path);
@@ -41,8 +40,7 @@ public static function forFile(
4140
string $filename,
4241
string $field,
4342
string|null $path = null
44-
): static
45-
{
43+
): static {
4644
$file = Find::file($model, $filename);
4745
$field = Form::for($file)->field($field);
4846
return new static($field, $path);

0 commit comments

Comments
 (0)