Skip to content

Commit fb6d7bd

Browse files
committed
update code styles global
1 parent ac16810 commit fb6d7bd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+222
-142
lines changed

.github/workflows/codestyle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ jobs:
1818
1919
- uses: docker://oskarstark/php-cs-fixer-ga
2020
with:
21-
args: --diff --dry-run
21+
args: --diff --dry-run

src/Api.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace Sysix\LexOffice;
46

@@ -34,12 +36,10 @@ class Api
3436

3537
public RequestInterface $request;
3638

37-
3839
public function __construct(
39-
#[SensitiveParameter] protected string $apiKey,
40+
#[SensitiveParameter] protected string $apiKey,
4041
protected ClientInterface $client
41-
)
42-
{
42+
) {
4343
}
4444

4545
/**
@@ -60,8 +60,7 @@ public function setRequest(RequestInterface $request): self
6060
->withHeader('Authorization', 'Bearer ' . $this->apiKey)
6161
->withHeader('Accept', 'application/json');
6262

63-
64-
if (!$request->hasHeader('Content-Type') && in_array($request->getMethod(), ['POST', 'PUT'])) {
63+
if (!$request->hasHeader('Content-Type') && in_array($request->getMethod(), ['POST', 'PUT'], true)) {
6564
$request = $request->withHeader('Content-Type', 'application/json');
6665
}
6766

src/BaseClient.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
22

3+
declare(strict_types=1);
34

45
namespace Sysix\LexOffice;
56

@@ -11,8 +12,7 @@ abstract class BaseClient implements ClientInterface
1112

1213
public function __construct(
1314
protected Api $api
14-
)
15-
{
15+
) {
1616
}
1717

1818
/**

src/ClientInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace Sysix\LexOffice;
46

src/Clients/Contact.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace Sysix\LexOffice\Clients;
46

@@ -15,7 +17,6 @@ class Contact extends PaginationClient
1517

1618
protected string $resource = 'contacts';
1719

18-
1920
public ?int $number = null;
2021

2122
public ?bool $customer = null;
@@ -30,4 +31,4 @@ protected function buildQueryParams(array $params): string
3031

3132
return parent::buildQueryParams($params);
3233
}
33-
}
34+
}

src/Clients/Country.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace Sysix\LexOffice\Clients;
46

src/Clients/CreditNote.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace Sysix\LexOffice\Clients;
46

src/Clients/DownPaymentInvoice.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace Sysix\LexOffice\Clients;
46

src/Clients/Event.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
22

3+
declare(strict_types=1);
34

45
namespace Sysix\LexOffice\Clients;
56

src/Clients/File.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace Sysix\LexOffice\Clients;
46

0 commit comments

Comments
 (0)