@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | if ($doc->ready) { |
| 117 | 117 | return $doc; |
| 118 | 118 | } else { |
| 119 | - $this->logger->warning('Failed to load document with UID ' . $piVars['id']); |
|
| 119 | + $this->logger->warning('Failed to load document with UID '.$piVars['id']); |
|
| 120 | 120 | } |
| 121 | 121 | } elseif (!empty($piVars['recordId'])) { |
| 122 | 122 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class) |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | // Try to load document. |
| 138 | 138 | return $this->loadDocument(['id' => $resArray['uid']]); |
| 139 | 139 | } else { |
| 140 | - $this->logger->warning('Failed to load document with record ID "' . $piVars['recordId'] . '"'); |
|
| 140 | + $this->logger->warning('Failed to load document with record ID "'.$piVars['recordId'].'"'); |
|
| 141 | 141 | } |
| 142 | 142 | } |
| 143 | 143 | } |
@@ -46,8 +46,7 @@ discard block |
||
| 46 | 46 | /** |
| 47 | 47 | * @return ExpressionFunction[] An array of Function instances |
| 48 | 48 | */ |
| 49 | - public function getFunctions() |
|
| 50 | - { |
|
| 49 | + public function getFunctions() { |
|
| 51 | 50 | return [ |
| 52 | 51 | $this->getDocumentTypeFunction(), |
| 53 | 52 | ]; |
@@ -62,12 +61,10 @@ discard block |
||
| 62 | 61 | { |
| 63 | 62 | return new ExpressionFunction( |
| 64 | 63 | 'getDocumentType', |
| 65 | - function() |
|
| 66 | - { |
|
| 64 | + function() { |
|
| 67 | 65 | // Not implemented, we only use the evaluator |
| 68 | 66 | }, |
| 69 | - function($arguments, $cPid) |
|
| 70 | - { |
|
| 67 | + function($arguments, $cPid) { |
|
| 71 | 68 | /** @var RequestWrapper $requestWrapper */ |
| 72 | 69 | $requestWrapper = $arguments['request']; |
| 73 | 70 | $queryParams = $requestWrapper->getQueryParams(); |
@@ -107,8 +104,7 @@ discard block |
||
| 107 | 104 | * |
| 108 | 105 | * @return \Kitodo\Dlf\Common\Document Instance of the current document |
| 109 | 106 | */ |
| 110 | - protected function loadDocument(array $piVars) |
|
| 111 | - { |
|
| 107 | + protected function loadDocument(array $piVars) { |
|
| 112 | 108 | // Check for required variable. |
| 113 | 109 | if (!empty($piVars['id'])) { |
| 114 | 110 | // Get instance of document. |