@@ -403,7 +403,7 @@ |
||
| 403 | 403 | // \GuzzleHttp\Exception\ClientException |
| 404 | 404 | // \GuzzleHttp\Exception\ServerException |
| 405 | 405 | |
| 406 | - $message = (string) $exception->getMessage(); |
|
| 406 | + $message = (string) $exception->getMessage(); |
|
| 407 | 407 | $code = (integer) $exception->getCode(); |
| 408 | 408 | |
| 409 | 409 | throw new RuntimeException($message, $code); |
@@ -86,10 +86,10 @@ discard block |
||
| 86 | 86 | $ret = null; |
| 87 | 87 | |
| 88 | 88 | StaticValidator::execute($templateName, 'TemplateName'); |
| 89 | - StaticValidator::execute($zoomFactor , 'ZoomFactor'); |
|
| 90 | - StaticValidator::execute($fromPage , 'Page'); |
|
| 91 | - StaticValidator::execute($toPage , 'Page'); |
|
| 92 | - StaticValidator::execute($imageFormat , 'ImageFormat'); |
|
| 89 | + StaticValidator::execute($zoomFactor, 'ZoomFactor'); |
|
| 90 | + StaticValidator::execute($fromPage, 'Page'); |
|
| 91 | + StaticValidator::execute($toPage, 'Page'); |
|
| 92 | + StaticValidator::execute($imageFormat, 'ImageFormat'); |
|
| 93 | 93 | |
| 94 | 94 | $query = [ |
| 95 | 95 | 'templateName' => $templateName, |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | |
| 135 | 135 | if (is_array($records) && count($records) > 0) { |
| 136 | 136 | $ret = $this->buildPropertyMapArray($records, $propertyMap); |
| 137 | - array_walk($ret, function (&$record) use ($filter) { |
|
| 137 | + array_walk($ret, function(&$record) use ($filter) { |
|
| 138 | 138 | $key = 'modified'; |
| 139 | 139 | if (isset($record[$key])) { |
| 140 | 140 | $filter->filter($record[$key]); |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | |
| 202 | 202 | if (is_array($records) && count($records) > 0) { |
| 203 | 203 | $ret = $this->buildPropertyMapArray($records, $propertyMap); |
| 204 | - array_walk($ret, function (&$record) use ($filter) { |
|
| 204 | + array_walk($ret, function(&$record) use ($filter) { |
|
| 205 | 205 | $key = 'valid_until'; |
| 206 | 206 | if (isset($record[$key])) { |
| 207 | 207 | $filter->filter($record[$key]); |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | |
| 330 | 330 | StaticValidator::execute($documentFilename, 'DocumentExtension'); |
| 331 | 331 | StaticValidator::execute($documentFilename, 'FileExists'); |
| 332 | - StaticValidator::execute($returnFormat , 'ReturnFormat'); |
|
| 332 | + StaticValidator::execute($returnFormat, 'ReturnFormat'); |
|
| 333 | 333 | |
| 334 | 334 | $query = [ |
| 335 | 335 | 'returnFormat' => $returnFormat, |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | { |
| 377 | 377 | $ret = null; |
| 378 | 378 | |
| 379 | - StaticValidator::execute($mergeData , 'TypeArray'); |
|
| 379 | + StaticValidator::execute($mergeData, 'TypeArray'); |
|
| 380 | 380 | StaticValidator::execute($returnFormat, 'ReturnFormat'); |
| 381 | 381 | |
| 382 | 382 | if (null !== $templateName) { |
@@ -458,7 +458,7 @@ discard block |
||
| 458 | 458 | $ret = null; |
| 459 | 459 | |
| 460 | 460 | StaticValidator::execute($findAndReplaceData, 'TypeArray'); |
| 461 | - StaticValidator::execute($returnFormat , 'ReturnFormat'); |
|
| 461 | + StaticValidator::execute($returnFormat, 'ReturnFormat'); |
|
| 462 | 462 | |
| 463 | 463 | if (null !== $templateName) { |
| 464 | 464 | StaticValidator::execute($templateName, 'TemplateName'); |