@@ -48,8 +48,7 @@ |
||
| 48 | 48 | return [ |
| 49 | 49 | 'type' => $this->type, |
| 50 | 50 | 'file' => $this->pathIsToken ? |
| 51 | - [ 'token' => $this->path ] : |
|
| 52 | - $this->getFileFields($this->path), |
|
| 51 | + ['token' => $this->path] : $this->getFileFields($this->path), |
|
| 53 | 52 | ]; |
| 54 | 53 | } |
| 55 | 54 | |
@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | |
| 5 | 5 | abstract class SigningPurposeProvider |
| 6 | 6 | { |
| 7 | - const SIGNING_PURPOSE_SIGNATURE = 'signature'; |
|
| 7 | + const SIGNING_PURPOSE_SIGNATURE = 'signature'; |
|
| 8 | 8 | const SIGNING_PURPOSE_CONFIRMATION = 'confirmation'; |
| 9 | 9 | const SIGNING_PURPOSE_VISA = 'visa'; |
| 10 | 10 | const SIGNING_PURPOSE_CONCILIATION = 'conciliation'; |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | final public static function getAllSigningPurposes() |
| 18 | 18 | { |
| 19 | 19 | return [ |
| 20 | - self::SIGNING_PURPOSE_SIGNATURE , |
|
| 20 | + self::SIGNING_PURPOSE_SIGNATURE, |
|
| 21 | 21 | self::SIGNING_PURPOSE_CONFIRMATION, |
| 22 | 22 | self::SIGNING_PURPOSE_VISA, |
| 23 | 23 | self::SIGNING_PURPOSE_CONCILIATION, |
@@ -198,19 +198,19 @@ |
||
| 198 | 198 | $signingToken = 'MyToken123'; |
| 199 | 199 | $accessToken = 'MyAccessToken'; |
| 200 | 200 | $this->assertSame( |
| 201 | - 'https://gateway-sandbox.dokobit.com/open/'.$signingToken, |
|
| 201 | + 'https://gateway-sandbox.dokobit.com/open/' . $signingToken, |
|
| 202 | 202 | $client->getOpenUrl($signingToken) |
| 203 | 203 | ); |
| 204 | 204 | $this->assertSame( |
| 205 | - 'https://gateway-sandbox.dokobit.com/signing/'.$signingToken.'?access_token='.$accessToken, |
|
| 205 | + 'https://gateway-sandbox.dokobit.com/signing/' . $signingToken . '?access_token=' . $accessToken, |
|
| 206 | 206 | $client->getSigningUrl($signingToken, $accessToken) |
| 207 | 207 | ); |
| 208 | 208 | $this->assertSame( |
| 209 | - 'https://gateway-sandbox.dokobit.com/signing/batch/'.$signingToken, |
|
| 209 | + 'https://gateway-sandbox.dokobit.com/signing/batch/' . $signingToken, |
|
| 210 | 210 | $client->getBatchSigningUrl($signingToken) |
| 211 | 211 | ); |
| 212 | 212 | $this->assertSame( |
| 213 | - 'https://gateway-sandbox.dokobit.com/signing/sequence/'.$signingToken, |
|
| 213 | + 'https://gateway-sandbox.dokobit.com/signing/sequence/' . $signingToken, |
|
| 214 | 214 | $client->getSequenceSigningUrl($signingToken) |
| 215 | 215 | ); |
| 216 | 216 | } |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | { |
| 10 | 10 | public function testStatusOk() |
| 11 | 11 | { |
| 12 | - $file = __DIR__.'/../../data/signed.pdf'; |
|
| 12 | + $file = __DIR__ . '/../../data/signed.pdf'; |
|
| 13 | 13 | |
| 14 | 14 | $type = 'pdf'; |
| 15 | 15 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | |
| 39 | 39 | public function testGetAction() |
| 40 | 40 | { |
| 41 | - $this->assertSame('signing/'.self::TOKEN.'/prepare', $this->query->getAction()); |
|
| 41 | + $this->assertSame('signing/' . self::TOKEN . '/prepare', $this->query->getAction()); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | public function testGetMethod() |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | |
| 31 | 31 | public function testGetAction() |
| 32 | 32 | { |
| 33 | - $this->assertSame('signing/'.self::TOKEN.'/delete', $this->query->getAction()); |
|
| 33 | + $this->assertSame('signing/' . self::TOKEN . '/delete', $this->query->getAction()); |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | public function testGetMethod() |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | |
| 85 | 85 | public function testGetAction() |
| 86 | 86 | { |
| 87 | - $this->assertSame('signing/'.self::TOKEN.'/seal', $this->queryMinimal->getAction()); |
|
| 87 | + $this->assertSame('signing/' . self::TOKEN . '/seal', $this->queryMinimal->getAction()); |
|
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | public function testGetMethod() |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | |
| 49 | 49 | public function testGetAction() |
| 50 | 50 | { |
| 51 | - $this->assertSame('signing/'.self::TOKEN.'/archive', $this->query->getAction()); |
|
| 51 | + $this->assertSame('signing/' . self::TOKEN . '/archive', $this->query->getAction()); |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | public function testGetMethod() |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | |
| 43 | 43 | public function testGetAction() |
| 44 | 44 | { |
| 45 | - $this->assertSame('signing/'.self::TOKEN.'/removesigner', $this->query->getAction()); |
|
| 45 | + $this->assertSame('signing/' . self::TOKEN . '/removesigner', $this->query->getAction()); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | public function testGetMethod() |