Skip to content

Commit 39adf05

Browse files
committed
cs-fix
1 parent 0c87efe commit 39adf05

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

context-generator

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ $httpMessageFactory = new HttpFactory();
6363
$httpClientAdapter = HttpClientFactory::create(
6464
$httpClient,
6565
$httpMessageFactory,
66-
$httpMessageFactory,
6766
);
6867

6968
$application->add(

src/Lib/GithubClient/GithubClient.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ public function getContents(string $owner, string $repo, string $path = '', stri
3232

3333
$response = $this->sendRequest('GET', $url);
3434

35-
// Check if we got a single file or a directory
35+
/**
36+
* Check if we got a single file or a directory
37+
*/
3638
if (isset($response['type']) && $response['type'] === 'file') {
3739
return [$response];
3840
}

src/Lib/GithubClient/GithubClientInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ interface GithubClientInterface
1313
* @param string $repo Repository name
1414
* @param string $path Path within the repository
1515
* @param string $branch Repository branch or tag
16-
* @return array<string, mixed> Repository contents
1716
*/
1817
public function getContents(string $owner, string $repo, string $path = '', string $branch = 'main'): array;
1918

src/Lib/HttpClient/HttpClientFactory.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use Psr\Http\Client\ClientInterface;
88
use Psr\Http\Message\RequestFactoryInterface;
9-
use Psr\Http\Message\UriFactoryInterface;
109

1110
final readonly class HttpClientFactory
1211
{
@@ -16,11 +15,10 @@
1615
public static function create(
1716
?ClientInterface $httpClient = null,
1817
?RequestFactoryInterface $requestFactory = null,
19-
?UriFactoryInterface $uriFactory = null,
2018
): HttpClientInterface {
2119
// If all required dependencies are available, use the PSR-18 client
22-
if ($httpClient !== null && $requestFactory !== null && $uriFactory !== null) {
23-
return new Psr18Client($httpClient, $requestFactory, $uriFactory);
20+
if ($httpClient !== null && $requestFactory !== null) {
21+
return new Psr18Client($httpClient, $requestFactory);
2422
}
2523

2624
// Otherwise, return the null implementation

0 commit comments

Comments
 (0)