Skip to content

Commit 69faed3

Browse files
committed
php cs fix
1 parent 1df831b commit 69faed3

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/Clients/Traits/DocumentClientTrait.php

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace Sysix\LexOffice\Clients\Traits;
66

77
use Psr\Http\Message\ResponseInterface;
8-
use stdClass;
98
use Sysix\LexOffice\Clients\File;
109
use Sysix\LexOffice\Utils;
1110

src/PaginationClient.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace Sysix\LexOffice;
66

77
use Psr\Http\Message\ResponseInterface;
8-
use stdClass;
98

109
abstract class PaginationClient extends BaseClient
1110
{
@@ -58,7 +57,7 @@ public function getAll(): ResponseInterface
5857
$result === null || !is_object($result) ||
5958
!property_exists($result, 'totalPages') || $result->totalPages == 1 ||
6059
!property_exists($result, 'content')
61-
) {
60+
) {
6261
return $response;
6362
}
6463

@@ -73,8 +72,8 @@ public function getAll(): ResponseInterface
7372
$resultPage = Utils::getJsonFromResponse($responsePage);
7473

7574
if (
76-
$resultPage === null ||
77-
!is_object($resultPage) ||
75+
$resultPage === null ||
76+
!is_object($resultPage) ||
7877
!property_exists($resultPage, 'content') ||
7978
!is_array($resultPage->content) ||
8079
!is_array($result->content)

tests/UtilsTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function testGetJsonFromResponseWithValidHeader(): void
3636
], (string) json_encode([
3737
'test' => true
3838
]));
39-
39+
4040
/** @var object $json */
4141
$json = Utils::getJsonFromResponse($response);
4242

@@ -63,7 +63,7 @@ public function testGetJsonFromResponseWithValidCharsetHeader(): void
6363

6464
public function testJsonDecodeValid(): void
6565
{
66-
66+
6767
/** @var object $json */
6868
$json = Utils::jsonDecode('{"content":"test","object":{"content":"test2"}}');
6969

0 commit comments

Comments
 (0)