Skip to content

Commit bed6385

Browse files
authored
Remove unused methods (#78)
Those methods have been moved to `InputOptionsSerializer` as part of #77.
1 parent 1c758c0 commit bed6385

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/Parallelization.php

-22
Original file line numberDiff line numberDiff line change
@@ -418,28 +418,6 @@ protected function executeChildProcess(
418418
}
419419
}
420420

421-
/**
422-
* Ensure that an option value is quoted correctly, before it is passed to a child process.
423-
* @param mixed $value the input option value, which is typically a string but can be of any other primitive type
424-
* @return mixed the replaced and quoted value, if $value contained a character that required quoting
425-
*/
426-
protected function quoteOptionValue($value)
427-
{
428-
if ($this->isValueRequiresQuoting($value)) {
429-
return sprintf('"%s"', str_replace('"', '\"', $value));
430-
}
431-
432-
return $value;
433-
}
434-
435-
/**
436-
* Validate whether a command option requires quoting or not, depending on its content.
437-
*/
438-
protected function isValueRequiresQuoting($value): bool
439-
{
440-
return 0 < preg_match('/[\s \\\\ \' " & | < > = ! @]/x', (string) $value);
441-
}
442-
443421
/**
444422
* @internal
445423
* @return positive-int

0 commit comments

Comments
 (0)