Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit db44e5d

Browse files
committed
chore: cs-fixer styling applied
1 parent 366685e commit db44e5d

17 files changed

+74
-80
lines changed

config/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
return [
44
'auth_types' => [
5-
\Grixu\ApiClient\Enums\AuthType::OAUTH2()->value => \Grixu\ApiClient\Auth\OAuthToken::class
5+
\Grixu\ApiClient\Enums\AuthType::OAUTH2()->value => \Grixu\ApiClient\Auth\OAuthToken::class,
66
],
77

88
'logging' => env('API_ERROR_LOGGING', false),

src/Auth/AuthData.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
class AuthData
66
{
77
public function __construct(protected string $key, protected string $secret)
8-
{}
8+
{
9+
}
910

1011
public function getKey(): string
1112
{

src/Builders/CommaSeparatedValueUrlBuilder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ class CommaSeparatedValueUrlBuilder extends AbstractMultiParamUrlBuilder
1111

1212
public function get(): string
1313
{
14-
if (empty($this->param) || empty($this->values))
14+
if (empty($this->param) || empty($this->values)) {
1515
return '';
16+
}
1617

1718
return $this->param.'='.$this->values->join(',');
1819
}

src/Builders/PageUrlBuilder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ class PageUrlBuilder implements UrlBuilder
1111

1212
public function get(): string
1313
{
14-
if (empty($this->param) || empty($this->value))
14+
if (empty($this->param) || empty($this->value)) {
1515
return '';
16+
}
1617

1718
return $this->param.'='.$this->value;
1819
}

src/Config/BaseConfig.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class BaseConfig implements Config
1818

1919
public static function make(array $config): static
2020
{
21+
/** @phpstan-ignore-next-line */
2122
return new static(...$config);
2223
}
2324

src/Data/DataFetcher.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ class DataFetcher
1515
protected FetchedData $fetchedData;
1616

1717
public function __construct(protected Uri $uri, protected string $responseClass, protected ?TokenAuth $token = null)
18-
{}
18+
{
19+
}
1920

2021
public function get(): FetchedData
2122
{
@@ -41,7 +42,7 @@ protected function makeRequest(): Response
4142
{
4243
$request = Http::withHeaders(
4344
[
44-
'Accept' => 'application/json'
45+
'Accept' => 'application/json',
4546
]
4647
)->timeout(config('api-client.timeout'));
4748

src/UrlCompose.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function get(): Uri
3030
$this->filterBuilder->get(),
3131
$this->sortBuilder->get(),
3232
$this->includeBuilder->get(),
33-
$this->pageBuilder->get()
33+
$this->pageBuilder->get(),
3434
]
3535
)
3636
->filter()

tests/Builders/ArrayBasedUrlBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ protected function setUp(): void
1717
$this->obj = new ArrayBasedUrlBuilder(
1818
[
1919
'first',
20-
'second'
20+
'second',
2121
]
2222
);
2323
}

tests/Builders/CommaSeparatedValueUrlBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ protected function setUp(): void
1818
[
1919
'some',
2020
'relationship',
21-
'more'
21+
'more',
2222
]
2323
);
2424
}

tests/Config/BaseConfigTest.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@ class BaseConfigTest extends TestCase
1515
/** @test */
1616
public function it_expandable()
1717
{
18-
$obj = new class (
19-
'http://rywal.com.pl',
20-
'oAuth2',
21-
'http://rywal.com.pl',
22-
['key', 'secret'],
23-
) extends BaseConfig {
18+
$obj = new class ('http://rywal.com.pl', 'oAuth2', 'http://rywal.com.pl', ['key', 'secret'], ) extends BaseConfig {
2419
protected string $newVal;
2520

2621
public function __construct(

0 commit comments

Comments
 (0)