Skip to content

Commit bcf91e1

Browse files
committed
cs-fix
1 parent ad617b9 commit bcf91e1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/Integration/AbstractIntegrationTestCase.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ protected function httpRequest(string $method, string $resource, array $headers
2626
{
2727
$curlHeaders = [];
2828
foreach ($headers as $key => $value) {
29-
$curlHeaders[] = sprintf('%s: %s', $key, implode(', ', (array) $value));
29+
$curlHeaders[] = \sprintf('%s: %s', $key, implode(', ', (array) $value));
3030
}
3131

3232
if (null === $this->curl) {
3333
$this->curl = $this->initializeCurl();
3434
}
3535

36-
curl_setopt($this->curl, CURLOPT_URL, sprintf($this->getEndpoint().'%s', $resource));
36+
curl_setopt($this->curl, CURLOPT_URL, \sprintf($this->getEndpoint().'%s', $resource));
3737
curl_setopt($this->curl, CURLOPT_HTTPHEADER, $curlHeaders);
3838
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, $method);
3939
curl_setopt($this->curl, CURLOPT_POSTFIELDS, $body);
@@ -126,6 +126,6 @@ private function getEndpoint(): string
126126
return $integrationEndpoint;
127127
}
128128

129-
return sprintf(self::DEFAULT_INTEGRATION_ENDPOINT, PhpServerExtension::PHP_SERVER_PORT);
129+
return \sprintf(self::DEFAULT_INTEGRATION_ENDPOINT, PhpServerExtension::PHP_SERVER_PORT);
130130
}
131131
}

tests/PhpServerExtension.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class PhpServerExtension implements ExecutionStartedSubscriber, Extension
2121
public function __destruct()
2222
{
2323
if (null !== $this->serverPid) {
24-
exec(sprintf('kill %d', $this->serverPid));
24+
exec(\sprintf('kill %d', $this->serverPid));
2525
}
2626
}
2727

@@ -60,7 +60,7 @@ private function initialize(): void
6060

6161
private function startServer(): void
6262
{
63-
$command = sprintf(
63+
$command = \sprintf(
6464
'APP_ENV=phpunit php -S localhost:%d -t %s %s',
6565
self::PHP_SERVER_PORT,
6666
realpath(__DIR__.'/../public'),
@@ -69,7 +69,7 @@ private function startServer(): void
6969

7070
echo $command.PHP_EOL.PHP_EOL;
7171

72-
$this->serverPid = (int) exec(sprintf('%s > /dev/null 2>&1 & echo $!', $command));
72+
$this->serverPid = (int) exec(\sprintf('%s > /dev/null 2>&1 & echo $!', $command));
7373

7474
while (true) {
7575
if (\is_resource(@fsockopen('localhost', self::PHP_SERVER_PORT))) {

0 commit comments

Comments
 (0)