Skip to content

Commit 1c56a92

Browse files
pascalbaljetgithub-actions[bot]
authored andcommitted
Fix styling
1 parent b211d67 commit 1c56a92

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public static function fromArray(array $config): static
8888

8989
$privateKey = $config['private_key'] ?? null;
9090

91-
if(is_callable($privateKey)) {
91+
if (is_callable($privateKey)) {
9292
$privateKey = $privateKey();
9393
}
9494

src/Helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static function temporaryDirectoryPath(string $pathOrFilename = ''): stri
4444
/**
4545
* Use the nohup command to run a script in the background.
4646
*/
47-
public static function scriptInBackground(string $scriptPath, ?string $outputPath = null, ?int $timeout = null): string
47+
public static function scriptInBackground(string $scriptPath, string $outputPath = null, int $timeout = null): string
4848
{
4949
$outputPath = $outputPath ?: '/dev/null';
5050

src/PendingTask.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function getId(): ?string
107107
/**
108108
* Sets the 'id' property.
109109
*/
110-
public function id(?string $id = null): self
110+
public function id(string $id = null): self
111111
{
112112
$this->id = $id;
113113

@@ -133,7 +133,7 @@ public function getOutputPath(): ?string
133133
/**
134134
* Sets the 'outputPath' property.
135135
*/
136-
public function writeOutputTo(?string $outputPath = null): self
136+
public function writeOutputTo(string $outputPath = null): self
137137
{
138138
$this->outputPath = $outputPath;
139139

src/ProcessOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function setIlluminateResult(ProcessResult $result): self
8989
/**
9090
* Setter for the exit code.
9191
*/
92-
public function setExitCode(?int $exitCode = null): self
92+
public function setExitCode(int $exitCode = null): self
9393
{
9494
$this->exitCode = $exitCode;
9595

tests/ConnectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function addConnectionToConfig()
88
'host' => '1.1.1.1',
99
'port' => '21',
1010
'username' => 'root',
11-
'private_key' => fn() => 'secret',
11+
'private_key' => fn () => 'secret',
1212
'passphrase' => 'password',
1313
'script_path' => '',
1414
]]);

0 commit comments

Comments
 (0)