@@ -3,7 +3,6 @@ |
||
| 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 | { |
@@ -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()); |
@@ -19,6 +19,6 @@ |
||
| 19 | 19 | $object = new QueryValidator($message, $violations); |
| 20 | 20 | |
| 21 | 21 | $this->assertEquals($violations, $object->getViolations()); |
| 22 | - $this->assertEquals($message . ': list of violations', $object->getMessage()); |
|
| 22 | + $this->assertEquals($message.': list of violations', $object->getMessage()); |
|
| 23 | 23 | } |
| 24 | 24 | } |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | */ |
| 15 | 15 | protected function assertSetterExists($property, $object) |
| 16 | 16 | { |
| 17 | - $setter = 'set' . $this->toMethodName($property); |
|
| 17 | + $setter = 'set'.$this->toMethodName($property); |
|
| 18 | 18 | $this->assertTrue( |
| 19 | 19 | method_exists($object, $setter), |
| 20 | 20 | sprintf('Method is %s missing', $setter) |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | */ |
| 31 | 31 | protected function assertGetterExists($property, $object) |
| 32 | 32 | { |
| 33 | - $getter = 'get' . $this->toMethodName($property); |
|
| 33 | + $getter = 'get'.$this->toMethodName($property); |
|
| 34 | 34 | $this->assertTrue( |
| 35 | 35 | method_exists($object, $getter), |
| 36 | 36 | sprintf('Method is %s missing', $getter) |