This repository was archived by the owner on Jul 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed
Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ public function __construct(GuzzleClient $httpClient)
3838 public function setApiToken ($ apiToken )
3939 {
4040 $ this ->apiToken = $ apiToken ;
41+
4142 return $ this ;
4243 }
4344
@@ -55,7 +56,7 @@ public function html(array $json)
5556 'headers ' => $ this ->formatHeaders ([
5657 'Content-Type ' => 'application/json ' ,
5758 ]),
58- 'json ' => $ json
59+ 'json ' => $ json,
5960 ]
6061 );
6162
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ public function __construct(GuzzleClient $httpClient)
4040 public function setClientId ($ clientId )
4141 {
4242 $ this ->clientId = $ clientId ;
43+
4344 return $ this ;
4445 }
4546
@@ -51,6 +52,7 @@ public function setClientId($clientId)
5152 public function setClientSecret ($ clientSecret )
5253 {
5354 $ this ->clientSecret = $ clientSecret ;
55+
5456 return $ this ;
5557 }
5658
@@ -66,7 +68,7 @@ public function generateToken()
6668 'grant_type ' => 'password ' ,
6769 'client_id ' => $ this ->clientId ,
6870 'client_secret ' => $ this ->clientSecret ,
69- ]
71+ ],
7072 ]);
7173
7274 return new AuthorizationToken (json_decode ($ response ->getBody ()->getContents (), true ));
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public function testGenerateToken()
2929 'userName ' => 'Tn3KV7JYavWn ' ,
3030 'as:region ' => 'eu-west-1 ' ,
3131 '.issued ' => 'Sat, 17 Aug 2019 00:08:50 GMT ' ,
32- '.expires ' => 'Sat, 17 Aug 2019 00:13:50 GMT '
32+ '.expires ' => 'Sat, 17 Aug 2019 00:13:50 GMT ' ,
3333 ];
3434
3535 $ mock = new MockHandler ([new Response (200 , [], json_encode ($ response ))]);
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ public function testPdf()
4040 'filename ' => 'file.pdf ' ,
4141 'page_size ' => 'full ' ,
4242 'page_orientation ' => 'portrait ' ,
43- 'content_type ' => 'application/pdf '
43+ 'content_type ' => 'application/pdf ' ,
4444 ];
4545
4646 $ mock = new MockHandler ([new Response (200 , [], json_encode ($ response ))]);
You can’t perform that action at this time.
0 commit comments