mirror of
https://github.com/pestphp/pest.git
synced 2026-03-12 10:47:25 +01:00
refacto: uses non-static
This commit is contained in:
@ -25,7 +25,7 @@ final class ServiceMessage
|
|||||||
$paramsToString = '';
|
$paramsToString = '';
|
||||||
|
|
||||||
foreach ([...$this->parameters, 'flowId' => self::$flowId] as $key => $value) {
|
foreach ([...$this->parameters, 'flowId' => self::$flowId] as $key => $value) {
|
||||||
$value = self::escapeServiceMessage((string) $value);
|
$value = $this->escapeServiceMessage();
|
||||||
$paramsToString .= " $key='$value'";
|
$paramsToString .= " $key='$value'";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -127,7 +127,7 @@ final class ServiceMessage
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static function escapeServiceMessage(string $text): string
|
private function escapeServiceMessage(string $text): string
|
||||||
{
|
{
|
||||||
return str_replace(
|
return str_replace(
|
||||||
['|', "'", "\n", "\r", ']', '['],
|
['|', "'", "\n", "\r", ']', '['],
|
||||||
|
|||||||
Reference in New Issue
Block a user