From 3afdd3fa4c71ce7bb356640a2564e4e52b759e6d Mon Sep 17 00:00:00 2001 From: Ilia Lazarev Date: Mon, 13 Dec 2021 08:27:39 +0300 Subject: [PATCH 1/5] update styleci fixers --- .styleci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.styleci.yml b/.styleci.yml index 64b948b..a4344a9 100644 --- a/.styleci.yml +++ b/.styleci.yml @@ -4,3 +4,4 @@ disabled: - concat_without_spaces - phpdoc_no_package - logical_not_operators_with_successor_space + - laravel_phpdoc_alignment From 8b329feb1b25669e7c07ec58043457aac2af5e9d Mon Sep 17 00:00:00 2001 From: Ilia Lazarev Date: Mon, 13 Dec 2021 20:10:53 +0300 Subject: [PATCH 2/5] update styleci fixers --- src/Client/YouTrackClient.php | 1 + src/HttpClient/GuzzleHttpClient.php | 2 +- tests/Traits/HasFakeHttpResponses.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Client/YouTrackClient.php b/src/Client/YouTrackClient.php index a4591f2..509b96f 100644 --- a/src/Client/YouTrackClient.php +++ b/src/Client/YouTrackClient.php @@ -47,6 +47,7 @@ class YouTrackClient implements * Endpoint path prefix. * * @todo test it + * * @var string */ private $endpointPathPrefix; diff --git a/src/HttpClient/GuzzleHttpClient.php b/src/HttpClient/GuzzleHttpClient.php index 023cd28..5728012 100644 --- a/src/HttpClient/GuzzleHttpClient.php +++ b/src/HttpClient/GuzzleHttpClient.php @@ -56,7 +56,7 @@ public function request(string $method, string $uri, array $options = []): Respo { try { return $this->httpClient->request($method, $uri, $this->buildOptions($options)); - } catch (BadResponseException | RequestException $e) { + } catch (BadResponseException|RequestException $e) { $rawResponse = $e->getResponse(); if (!$rawResponse instanceof ResponseInterface) { throw new HttpClientException($e->getMessage(), $e->getCode(), $e); diff --git a/tests/Traits/HasFakeHttpResponses.php b/tests/Traits/HasFakeHttpResponses.php index 4a4dbd7..123a65b 100644 --- a/tests/Traits/HasFakeHttpResponses.php +++ b/tests/Traits/HasFakeHttpResponses.php @@ -169,6 +169,7 @@ private function createFakeResponseDirectory(string $name): void * Unset all provided headers from the HTTP Response. * * @todo Use Middleware http://docs.guzzlephp.org/en/latest/handlers-and-middleware.html#middleware + * * @param \Psr\Http\Message\ResponseInterface $response * @param array $headers * @return \Psr\Http\Message\ResponseInterface From 4d8a0309ee887ac4e2bb9f160e726ae6694cc00e Mon Sep 17 00:00:00 2001 From: Ilia Lazarev Date: Mon, 13 Dec 2021 20:29:01 +0300 Subject: [PATCH 3/5] update styleci fixers --- .styleci.yml | 2 +- src/HttpClient/GuzzleHttpClient.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.styleci.yml b/.styleci.yml index a4344a9..a8a1df3 100644 --- a/.styleci.yml +++ b/.styleci.yml @@ -1,4 +1,4 @@ -preset: laravel +preset: psr12 disabled: - concat_without_spaces diff --git a/src/HttpClient/GuzzleHttpClient.php b/src/HttpClient/GuzzleHttpClient.php index 5728012..023cd28 100644 --- a/src/HttpClient/GuzzleHttpClient.php +++ b/src/HttpClient/GuzzleHttpClient.php @@ -56,7 +56,7 @@ public function request(string $method, string $uri, array $options = []): Respo { try { return $this->httpClient->request($method, $uri, $this->buildOptions($options)); - } catch (BadResponseException|RequestException $e) { + } catch (BadResponseException | RequestException $e) { $rawResponse = $e->getResponse(); if (!$rawResponse instanceof ResponseInterface) { throw new HttpClientException($e->getMessage(), $e->getCode(), $e); From b06b02939c881a9381579d61e56e62888be2fb23 Mon Sep 17 00:00:00 2001 From: Ilia Lazarev Date: Mon, 13 Dec 2021 20:35:29 +0300 Subject: [PATCH 4/5] remove disabled --- .styleci.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.styleci.yml b/.styleci.yml index a8a1df3..ac8d606 100644 --- a/.styleci.yml +++ b/.styleci.yml @@ -1,7 +1 @@ preset: psr12 - -disabled: - - concat_without_spaces - - phpdoc_no_package - - logical_not_operators_with_successor_space - - laravel_phpdoc_alignment From 2500c4420aa5faaf62a6841d8e62ce83ec456ffc Mon Sep 17 00:00:00 2001 From: Ilia Lazarev Date: Mon, 13 Dec 2021 20:36:37 +0300 Subject: [PATCH 5/5] update styleci fixers --- tests/Traits/HasFakeHttpResponses.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Traits/HasFakeHttpResponses.php b/tests/Traits/HasFakeHttpResponses.php index 123a65b..08c0743 100644 --- a/tests/Traits/HasFakeHttpResponses.php +++ b/tests/Traits/HasFakeHttpResponses.php @@ -193,7 +193,8 @@ private function buildFakeRequestDirectoryPath(string $name): string { return sprintf( '%s/../stubs/server-responses/2017.2/%s', - __DIR__, ltrim($name, '/') + __DIR__, + ltrim($name, '/') ); } @@ -208,7 +209,8 @@ private function buildFakeRequestFilePath(string $name, string $filename): strin { return sprintf( '%s/%s.json', - $this->buildFakeRequestDirectoryPath($name), $filename + $this->buildFakeRequestDirectoryPath($name), + $filename ); } }