Skip to content

Commit a65f716

Browse files
simonhampgithub-actions[bot]
authored andcommitted
Fix styling
1 parent db818a8 commit a65f716

30 files changed

+30
-102
lines changed

Diff for: src/App.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
class App
88
{
9-
public function __construct(protected Client $client)
10-
{
11-
}
9+
public function __construct(protected Client $client) {}
1210

1311
public function focus(): void
1412
{

Diff for: src/Clipboard.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
class Clipboard
88
{
9-
public function __construct(protected Client $client)
10-
{
11-
}
9+
public function __construct(protected Client $client) {}
1210

1311
public function clear()
1412
{

Diff for: src/ContextMenu.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77

88
class ContextMenu
99
{
10-
public function __construct(protected Client $client)
11-
{
12-
}
10+
public function __construct(protected Client $client) {}
1311

1412
public function register(Menu $menu)
1513
{

Diff for: src/DataObjects/Printer.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,5 @@ public function __construct(
1111
public int $status,
1212
public bool $isDefault,
1313
public array $options
14-
) {
15-
16-
}
14+
) {}
1715
}

Diff for: src/Dialog.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ class Dialog
2626

2727
protected $windowReference;
2828

29-
public function __construct(protected Client $client)
30-
{
31-
}
29+
public function __construct(protected Client $client) {}
3230

3331
public static function new()
3432
{

Diff for: src/Dock.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77

88
class Dock
99
{
10-
public function __construct(protected Client $client)
11-
{
12-
}
10+
public function __construct(protected Client $client) {}
1311

1412
public function menu(Menu $menu)
1513
{

Diff for: src/Events/App/ApplicationBooted.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,5 @@ class ApplicationBooted
1010
{
1111
use Dispatchable, InteractsWithSockets, SerializesModels;
1212

13-
public function __construct()
14-
{
15-
16-
}
13+
public function __construct() {}
1714
}

Diff for: src/Events/App/OpenFile.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ class OpenFile implements ShouldBroadcastNow
1212
{
1313
use Dispatchable, InteractsWithSockets, SerializesModels;
1414

15-
public function __construct(public $path)
16-
{
17-
18-
}
15+
public function __construct(public $path) {}
1916

2017
public function broadcastOn()
2118
{

Diff for: src/Events/App/OpenedFromURL.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ class OpenedFromURL implements ShouldBroadcastNow
1212
{
1313
use Dispatchable, InteractsWithSockets, SerializesModels;
1414

15-
public function __construct(public $url)
16-
{
17-
18-
}
15+
public function __construct(public $url) {}
1916

2017
public function broadcastOn()
2118
{

Diff for: src/Events/Menu/MenuItemClicked.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class MenuItemClicked implements ShouldBroadcastNow
1212
{
1313
use Dispatchable, InteractsWithSockets, SerializesModels;
1414

15-
public function __construct(public array $item)
16-
{
17-
}
15+
public function __construct(public array $item) {}
1816

1917
public function broadcastOn()
2018
{

Diff for: src/Events/MenuBar/MenuBarDroppedFiles.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class MenuBarDroppedFiles implements ShouldBroadcastNow
1212
{
1313
use Dispatchable, InteractsWithSockets, SerializesModels;
1414

15-
public function __construct(public array $files = [])
16-
{
17-
}
15+
public function __construct(public array $files = []) {}
1816

1917
public function broadcastOn()
2018
{

Diff for: src/Events/Settings/SettingChanged.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ class SettingChanged implements ShouldBroadcastNow
1212
{
1313
use Dispatchable, InteractsWithSockets, SerializesModels;
1414

15-
public function __construct(public string $key, public mixed $value)
16-
{
17-
18-
}
15+
public function __construct(public string $key, public mixed $value) {}
1916

2017
public function broadcastOn()
2118
{

Diff for: src/Events/Windows/WindowClosed.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class WindowClosed implements ShouldBroadcastNow
1212
{
1313
use Dispatchable, InteractsWithSockets, SerializesModels;
1414

15-
public function __construct(public string $id)
16-
{
17-
}
15+
public function __construct(public string $id) {}
1816

1917
public function broadcastOn()
2018
{

Diff for: src/GlobalShortcut.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ class GlobalShortcut
1010

1111
protected string $event;
1212

13-
public function __construct(protected Client $client)
14-
{
15-
}
13+
public function __construct(protected Client $client) {}
1614

1715
public function key(string $key): self
1816
{

Diff for: src/Logging/LogWatcher.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88

99
class LogWatcher
1010
{
11-
public function __construct(protected Client $client)
12-
{
13-
14-
}
11+
public function __construct(protected Client $client) {}
1512

1613
public function register(): void
1714
{

Diff for: src/Menu/Items/Event.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44

55
class Event extends MenuItem
66
{
7-
public function __construct(protected string $event, protected ?string $label, protected ?string $accelerator = null)
8-
{
9-
10-
}
7+
public function __construct(protected string $event, protected ?string $label, protected ?string $accelerator = null) {}
118

129
public function toArray(): array
1310
{

Diff for: src/Menu/Items/Link.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ class Link extends MenuItem
66
{
77
protected string $type = 'link';
88

9-
public function __construct(protected string $url, protected ?string $label, protected ?string $accelerator = null)
10-
{
11-
12-
}
9+
public function __construct(protected string $url, protected ?string $label, protected ?string $accelerator = null) {}
1310

1411
public function toArray(): array
1512
{

Diff for: src/Menu/Items/Role.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ class Role extends MenuItem
88
{
99
protected string $type = 'role';
1010

11-
public function __construct(protected RolesEnum $role, protected ?string $label = '')
12-
{
13-
14-
}
11+
public function __construct(protected RolesEnum $role, protected ?string $label = '') {}
1512

1613
public function toArray(): array
1714
{

Diff for: src/Menu/Menu.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ class Menu implements MenuItem
2121

2222
protected string $prepend = '';
2323

24-
public function __construct(protected Client $client)
25-
{
26-
}
24+
public function __construct(protected Client $client) {}
2725

2826
public static function new(): static
2927
{

Diff for: src/MenuBar/MenuBarManager.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77

88
class MenuBarManager
99
{
10-
public function __construct(protected Client $client)
11-
{
12-
13-
}
10+
public function __construct(protected Client $client) {}
1411

1512
public function create()
1613
{

Diff for: src/Notification.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class Notification
1212

1313
protected string $event = '';
1414

15-
public function __construct(protected Client $client)
16-
{
17-
}
15+
public function __construct(protected Client $client) {}
1816

1917
public static function new()
2018
{

Diff for: src/Process.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
class Process
88
{
9-
public function __construct(protected Client $client)
10-
{
11-
}
9+
public function __construct(protected Client $client) {}
1210

1311
public function arch(): string
1412
{

Diff for: src/ProgressBar.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ class ProgressBar
1616

1717
protected float $maxSecondsBetweenRedraws = 1;
1818

19-
public function __construct(protected int $maxSteps, protected Client $client)
20-
{
21-
}
19+
public function __construct(protected int $maxSteps, protected Client $client) {}
2220

2321
public static function create(int $maxSteps): static
2422
{

Diff for: src/Screen.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
class Screen
88
{
9-
public function __construct(protected Client $client)
10-
{
11-
}
9+
public function __construct(protected Client $client) {}
1210

1311
public function cursorPosition(): object
1412
{

Diff for: src/Settings.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
class Settings
88
{
9-
public function __construct(protected Client $client)
10-
{
11-
}
9+
public function __construct(protected Client $client) {}
1210

1311
public function set($key, $value): void
1412
{

Diff for: src/Shell.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
class Shell
88
{
9-
public function __construct(protected Client $client)
10-
{
11-
}
9+
public function __construct(protected Client $client) {}
1210

1311
public function showInFolder(string $path): void
1412
{

Diff for: src/System.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88

99
class System
1010
{
11-
public function __construct(protected Client $client)
12-
{
13-
}
11+
public function __construct(protected Client $client) {}
1412

1513
public function canPromptTouchID(): bool
1614
{

Diff for: src/Windows/WindowManager.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ class WindowManager
99
{
1010
use DetectsWindowId;
1111

12-
public function __construct(protected Client $client)
13-
{
14-
15-
}
12+
public function __construct(protected Client $client) {}
1613

1714
public function open(string $id = 'main')
1815
{

Diff for: tests/Http/Controller/DispatchEventFromAppControllerTest.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44

55
class TestEvent
66
{
7-
public function __construct(public string $test = '')
8-
{
9-
10-
}
7+
public function __construct(public string $test = '') {}
118
}
129

1310
it('dispatches an event', function () {

Diff for: tests/Http/Controller/NativeAppBootedControllerTest.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55

66
class TestProvider
77
{
8-
public function boot()
9-
{
10-
11-
}
8+
public function boot() {}
129
}
1310

1411
it('boots the NativePHP provider', function () {

0 commit comments

Comments
 (0)