@@ -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); |
@@ -322,7 +322,7 @@ discard block |
||
322 | 322 | /** |
323 | 323 | * Return the test flag |
324 | 324 | * |
325 | - * @return mixed |
|
325 | + * @return boolean |
|
326 | 326 | */ |
327 | 327 | public function getTest() |
328 | 328 | { |
@@ -350,7 +350,7 @@ discard block |
||
350 | 350 | /** |
351 | 351 | * Return the debug flag |
352 | 352 | * |
353 | - * @return mixed |
|
353 | + * @return boolean |
|
354 | 354 | */ |
355 | 355 | public function getDebug() |
356 | 356 | { |
@@ -410,7 +410,7 @@ discard block |
||
410 | 410 | * @param string $uri URI |
411 | 411 | * @param array $options Options |
412 | 412 | * |
413 | - * @return mixed|null|\Psr\Http\Message\ResponseInterface |
|
413 | + * @return \Psr\Http\Message\ResponseInterface |
|
414 | 414 | * |
415 | 415 | * @throws RuntimeException |
416 | 416 | */ |
@@ -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 |
@@ -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'); |