@@ -28,8 +28,7 @@ discard block |
||
| 28 | 28 | * @subpackage dlf |
| 29 | 29 | * @access public |
| 30 | 30 | */ |
| 31 | -class DocumentTypeFunctionProvider implements ExpressionFunctionProviderInterface |
|
| 32 | -{ |
|
| 31 | +class DocumentTypeFunctionProvider implements ExpressionFunctionProviderInterface { |
|
| 33 | 32 | /** |
| 34 | 33 | * This holds the extension's parameter prefix |
| 35 | 34 | * @see \Kitodo\Dlf\Common\AbstractPlugin |
@@ -42,8 +41,7 @@ discard block |
||
| 42 | 41 | /** |
| 43 | 42 | * @return ExpressionFunction[] An array of Function instances |
| 44 | 43 | */ |
| 45 | - public function getFunctions() |
|
| 46 | - { |
|
| 44 | + public function getFunctions() { |
|
| 47 | 45 | return [ |
| 48 | 46 | $this->getDocumentTypeFunction(), |
| 49 | 47 | ]; |
@@ -98,8 +96,7 @@ discard block |
||
| 98 | 96 | * |
| 99 | 97 | * @return \Kitodo\Dlf\Common\Document Instance of the current document |
| 100 | 98 | */ |
| 101 | - protected function loadDocument(array $piVars) |
|
| 102 | - { |
|
| 99 | + protected function loadDocument(array $piVars) { |
|
| 103 | 100 | // Check for required variable. |
| 104 | 101 | if (!empty($piVars['id'])) { |
| 105 | 102 | // Get instance of document. |
@@ -23,10 +23,8 @@ |
||
| 23 | 23 | * @subpackage dlf |
| 24 | 24 | * @access public |
| 25 | 25 | */ |
| 26 | -class DocumentTypeProvider extends AbstractProvider |
|
| 27 | -{ |
|
| 28 | - public function __construct() |
|
| 29 | - { |
|
| 26 | +class DocumentTypeProvider extends AbstractProvider { |
|
| 27 | + public function __construct() { |
|
| 30 | 28 | $this->expressionLanguageProviders = [ |
| 31 | 29 | DocumentTypeFunctionProvider::class |
| 32 | 30 | ]; |