@@ -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 | $record[$key] = StaticFilter::execute($record[$key], 'DateTimeToTimestamp'); |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | |
322 | 322 | StaticValidator::execute($documentFilename, 'DocumentExtension'); |
323 | 323 | StaticValidator::execute($documentFilename, 'FileExists'); |
324 | - StaticValidator::execute($returnFormat , 'ReturnFormat'); |
|
324 | + StaticValidator::execute($returnFormat, 'ReturnFormat'); |
|
325 | 325 | |
326 | 326 | $query = [ |
327 | 327 | 'returnFormat' => $returnFormat, |
@@ -366,7 +366,7 @@ discard block |
||
366 | 366 | { |
367 | 367 | $ret = null; |
368 | 368 | |
369 | - StaticValidator::execute($mergeData , 'TypeArray'); |
|
369 | + StaticValidator::execute($mergeData, 'TypeArray'); |
|
370 | 370 | StaticValidator::execute($returnFormat, 'ReturnFormat'); |
371 | 371 | |
372 | 372 | if (null !== $templateName) { |
@@ -444,7 +444,7 @@ discard block |
||
444 | 444 | $ret = null; |
445 | 445 | |
446 | 446 | StaticValidator::execute($findAndReplaceData, 'TypeArray'); |
447 | - StaticValidator::execute($returnFormat , 'ReturnFormat'); |
|
447 | + StaticValidator::execute($returnFormat, 'ReturnFormat'); |
|
448 | 448 | |
449 | 449 | if (null !== $templateName) { |
450 | 450 | StaticValidator::execute($templateName, 'TemplateName'); |