@@ -3,7 +3,6 @@ |
||
| 3 | 3 | |
| 4 | 4 | use Isign\QueryInterface; |
| 5 | 5 | use Isign\Validator\Constraints\Code; |
| 6 | -use Isign\Validator\Constraints\Phone; |
|
| 7 | 6 | use Symfony\Component\Validator\Constraints as Assert; |
| 8 | 7 | |
| 9 | 8 | /** |
@@ -1,8 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Isign\Sign; |
| 3 | 3 | |
| 4 | -use Isign\DocumentTypeProvider; |
|
| 5 | -use Isign\FileFieldsTrait; |
|
| 6 | 4 | use Isign\QueryInterface; |
| 7 | 5 | use Isign\Validator\Constraints\Code; |
| 8 | 6 | use Isign\Validator\Constraints\Phone; |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | |
| 84 | 84 | $this->buildViolation('myMessage') |
| 85 | 85 | ->setParameter('{{ value }}', '"'.$phone.'"') |
| 86 | - ->setCode(defined('Isign\Validator\Constraints\Phone::REGEX_FAILED_ERROR')?Phone::REGEX_FAILED_ERROR:null) |
|
| 86 | + ->setCode(defined('Isign\Validator\Constraints\Phone::REGEX_FAILED_ERROR') ?Phone::REGEX_FAILED_ERROR : null) |
|
| 87 | 87 | ->assertRaised(); |
| 88 | 88 | } |
| 89 | 89 | |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | |
| 83 | 83 | $this->buildViolation('myMessage') |
| 84 | 84 | ->setParameter('{{ value }}', '"'.$code.'"') |
| 85 | - ->setCode(defined('Isign\Validator\Constraints\Code::REGEX_FAILED_ERROR')?Code::REGEX_FAILED_ERROR:null) |
|
| 85 | + ->setCode(defined('Isign\Validator\Constraints\Code::REGEX_FAILED_ERROR') ?Code::REGEX_FAILED_ERROR : null) |
|
| 86 | 86 | ->assertRaised(); |
| 87 | 87 | } |
| 88 | 88 | |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | 77 | * Validation constraints for fields |
| 78 | - * @return array |
|
| 78 | + * @return Assert\Collection |
|
| 79 | 79 | */ |
| 80 | 80 | public function getValidationConstraints() |
| 81 | 81 | { |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | $this->query = new Timestamp( |
| 21 | 21 | self::TYPE, |
| 22 | - __DIR__ . '/../data/signed.pdf' |
|
| 22 | + __DIR__.'/../data/signed.pdf' |
|
| 23 | 23 | ); |
| 24 | 24 | } |
| 25 | 25 | |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | /** @var TimestampResult $result */ |
| 33 | 33 | $result = $this->client->get(new Timestamp( |
| 34 | 34 | 'adoc', |
| 35 | - __DIR__ . '/../data/signed.adoc' |
|
| 35 | + __DIR__.'/../data/signed.adoc' |
|
| 36 | 36 | )); |
| 37 | 37 | |
| 38 | 38 | $this->assertSame(ResultInterface::STATUS_OK, $result->getStatus()); |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | 'reason' => 'Elektroninis spaudas', |
| 30 | 30 | 'location' => 'Vilnius', |
| 31 | 31 | 'files' => [ |
| 32 | - __DIR__ . '/../data/document.pdf', |
|
| 32 | + __DIR__ . '/../data/document.pdf', |
|
| 33 | 33 | ] |
| 34 | 34 | ]; |
| 35 | 35 | } |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | 'reason' => 'Elektroninis spaudas', |
| 30 | 30 | 'location' => 'Vilnius', |
| 31 | 31 | 'files' => [ |
| 32 | - __DIR__ . '/../data/document.pdf', |
|
| 32 | + __DIR__.'/../data/document.pdf', |
|
| 33 | 33 | ] |
| 34 | 34 | ]; |
| 35 | 35 | } |