Completed
Push — master ( 114870...d35a30 )
by Žilvinas
03:56
created
src/Client.php 2 patches
Doc Comments   -6 removed lines patch added patch discarded remove patch
@@ -42,12 +42,6 @@
 block discarded – undo
42 42
      *     'url' => 'https://api.isign.io',
43 43
      *     'sandboxUrl' => 'https://developers.isign.io',
44 44
      * ]
45
-     * @param LoggerInterface|callable|resource|null $logger Logger used to log
46
-     *     messages. Pass a LoggerInterface to use a PSR-3 logger. Pass a
47
-     *     callable to log messages to a function that accepts a string of
48
-     *     data. Pass a resource returned from ``fopen()`` to log to an open
49
-     *     resource. Pass null or leave empty to write log messages using
50
-     *     ``echo()``.
51 45
      * @return self
52 46
      */
53 47
     public static function create(array $options = [], $log = false)
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -161,10 +161,10 @@  discard block
 block discarded – undo
161 161
         }
162 162
 
163 163
         if ($token) {
164
-            $action .= '/' . $token;
164
+            $action .= '/'.$token;
165 165
         }
166 166
 
167
-        return $url . '/' . $action . '.json';
167
+        return $url.'/'.$action.'.json';
168 168
     }
169 169
 
170 170
     /**
@@ -211,16 +211,16 @@  discard block
 block discarded – undo
211 211
     private function prepareOptions(array $options)
212 212
     {
213 213
         if (isset($options['sandbox'])) {
214
-            $this->sandbox = (bool)$options['sandbox'];
214
+            $this->sandbox = (bool) $options['sandbox'];
215 215
         }
216 216
         if (isset($options['apiKey'])) {
217
-            $this->apiKey = (string)$options['apiKey'];
217
+            $this->apiKey = (string) $options['apiKey'];
218 218
         }
219 219
         if (isset($options['url'])) {
220
-            $this->url = (string)$options['url'];
220
+            $this->url = (string) $options['url'];
221 221
         }
222 222
         if (isset($options['sandboxUrl'])) {
223
-            $this->sandboxUrl = (string)$options['sandboxUrl'];
223
+            $this->sandboxUrl = (string) $options['sandboxUrl'];
224 224
         }
225 225
     }
226 226
 
Please login to merge, or discard this patch.
src/Login/MobileCertificate.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 
59 59
     /**
60 60
      * Validation constraints for fields
61
-     * @return array
61
+     * @return Assert\Collection
62 62
      */
63 63
     public function getValidationConstraints()
64 64
     {
Please login to merge, or discard this patch.
src/Login/Sc.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     private $certificate;
13 13
 
14 14
     /**
15
-     * @param $certificate string base64_encode(certificate)
15
+     * @param string $certificate string base64_encode(certificate)
16 16
      */
17 17
     public function __construct($certificate)
18 18
     {
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
     /**
43 43
      * Result object for this query result
44
-     * @return MobileResult
44
+     * @return ScResult
45 45
      */
46 46
     public function createResult()
47 47
     {
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
     /**
52 52
      * Validation constraints for fields
53
-     * @return array
53
+     * @return Assert\Collection
54 54
      */
55 55
     public function getValidationConstraints()
56 56
     {
Please login to merge, or discard this patch.
src/Login/ScVerify.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,6 +15,10 @@  discard block
 block discarded – undo
15 15
     /** @var string User signed value */
16 16
     private $signatureValue;
17 17
 
18
+    /**
19
+     * @param string $token
20
+     * @param string $signatureValue
21
+     */
18 22
     public function __construct($token, $signatureValue)
19 23
     {
20 24
         $this->token = $token;
@@ -53,7 +57,7 @@  discard block
 block discarded – undo
53 57
 
54 58
     /**
55 59
      * Validation constraints for fields
56
-     * @return array
60
+     * @return Assert\Collection
57 61
      */
58 62
     public function getValidationConstraints()
59 63
     {
Please login to merge, or discard this patch.
src/Sign/Sc.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
     private $signatureValue;
17 17
 
18 18
     /**
19
-     * @param $token string Session token received from /sc/prepare call
20
-     * @param $signatureValue string Signature value
19
+     * @param string $token string Session token received from /sc/prepare call
20
+     * @param string $signatureValue string Signature value
21 21
      */
22 22
     public function __construct($token, $signatureValue)
23 23
     {
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     /**
57 57
      * Result object for this query result
58
-     * @return MobileStatusResult
58
+     * @return ScResult
59 59
      */
60 60
     public function createResult()
61 61
     {
Please login to merge, or discard this patch.
src/Sign/ScPrepare.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@  discard block
 block discarded – undo
28 28
     private $document;
29 29
 
30 30
     /**
31
-     * @param $certificate string base64_encode(certificate)
32
-     * @param $type string document type
33
-     * @param $timestamp boolean add document timestamp
34
-     * @param $language string language LT|EN
31
+     * @param null|string $certificate string base64_encode(certificate)
32
+     * @param null|string $type string document type
33
+     * @param null|false $timestamp boolean add document timestamp
34
+     * @param null|string $language string language LT|EN
35 35
      * @param $document array document to be signed
36 36
      */
37 37
     public function __construct($certificate, $type, $timestamp, $language, array $document)
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
     /**
86 86
      * Validation constraints for fields
87
-     * @return array
87
+     * @return Assert\Collection
88 88
      */
89 89
     public function getValidationConstraints()
90 90
     {
Please login to merge, or discard this patch.
tests/Http/GuzzleClientAdapterTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 
4 4
 use GuzzleHttp\Exception\ClientException;
5 5
 use Isign\Http\GuzzleClientAdapter;
6
-use Psr\Log\LoggerAwareInterface;
7 6
 
8 7
 class GuzzleClientAdapterTest extends \PHPUnit_Framework_TestCase
9 8
 {
Please login to merge, or discard this patch.
src/Document/Check.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     /** @var string Possible values: pdf, adoc, mdoc */
22 22
     private $type;
23 23
 
24
-     /** @var string file path */
24
+        /** @var string file path */
25 25
     private $path;
26 26
 
27 27
     /**
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 
59 59
     /**
60 60
      * Validation constraints for fields
61
-     * @return array
61
+     * @return Assert\Collection
62 62
      */
63 63
     public function getValidationConstraints()
64 64
     {
Please login to merge, or discard this patch.
tests/Integration/MobileSignTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
             'reason' => 'Dokumento asirašymas',
89 89
             'location' => 'Vilnius',
90 90
             'files' => [
91
-               __DIR__ . '/../data/document.pdf',
91
+                __DIR__ . '/../data/document.pdf',
92 92
             ]
93 93
         ];
94 94
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
             'reason' => 'Dokumento asirašymas',
89 89
             'location' => 'Vilnius',
90 90
             'files' => [
91
-               __DIR__ . '/../data/document.pdf',
91
+               __DIR__.'/../data/document.pdf',
92 92
             ]
93 93
         ];
94 94
     }
Please login to merge, or discard this patch.