1- <?php declare (strict_types=1 );
1+ <?php
2+
3+ declare (strict_types=1 );
24
35namespace FeedIo \Adapter \Guzzle ;
46
1517 */
1618class Client implements ClientInterface
1719{
18-
1920 /**
2021 * Default user agent provided with the package
2122 */
22- const DEFAULT_USER_AGENT = 'Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 ' ;
23+ public const DEFAULT_USER_AGENT = 'Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 ' ;
2324
2425 public function __construct (
2526 protected GuzzleClientInterface $ guzzleClient ,
@@ -31,7 +32,7 @@ public function __construct(
3132 * @param string $userAgent The new user-agent
3233 * @return Client
3334 */
34- public function setUserAgent (string $ userAgent ) : Client
35+ public function setUserAgent (string $ userAgent ): Client
3536 {
3637 $ this ->userAgent = $ userAgent ;
3738
@@ -44,7 +45,7 @@ public function setUserAgent(string $userAgent) : Client
4445 * @return ResponseInterface
4546 * @throws \GuzzleHttp\Exception\GuzzleException
4647 */
47- public function getResponse (string $ url , DateTime $ modifiedSince = null ) : ResponseInterface
48+ public function getResponse (string $ url , DateTime $ modifiedSince = null ): ResponseInterface
4849 {
4950 if ($ modifiedSince ) {
5051 $ headResponse = $ this ->request ('head ' , $ url , $ modifiedSince );
@@ -86,7 +87,7 @@ protected function request(string $method, string $url, DateTime $modifiedSince
8687 * @param DateTime|null $modifiedSince
8788 * @return array
8889 */
89- protected function getOptions (DateTime $ modifiedSince = null ) : array
90+ protected function getOptions (DateTime $ modifiedSince = null ): array
9091 {
9192 $ headers = [
9293 'Accept-Encoding ' => 'gzip, deflate ' ,
0 commit comments