File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 55namespace Sysix \LexOffice \Clients \Traits ;
66
77use Psr \Http \Message \ResponseInterface ;
8- use stdClass ;
98use Sysix \LexOffice \Clients \File ;
109use Sysix \LexOffice \Utils ;
1110
Original file line number Diff line number Diff line change 55namespace Sysix \LexOffice ;
66
77use Psr \Http \Message \ResponseInterface ;
8- use stdClass ;
98
109abstract 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 )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments