8000 Fix cs · api-platform/core@82a1649 · GitHub
[go: up one dir, main page]

Skip to content

Commit 82a1649

Browse files
committed
Fix cs
1 parent 626d72a commit 82a1649

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Bridge/Symfony/Bundle/Test/Client.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ final class Client implements HttpClientInterface
3333
{
3434
public const OPTIONS_DEFAULT = [
3535
'auth_basic' => null, // array|string - an array containing the username as first value, and optionally the
36-
// password as the second one; or string like username:password - enabling HTTP Basic
37-
// authentication (RFC 7617)
36+
// password as the second one; or string like username:password - enabling HTTP Basic
37+
// authentication (RFC 7617)
3838
'auth_bearer' => null, // string - a token enabling HTTP Bearer authorization (RFC 6750)
3939
'query' => [], // string[] - associative array of query string values to merge with the request's URL
4040
'headers' => ['accept' => ['application/ld+json']], // iterable|string[]|string[][] - headers names provided as keys or as part of values
@@ -78,7 +78,7 @@ public function request(string $method, string $url, array $options = []): Respo
7878
}
7979

8080
if ($basic) {
81-
$credentials = is_array($basic) ? $basic : explode(':', $basic, 2);
81+
$credentials = \is_array($basic) ? $basic : explode(':', $basic, 2);
8282
$server['PHP_AUTH_USER'] = $credentials[0];
8383
$server['PHP_AUTH_PW'] = $credentials[1] ?? '';
8484
}

src/Bridge/Symfony/Bundle/Test/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
namespace ApiPlatform\Core\Bridge\Symfony\Bundle\Test;
1515

1616
use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\Exception\ClientException;
17-
use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\Exception\ServerException;
1817
use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\Exception\RedirectionException;
18+
use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\Exception\ServerException;
1919
use Symfony\Component\BrowserKit\Response as BrowserKitResponse;
2020
use Symfony\Component\HttpClient\Exception\JsonException;
2121
use Symfony\Component\HttpFoundation\Response as HttpFoundationResponse;

0 commit comments

Comments
 (0)
0