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(); |
@@ -41,10 +41,12 @@ discard block |
||
| 41 | 41 | { |
| 42 | 42 | return new ExpressionFunction( |
| 43 | 43 | 'getDocumentType', |
| 44 | - function () { |
|
| 44 | + function () |
|
| 45 | + { |
|
| 45 | 46 | // Not implemented, we only use the evaluator |
| 46 | 47 | }, |
| 47 | - function ($arguments, $cPid) { |
|
| 48 | + function ($arguments, $cPid) |
|
| 49 | + { |
|
| 48 | 50 | /** @var RequestWrapper $requestWrapper */ |
| 49 | 51 | $requestWrapper = $arguments['request']; |
| 50 | 52 | $queryParams = $requestWrapper->getQueryParams(); |
@@ -93,8 +95,7 @@ discard block |
||
| 93 | 95 | Helper::devLog('Failed to load document with UID ' . $piVars['id'], DEVLOG_SEVERITY_WARNING); |
| 94 | 96 | die(); |
| 95 | 97 | } |
| 96 | - } |
|
| 97 | - elseif (!empty($piVars['recordId'])) { |
|
| 98 | + } elseif (!empty($piVars['recordId'])) { |
|
| 98 | 99 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class) |
| 99 | 100 | ->getQueryBuilderForTable('tx_dlf_documents'); |
| 100 | 101 | |
@@ -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 |