@@ -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); |
@@ -84,10 +84,10 @@ discard block |
||
| 84 | 84 | $ret = null; |
| 85 | 85 | |
| 86 | 86 | StaticValidator::execute($templateName, 'TemplateName'); |
| 87 | - StaticValidator::execute($zoomFactor , 'ZoomFactor'); |
|
| 88 | - StaticValidator::execute($fromPage , 'Page'); |
|
| 89 | - StaticValidator::execute($toPage , 'Page'); |
|
| 90 | - StaticValidator::execute($imageFormat , 'ImageFormat'); |
|
| 87 | + StaticValidator::execute($zoomFactor, 'ZoomFactor'); |
|
| 88 | + StaticValidator::execute($fromPage, 'Page'); |
|
| 89 | + StaticValidator::execute($toPage, 'Page'); |
|
| 90 | + StaticValidator::execute($imageFormat, 'ImageFormat'); |
|
| 91 | 91 | |
| 92 | 92 | $query = [ |
| 93 | 93 | 'templateName' => $templateName, |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | |
| 132 | 132 | if (is_array($records) && count($records) > 0) { |
| 133 | 133 | $ret = $this->buildPropertyMapArray($records, $propertyMap); |
| 134 | - array_walk($ret, function (&$record) { |
|
| 134 | + array_walk($ret, function(&$record) { |
|
| 135 | 135 | $key = 'modified'; |
| 136 | 136 | if (isset($record[$key])) { |
| 137 | 137 | StaticFilter::execute($record[$key], 'DateTimeToTimestamp'); |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | |
| 198 | 198 | if (is_array($records) && count($records) > 0) { |
| 199 | 199 | $ret = $this->buildPropertyMapArray($records, $propertyMap); |
| 200 | - array_walk($ret, function (&$record) { |
|
| 200 | + array_walk($ret, function(&$record) { |
|
| 201 | 201 | $key = 'valid_until'; |
| 202 | 202 | if (isset($record[$key])) { |
| 203 | 203 | StaticFilter::execute($record[$key], 'DateTimeToTimestamp'); |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | |
| 326 | 326 | StaticValidator::execute($documentFilename, 'DocumentExtension'); |
| 327 | 327 | StaticValidator::execute($documentFilename, 'FileExists'); |
| 328 | - StaticValidator::execute($returnFormat , 'ReturnFormat'); |
|
| 328 | + StaticValidator::execute($returnFormat, 'ReturnFormat'); |
|
| 329 | 329 | |
| 330 | 330 | $query = [ |
| 331 | 331 | 'returnFormat' => $returnFormat, |
@@ -372,7 +372,7 @@ discard block |
||
| 372 | 372 | { |
| 373 | 373 | $ret = null; |
| 374 | 374 | |
| 375 | - StaticValidator::execute($mergeData , 'TypeArray'); |
|
| 375 | + StaticValidator::execute($mergeData, 'TypeArray'); |
|
| 376 | 376 | StaticValidator::execute($returnFormat, 'ReturnFormat'); |
| 377 | 377 | |
| 378 | 378 | if (null !== $templateName) { |
@@ -453,7 +453,7 @@ discard block |
||
| 453 | 453 | $ret = null; |
| 454 | 454 | |
| 455 | 455 | StaticValidator::execute($findAndReplaceData, 'TypeArray'); |
| 456 | - StaticValidator::execute($returnFormat , 'ReturnFormat'); |
|
| 456 | + StaticValidator::execute($returnFormat, 'ReturnFormat'); |
|
| 457 | 457 | |
| 458 | 458 | if (null !== $templateName) { |
| 459 | 459 | StaticValidator::execute($templateName, 'TemplateName'); |
@@ -441,7 +441,7 @@ |
||
| 441 | 441 | * @return null|string |
| 442 | 442 | */ |
| 443 | 443 | public function findAndReplaceDocument($findAndReplaceData, $returnFormat, $templateName = null, |
| 444 | - $templateFilename = null, $mergeSettings = []) |
|
| 444 | + $templateFilename = null, $mergeSettings = []) |
|
| 445 | 445 | { |
| 446 | 446 | $ret = null; |
| 447 | 447 | |