@@ -26,8 +26,6 @@ class Client
2626
2727 private array $ config ;
2828
29- private int $ retryCount = 0 ;
30-
3129 public function __construct (array $ config = [])
3230 {
3331 $ this ->config = array_merge ([
@@ -61,7 +59,7 @@ private function createClient(): GuzzleClient
6159 ));
6260
6361 return new GuzzleClient ([
64- 'base_uri ' => rtrim ($ this ->config ['base_url ' ], '/ ' ). '/ ' ,
62+ 'base_uri ' => rtrim ($ this ->config ['base_url ' ], '/ ' ) . '/ ' ,
6563 'timeout ' => $ this ->config ['timeout ' ],
6664 'connect_timeout ' => $ this ->config ['connect_timeout ' ],
6765 'verify ' => $ this ->config ['verify_ssl ' ],
@@ -278,7 +276,7 @@ private function parseEventStreamLine(string $line): ?array
278276 {
279277 $ line = trim ($ line );
280278
281- if (empty ($ line ) || $ line === '' ) {
279+ if (empty ($ line )) {
282280 return null ;
283281 }
284282
@@ -325,7 +323,7 @@ private function parseResponse(ResponseInterface $response): array
325323
326324 if (json_last_error () !== JSON_ERROR_NONE ) {
327325 throw new LangGraphException (
328- 'Failed to decode JSON response: ' . json_last_error_msg (),
326+ 'Failed to decode JSON response: ' . json_last_error_msg (),
329327 $ response ->getStatusCode (),
330328 null ,
331329 $ response
0 commit comments