We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97ab95c commit 8b2c246Copy full SHA for 8b2c246
src/Report/PHP.php
@@ -21,14 +21,8 @@ final class PHP
21
{
22
public function process(CodeCoverage $coverage, ?string $target = null): string
23
24
- $buffer = sprintf(
25
- "<?php
26
-return \unserialize(<<<'END_OF_COVERAGE_SERIALIZATION'%s%s%sEND_OF_COVERAGE_SERIALIZATION%s);",
27
- PHP_EOL,
28
- serialize($coverage),
29
30
- PHP_EOL
31
- );
+ $buffer = "<?php
+return \unserialize(<<<'END_OF_COVERAGE_SERIALIZATION" . PHP_EOL . serialize($coverage) . PHP_EOL. 'END_OF_COVERAGE_SERIALIZATION' . PHP_EOL . ");";
32
33
if ($target !== null) {
34
Filesystem::createDirectory(dirname($target));
0 commit comments