Skip to content

Commit

Permalink
fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Mar 23, 2024
1 parent 1c9543c commit ad7961e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Util/PHP/AbstractPhpProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use function array_keys;
use function array_merge;
use function assert;
use function escapeshellarg;
use function explode;
use function file_exists;
use function file_get_contents;
use function ini_get_all;
Expand Down Expand Up @@ -163,7 +163,7 @@ public function getCommand(array $settings, ?string $file = null): array
{
$runtime = new Runtime;

$command = [];
$command = [];
$command[] = $runtime->getRawBinary();

if ($runtime->hasPCOV()) {
Expand Down Expand Up @@ -200,7 +200,8 @@ public function getCommand(array $settings, ?string $file = null): array
if (!$file) {
$command[] = '--';
}
foreach(explode(' ', $this->arguments) as $arg) {

foreach (explode(' ', $this->arguments) as $arg) {
$command[] = trim($arg);
}
}
Expand All @@ -214,7 +215,6 @@ public function getCommand(array $settings, ?string $file = null): array
abstract public function runJob(string $job, array $settings = []): array;

/**
* @param array $settings
* @return list<string>
*/
protected function settingsToParameters(array $settings): array
Expand Down
1 change: 1 addition & 0 deletions src/Util/PHP/DefaultPhpProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ protected function runProcess(string $job, array $settings): array
1 => $handles[1] ?? ['pipe', 'w'],
2 => $handles[2] ?? ['pipe', 'w'],
];

if ($this->stderrRedirection) {
$pipeSpec[2] = ['redirect', 1];
}
Expand Down

0 comments on commit ad7961e

Please sign in to comment.