Skip to content

Commit 62ce895

Browse files
simonhampgithub-actions[bot]
authored andcommitted
Fix styling
1 parent ad8ef09 commit 62ce895

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/ChildProcess.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ChildProcess
2020

2121
public function __construct(protected Client $client) {}
2222

23-
public function get(string $alias = null): ?static
23+
public function get(?string $alias = null): ?static
2424
{
2525
$alias = $alias ?? $this->alias;
2626

@@ -35,7 +35,7 @@ public function get(string $alias = null): ?static
3535

3636
public function all(): array
3737
{
38-
$processes = $this->client->get("child-process/")->json();
38+
$processes = $this->client->get('child-process/')->json();
3939

4040
if (empty($processes)) {
4141
return [];
@@ -57,8 +57,7 @@ public function start(
5757
?string $cwd = null,
5858
?array $env = null,
5959
bool $persistent = false
60-
): static
61-
{
60+
): static {
6261
$process = $this->client->post('child-process/start', [
6362
'alias' => $alias,
6463
'cmd' => $cmd,
@@ -70,14 +69,14 @@ public function start(
7069
return $this->fromRuntimeProcess($process);
7170
}
7271

73-
public function stop(string $alias = null): void
72+
public function stop(?string $alias = null): void
7473
{
7574
$this->client->post('child-process/stop', [
7675
'alias' => $alias ?? $this->alias,
7776
])->json();
7877
}
7978

80-
public function restart(string $alias = null): ?static
79+
public function restart(?string $alias = null): ?static
8180
{
8281
$process = $this->client->post('child-process/restart', [
8382
'alias' => $alias ?? $this->alias,
@@ -90,7 +89,7 @@ public function restart(string $alias = null): ?static
9089
return $this->fromRuntimeProcess($process);
9190
}
9291

93-
public function message(string $message, string $alias = null): static
92+
public function message(string $message, ?string $alias = null): static
9493
{
9594
$this->client->post('child-process/message', [
9695
'alias' => $alias ?? $this->alias,

0 commit comments

Comments
 (0)