@@ -520,7 +520,7 @@ |
||
520 | 520 | * @return null|string |
521 | 521 | */ |
522 | 522 | public function findAndReplace($findAndReplaceData, $returnFormat, $templateName = null, $templateFilename = null, |
523 | - $mergeSettings = []) |
|
523 | + $mergeSettings = []) |
|
524 | 524 | { |
525 | 525 | $ret = null; |
526 | 526 |
@@ -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, |
@@ -335,7 +335,7 @@ discard block |
||
335 | 335 | |
336 | 336 | StaticValidator::execute($documentFilename, 'DocumentExtension'); |
337 | 337 | StaticValidator::execute($documentFilename, 'FileExists'); |
338 | - StaticValidator::execute($returnFormat , 'ReturnFormat'); |
|
338 | + StaticValidator::execute($returnFormat, 'ReturnFormat'); |
|
339 | 339 | |
340 | 340 | $query = [ |
341 | 341 | 'returnFormat' => $returnFormat, |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | { |
386 | 386 | $ret = null; |
387 | 387 | |
388 | - StaticValidator::execute($mergeData , 'TypeArray'); |
|
388 | + StaticValidator::execute($mergeData, 'TypeArray'); |
|
389 | 389 | StaticValidator::execute($returnFormat, 'ReturnFormat'); |
390 | 390 | |
391 | 391 | if (null !== $templateName) { |
@@ -478,7 +478,7 @@ discard block |
||
478 | 478 | $ret = null; |
479 | 479 | |
480 | 480 | StaticValidator::execute($findAndReplaceData, 'TypeArray'); |
481 | - StaticValidator::execute($returnFormat , 'ReturnFormat'); |
|
481 | + StaticValidator::execute($returnFormat, 'ReturnFormat'); |
|
482 | 482 | |
483 | 483 | if (null !== $templateName) { |
484 | 484 | StaticValidator::execute($templateName, 'TemplateName'); |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | * |
155 | 155 | * @throws InvalidArgumentException |
156 | 156 | * |
157 | - * @return bool |
|
157 | + * @return integer |
|
158 | 158 | */ |
159 | 159 | public function getTemplatePageCount($templateName) |
160 | 160 | { |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | * |
222 | 222 | * @throws InvalidArgumentException |
223 | 223 | * |
224 | - * @return null|resource |
|
224 | + * @return string|null |
|
225 | 225 | */ |
226 | 226 | public function downloadTemplate($templateName) |
227 | 227 | { |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | * |
328 | 328 | * @throws InvalidArgumentException |
329 | 329 | * |
330 | - * @return null|resource |
|
330 | + * @return string|null |
|
331 | 331 | */ |
332 | 332 | public function convertDocument($documentFilename, $returnFormat) |
333 | 333 | { |
@@ -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); |