@@ -21,7 +21,7 @@ |
||
| 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 | /** |
@@ -88,7 +88,7 @@ |
||
| 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 | } |
@@ -88,7 +88,7 @@ |
||
| 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 | } |
@@ -10,8 +10,8 @@ |
||
| 10 | 10 | class ScSignTest extends TestCase |
| 11 | 11 | { |
| 12 | 12 | /** |
| 13 | - * @expectedException Isign\Exception\QueryValidator |
|
| 14 | - */ |
|
| 13 | + * @expectedException Isign\Exception\QueryValidator |
|
| 14 | + */ |
|
| 15 | 15 | public function testRequiredParams() |
| 16 | 16 | { |
| 17 | 17 | $this->client->get(new ScPrepare( |
@@ -161,10 +161,10 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | if (!isset($response[$field])) { |
| 35 | 35 | return; |
| 36 | 36 | } |
| 37 | - $method = 'set' . $this->toMethodName($field); |
|
| 37 | + $method = 'set'.$this->toMethodName($field); |
|
| 38 | 38 | $result->$method($response[$field]); |
| 39 | 39 | } |
| 40 | 40 | |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | public function __construct($message, ConstraintViolationList $violations) |
| 20 | 20 | { |
| 21 | - parent::__construct($message . ': ' . (string)$violations); |
|
| 21 | + parent::__construct($message.': '.(string) $violations); |
|
| 22 | 22 | |
| 23 | 23 | $this->violations = $violations; |
| 24 | 24 | } |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | \Exception $previousException = null, |
| 23 | 23 | $responseData = null |
| 24 | 24 | ) { |
| 25 | - $message .= ' Response: ' . var_export($responseData, true); |
|
| 25 | + $message .= ' Response: '.var_export($responseData, true); |
|
| 26 | 26 | parent::__construct($message, $code, $previousException); |
| 27 | 27 | $this->responseData = $responseData; |
| 28 | 28 | } |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | { |
| 21 | 21 | $this->query = new Archive( |
| 22 | 22 | self::TYPE, |
| 23 | - __DIR__ . '/../data/document.pdf', |
|
| 23 | + __DIR__.'/../data/document.pdf', |
|
| 24 | 24 | [ |
| 25 | 25 | ['id' => 'signature_0'], |
| 26 | 26 | ['id' => 'signature_1'] |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | |
| 15 | 15 | $object = new InvalidData($message, $code, $previous, $data); |
| 16 | 16 | |
| 17 | - $message .= ' Response: ' . var_export($data, true); |
|
| 17 | + $message .= ' Response: '.var_export($data, true); |
|
| 18 | 18 | $this->assertEquals($data, $object->getResponseData()); |
| 19 | 19 | $this->assertEquals($message, $object->getMessage()); |
| 20 | 20 | $this->assertEquals($code, $object->getCode()); |