We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -32,14 +32,14 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | public function getFunctions() |
| 34 | 34 | { |
| 35 | - return [ |
|
| 36 | - $this->getDocumentTypeFunction(), |
|
| 37 | - ]; |
|
| 35 | + return [ |
|
| 36 | + $this->getDocumentTypeFunction(), |
|
| 37 | + ]; |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | protected function getDocumentTypeFunction(): ExpressionFunction |
| 41 | 41 | { |
| 42 | - return new ExpressionFunction( |
|
| 42 | + return new ExpressionFunction( |
|
| 43 | 43 | 'getDocumentType', |
| 44 | 44 | function () { |
| 45 | 45 | // Not implemented, we only use the evaluator |
@@ -41,10 +41,10 @@ |
||
| 41 | 41 | { |
| 42 | 42 | return new ExpressionFunction( |
| 43 | 43 | 'getDocumentType', |
| 44 | - function () { |
|
| 44 | + function() { |
|
| 45 | 45 | // Not implemented, we only use the evaluator |
| 46 | 46 | }, |
| 47 | - function ($arguments, $cPid) { |
|
| 47 | + function($arguments, $cPid) { |
|
| 48 | 48 | /** @var RequestWrapper $requestWrapper */ |
| 49 | 49 | $requestWrapper = $arguments['request']; |
| 50 | 50 | $queryParams = $requestWrapper->getQueryParams(); |
@@ -45,10 +45,12 @@ discard block |
||
| 45 | 45 | { |
| 46 | 46 | return new ExpressionFunction( |
| 47 | 47 | 'getDocumentType', |
| 48 | - function () { |
|
| 48 | + function () |
|
| 49 | + { |
|
| 49 | 50 | // Not implemented, we only use the evaluator |
| 50 | 51 | }, |
| 51 | - function ($arguments, $cPid) { |
|
| 52 | + function ($arguments, $cPid) |
|
| 53 | + { |
|
| 52 | 54 | /** @var RequestWrapper $requestWrapper */ |
| 53 | 55 | $requestWrapper = $arguments['request']; |
| 54 | 56 | $queryParams = $requestWrapper->getQueryParams(); |
@@ -96,8 +98,7 @@ discard block |
||
| 96 | 98 | } else { |
| 97 | 99 | Helper::devLog('Failed to load document with UID ' . $piVars['id'], DEVLOG_SEVERITY_WARNING); |
| 98 | 100 | } |
| 99 | - } |
|
| 100 | - elseif (!empty($piVars['recordId'])) { |
|
| 101 | + } elseif (!empty($piVars['recordId'])) { |
|
| 101 | 102 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class) |
| 102 | 103 | ->getQueryBuilderForTable('tx_dlf_documents'); |
| 103 | 104 | |
@@ -19,8 +19,8 @@ |
||
| 19 | 19 | { |
| 20 | 20 | public function __construct() |
| 21 | 21 | { |
| 22 | - $this->expressionLanguageProviders = [ |
|
| 22 | + $this->expressionLanguageProviders = [ |
|
| 23 | 23 | DocumentTypeFunctionProvider::class |
| 24 | - ]; |
|
| 24 | + ]; |
|
| 25 | 25 | } |
| 26 | 26 | } |
| 27 | 27 | \ No newline at end of file |