@@ -19,13 +19,11 @@ |
||
| 19 | 19 | /** |
| 20 | 20 | * Add inline JavaScript code to footer * |
| 21 | 21 | */ |
| 22 | -class JsFooterViewHelper extends AbstractViewHelper |
|
| 23 | -{ |
|
| 22 | +class JsFooterViewHelper extends AbstractViewHelper { |
|
| 24 | 23 | /** |
| 25 | 24 | * Initialize arguments. |
| 26 | 25 | */ |
| 27 | - public function initializeArguments() |
|
| 28 | - { |
|
| 26 | + public function initializeArguments() { |
|
| 29 | 27 | parent::initializeArguments(); |
| 30 | 28 | $this->registerArgument('inlineCode', 'string', 'Inline JavaScript', true); |
| 31 | 29 | } |
@@ -26,8 +26,7 @@ discard block |
||
| 26 | 26 | * @subpackage dlf |
| 27 | 27 | * @access public |
| 28 | 28 | */ |
| 29 | -class PageViewController extends AbstractController |
|
| 30 | -{ |
|
| 29 | +class PageViewController extends AbstractController { |
|
| 31 | 30 | /** |
| 32 | 31 | * Holds the controls to add to the map |
| 33 | 32 | * |
@@ -65,8 +64,7 @@ discard block |
||
| 65 | 64 | * |
| 66 | 65 | * @return void |
| 67 | 66 | */ |
| 68 | - public function mainAction() |
|
| 69 | - { |
|
| 67 | + public function mainAction() { |
|
| 70 | 68 | // Load current document. |
| 71 | 69 | $this->loadDocument($this->requestData); |
| 72 | 70 | if ( |
@@ -121,8 +119,7 @@ discard block |
||
| 121 | 119 | * |
| 122 | 120 | * @return array URL and MIME type of fulltext file |
| 123 | 121 | */ |
| 124 | - protected function getFulltext($page) |
|
| 125 | - { |
|
| 122 | + protected function getFulltext($page) { |
|
| 126 | 123 | $fulltext = []; |
| 127 | 124 | // Get fulltext link. |
| 128 | 125 | $fileGrpsFulltext = GeneralUtility::trimExplode(',', $this->extConf['fileGrpFulltext']); |
@@ -162,8 +159,7 @@ discard block |
||
| 162 | 159 | * |
| 163 | 160 | * @return void |
| 164 | 161 | */ |
| 165 | - protected function addViewerJS() |
|
| 166 | - { |
|
| 162 | + protected function addViewerJS() { |
|
| 167 | 163 | // Viewer configuration. |
| 168 | 164 | $viewerConfiguration = '$(document).ready(function() { |
| 169 | 165 | if (dlfUtils.exists(dlfViewer)) { |
@@ -189,8 +185,7 @@ discard block |
||
| 189 | 185 | * @return array An array containing the IRIs of the AnnotationLists / AnnotationPages as well as |
| 190 | 186 | * some information about the canvas. |
| 191 | 187 | */ |
| 192 | - protected function getAnnotationContainers($page) |
|
| 193 | - { |
|
| 188 | + protected function getAnnotationContainers($page) { |
|
| 194 | 189 | if ($this->document->getDoc() instanceof IiifManifest) { |
| 195 | 190 | $canvasId = $this->document->getDoc()->physicalStructure[$page]; |
| 196 | 191 | $iiif = $this->document->getDoc()->getIiif(); |
@@ -246,8 +241,7 @@ discard block |
||
| 246 | 241 | * |
| 247 | 242 | * @return array URL and MIME type of image file |
| 248 | 243 | */ |
| 249 | - protected function getImage($page) |
|
| 250 | - { |
|
| 244 | + protected function getImage($page) { |
|
| 251 | 245 | $image = []; |
| 252 | 246 | // Get @USE value of METS fileGrp. |
| 253 | 247 | $fileGrpsImages = GeneralUtility::trimExplode(',', $this->extConf['fileGrpImages']); |