We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -27,8 +27,7 @@ discard block |
||
| 27 | 27 | * @subpackage dlf |
| 28 | 28 | * @access public |
| 29 | 29 | */ |
| 30 | -class OaiPmh extends \Kitodo\Dlf\Common\AbstractPlugin |
|
| 31 | -{ |
|
| 30 | +class OaiPmh extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
| 32 | 31 | public $scriptRelPath = 'Classes/Plugin/OaiPmh.php'; |
| 33 | 32 | |
| 34 | 33 | /** |
@@ -78,8 +77,7 @@ discard block |
||
| 78 | 77 | * |
| 79 | 78 | * @return void |
| 80 | 79 | */ |
| 81 | - protected function deleteExpiredTokens() |
|
| 82 | - { |
|
| 80 | + protected function deleteExpiredTokens() { |
|
| 83 | 81 | // Delete expired resumption tokens. |
| 84 | 82 | $GLOBALS['TYPO3_DB']->exec_DELETEquery( |
| 85 | 83 | 'tx_dlf_tokens', |
@@ -100,8 +98,7 @@ discard block |
||
| 100 | 98 | * |
| 101 | 99 | * @return \DOMElement XML node to add to the OAI response |
| 102 | 100 | */ |
| 103 | - protected function error($type) |
|
| 104 | - { |
|
| 101 | + protected function error($type) { |
|
| 105 | 102 | $this->error = TRUE; |
| 106 | 103 | $error = $this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/', 'error', htmlspecialchars($this->pi_getLL($type, $type, FALSE), ENT_NOQUOTES, 'UTF-8')); |
| 107 | 104 | $error->setAttribute('code', $type); |
@@ -115,8 +112,7 @@ discard block |
||
| 115 | 112 | * |
| 116 | 113 | * @return void |
| 117 | 114 | */ |
| 118 | - protected function getUrlParams() |
|
| 119 | - { |
|
| 115 | + protected function getUrlParams() { |
|
| 120 | 116 | $allowedParams = [ |
| 121 | 117 | 'verb', |
| 122 | 118 | 'identifier', |
@@ -146,8 +142,7 @@ discard block |
||
| 146 | 142 | * |
| 147 | 143 | * @return \DOMElement XML node to add to the OAI response |
| 148 | 144 | */ |
| 149 | - protected function getDcData(array $metadata) |
|
| 150 | - { |
|
| 145 | + protected function getDcData(array $metadata) { |
|
| 151 | 146 | $oai_dc = $this->oai->createElementNS($this->formats['oai_dc']['namespace'], 'oai_dc:dc'); |
| 152 | 147 | $oai_dc->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:dc', 'http://purl.org/dc/elements/1.1/'); |
| 153 | 148 | $oai_dc->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance'); |
@@ -226,8 +221,7 @@ discard block |
||
| 226 | 221 | * |
| 227 | 222 | * @return \DOMElement XML node to add to the OAI response |
| 228 | 223 | */ |
| 229 | - protected function getEpicurData(array $metadata) |
|
| 230 | - { |
|
| 224 | + protected function getEpicurData(array $metadata) { |
|
| 231 | 225 | // Define all XML elements with or without qualified namespace. |
| 232 | 226 | if (empty($this->conf['unqualified_epicur'])) { |
| 233 | 227 | $epicur = $this->oai->createElementNS($this->formats['epicur']['namespace'], 'epicur:epicur'); |
@@ -290,8 +284,7 @@ discard block |
||
| 290 | 284 | * |
| 291 | 285 | * @return \DOMElement XML node to add to the OAI response |
| 292 | 286 | */ |
| 293 | - protected function getMetsData(array $metadata) |
|
| 294 | - { |
|
| 287 | + protected function getMetsData(array $metadata) { |
|
| 295 | 288 | $mets = NULL; |
| 296 | 289 | // Load METS file. |
| 297 | 290 | $xml = new \DOMDocument(); |
@@ -323,8 +316,7 @@ discard block |
||
| 323 | 316 | * |
| 324 | 317 | * @return void |
| 325 | 318 | */ |
| 326 | - public function main($content, $conf) |
|
| 327 | - { |
|
| 319 | + public function main($content, $conf) { |
|
| 328 | 320 | // Initialize plugin. |
| 329 | 321 | $this->init($conf); |
| 330 | 322 | // Turn cache off. |
@@ -414,8 +406,7 @@ discard block |
||
| 414 | 406 | * |
| 415 | 407 | * @return string Substitution for subpart "###RESPONSE###" |
| 416 | 408 | */ |
| 417 | - protected function resume() |
|
| 418 | - { |
|
| 409 | + protected function resume() { |
|
| 419 | 410 | /** @var QueryBuilder $queryBuilder */ |
| 420 | 411 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class) |
| 421 | 412 | ->getQueryBuilderForTable('tx_dlf_tokens'); |
@@ -450,8 +441,7 @@ discard block |
||
| 450 | 441 | * |
| 451 | 442 | * @return string Substitution for subpart "###RESPONSE###" |
| 452 | 443 | */ |
| 453 | - protected function verbGetRecord() |
|
| 454 | - { |
|
| 444 | + protected function verbGetRecord() { |
|
| 455 | 445 | if (count($this->piVars) != 3 || empty($this->piVars['metadataPrefix']) || empty($this->piVars['identifier'])) { |
| 456 | 446 | return $this->error('badArgument'); |
| 457 | 447 | } |
@@ -530,8 +520,7 @@ discard block |
||
| 530 | 520 | * |
| 531 | 521 | * @return \DOMElement XML node to add to the OAI response |
| 532 | 522 | */ |
| 533 | - protected function verbIdentify() |
|
| 534 | - { |
|
| 523 | + protected function verbIdentify() { |
|
| 535 | 524 | // Check for invalid arguments. |
| 536 | 525 | if (count($this->piVars) > 1) { |
| 537 | 526 | return $this->error('badArgument'); |
@@ -616,8 +605,7 @@ discard block |
||
| 616 | 605 | * |
| 617 | 606 | * @return string Substitution for subpart "###RESPONSE###" |
| 618 | 607 | */ |
| 619 | - protected function verbListIdentifiers() |
|
| 620 | - { |
|
| 608 | + protected function verbListIdentifiers() { |
|
| 621 | 609 | // If we have a resumption token we can continue our work |
| 622 | 610 | if (!empty($this->piVars['resumptionToken'])) { |
| 623 | 611 | // "resumptionToken" is an exclusive argument. |
@@ -656,8 +644,7 @@ discard block |
||
| 656 | 644 | * |
| 657 | 645 | * @return \DOMElement XML node to add to the OAI response |
| 658 | 646 | */ |
| 659 | - protected function verbListMetadataFormats() |
|
| 660 | - { |
|
| 647 | + protected function verbListMetadataFormats() { |
|
| 661 | 648 | $resArray = []; |
| 662 | 649 | // Check for invalid arguments. |
| 663 | 650 | if (count($this->piVars) > 1) { |
@@ -716,8 +703,7 @@ discard block |
||
| 716 | 703 | * |
| 717 | 704 | * @return string Substitution for subpart "###RESPONSE###" |
| 718 | 705 | */ |
| 719 | - protected function verbListRecords() |
|
| 720 | - { |
|
| 706 | + protected function verbListRecords() { |
|
| 721 | 707 | // Check for invalid arguments. |
| 722 | 708 | if (!empty($this->piVars['resumptionToken'])) { |
| 723 | 709 | // "resumptionToken" is an exclusive argument. |
@@ -757,8 +743,7 @@ discard block |
||
| 757 | 743 | * |
| 758 | 744 | * @return string Substitution for subpart "###RESPONSE###" |
| 759 | 745 | */ |
| 760 | - protected function verbListSets() |
|
| 761 | - { |
|
| 746 | + protected function verbListSets() { |
|
| 762 | 747 | /** @var QueryBuilder $queryBuilder */ |
| 763 | 748 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class) |
| 764 | 749 | ->getQueryBuilderForTable('tx_dlf_collections'); |
@@ -815,8 +800,7 @@ discard block |
||
| 815 | 800 | * @return array Array of matching records |
| 816 | 801 | * @throws \Exception |
| 817 | 802 | */ |
| 818 | - protected function fetchDocumentUIDs() |
|
| 819 | - { |
|
| 803 | + protected function fetchDocumentUIDs() { |
|
| 820 | 804 | /** @var QueryBuilder $queryBuilder */ |
| 821 | 805 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class) |
| 822 | 806 | ->getQueryBuilderForTable('tx_dlf_collections'); |
@@ -938,8 +922,7 @@ discard block |
||
| 938 | 922 | * |
| 939 | 923 | * @return \DOMElement XML of enriched records |
| 940 | 924 | */ |
| 941 | - protected function generateOutputForDocumentList(DocumentList $documentListSet) |
|
| 942 | - { |
|
| 925 | + protected function generateOutputForDocumentList(DocumentList $documentListSet) { |
|
| 943 | 926 | $documentsToProcess = $documentListSet->removeRange(0, intval($this->conf['limit'])); |
| 944 | 927 | $verb = $this->piVars['verb']; |
| 945 | 928 | $documents = $GLOBALS['TYPO3_DB']->exec_SELECT_mm_query( |
@@ -1025,8 +1008,7 @@ discard block |
||
| 1025 | 1008 | * |
| 1026 | 1009 | * @return \DOMElement XML for resumption token |
| 1027 | 1010 | */ |
| 1028 | - protected function generateResumptionTokenForDocumentListSet(DocumentList $documentListSet) |
|
| 1029 | - { |
|
| 1011 | + protected function generateResumptionTokenForDocumentListSet(DocumentList $documentListSet) { |
|
| 1030 | 1012 | if ($documentListSet->count() != 0) { |
| 1031 | 1013 | $token = uniqid(); |
| 1032 | 1014 | $GLOBALS['TYPO3_DB']->exec_INSERTquery( |
@@ -23,8 +23,7 @@ discard block |
||
| 23 | 23 | * @subpackage dlf |
| 24 | 24 | * @access public |
| 25 | 25 | */ |
| 26 | -class PageGrid extends \Kitodo\Dlf\Common\AbstractPlugin |
|
| 27 | -{ |
|
| 26 | +class PageGrid extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
| 28 | 27 | public $scriptRelPath = 'Classes/Plugin/PageGrid.php'; |
| 29 | 28 | |
| 30 | 29 | /** |
@@ -37,8 +36,7 @@ discard block |
||
| 37 | 36 | * |
| 38 | 37 | * @return string The rendered entry ready for output |
| 39 | 38 | */ |
| 40 | - protected function getEntry($number, $template) |
|
| 41 | - { |
|
| 39 | + protected function getEntry($number, $template) { |
|
| 42 | 40 | // Set current page if applicable. |
| 43 | 41 | if (!empty($this->piVars['page']) && $this->piVars['page'] == $number) { |
| 44 | 42 | $markerArray['###STATE###'] = 'cur'; |
@@ -81,8 +79,7 @@ discard block |
||
| 81 | 79 | * |
| 82 | 80 | * @return string The rendered page browser ready for output |
| 83 | 81 | */ |
| 84 | - protected function getPageBrowser() |
|
| 85 | - { |
|
| 82 | + protected function getPageBrowser() { |
|
| 86 | 83 | // Get overall number of pages. |
| 87 | 84 | $maxPages = intval(ceil($this->doc->numPages / $this->conf['limit'])); |
| 88 | 85 | // Return empty pagebrowser if there is just one page. |
@@ -132,8 +129,7 @@ discard block |
||
| 132 | 129 | * |
| 133 | 130 | * @return string The content that is displayed on the website |
| 134 | 131 | */ |
| 135 | - public function main($content, $conf) |
|
| 136 | - { |
|
| 132 | + public function main($content, $conf) { |
|
| 137 | 133 | $this->init($conf); |
| 138 | 134 | $this->loadDocument(); |
| 139 | 135 | if ( |
@@ -26,8 +26,7 @@ discard block |
||
| 26 | 26 | * @subpackage dlf |
| 27 | 27 | * @access public |
| 28 | 28 | */ |
| 29 | -class Basket extends \Kitodo\Dlf\Common\AbstractPlugin |
|
| 30 | -{ |
|
| 29 | +class Basket extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
| 31 | 30 | public $scriptRelPath = 'Classes/Plugin/Basket.php'; |
| 32 | 31 | |
| 33 | 32 | /** |
@@ -40,8 +39,7 @@ discard block |
||
| 40 | 39 | * |
| 41 | 40 | * @return string The content that is displayed on the website |
| 42 | 41 | */ |
| 43 | - public function main($content, $conf) |
|
| 44 | - { |
|
| 42 | + public function main($content, $conf) { |
|
| 45 | 43 | $this->init($conf); |
| 46 | 44 | // Don't cache the output. |
| 47 | 45 | $this->setCache(FALSE); |
@@ -235,8 +233,7 @@ discard block |
||
| 235 | 233 | * |
| 236 | 234 | * @return string One basket entry |
| 237 | 235 | */ |
| 238 | - protected function getEntry($data, $template) |
|
| 239 | - { |
|
| 236 | + protected function getEntry($data, $template) { |
|
| 240 | 237 | if (is_object($data)) { |
| 241 | 238 | $data = get_object_vars($data); |
| 242 | 239 | } |
@@ -284,8 +281,7 @@ discard block |
||
| 284 | 281 | * |
| 285 | 282 | * @return array Basket data and Javascript output |
| 286 | 283 | */ |
| 287 | - protected function addToBasket($_piVars, $basketData) |
|
| 288 | - { |
|
| 284 | + protected function addToBasket($_piVars, $basketData) { |
|
| 289 | 285 | $output = ''; |
| 290 | 286 | if (!$_piVars['startpage']) { |
| 291 | 287 | $page = 0; |
@@ -377,8 +373,7 @@ discard block |
||
| 377 | 373 | * |
| 378 | 374 | * @return array basket data |
| 379 | 375 | */ |
| 380 | - protected function removeFromBasket($_piVars, $basketData) |
|
| 381 | - { |
|
| 376 | + protected function removeFromBasket($_piVars, $basketData) { |
|
| 382 | 377 | if (!empty($basketData['doc_ids'])) { |
| 383 | 378 | $items = $basketData['doc_ids']; |
| 384 | 379 | $items = get_object_vars($items); |
@@ -417,8 +412,7 @@ discard block |
||
| 417 | 412 | * |
| 418 | 413 | * @return array basket data |
| 419 | 414 | */ |
| 420 | - protected function openFromBasket($_piVars, $basketData) |
|
| 421 | - { |
|
| 415 | + protected function openFromBasket($_piVars, $basketData) { |
|
| 422 | 416 | $pdfUrl = $this->conf['pdfgenerate']; |
| 423 | 417 | foreach ($this->piVars['selected'] as $docValue) { |
| 424 | 418 | if ($docValue['id']) { |
@@ -440,8 +434,7 @@ discard block |
||
| 440 | 434 | * |
| 441 | 435 | * @return mixed download url or FALSE |
| 442 | 436 | */ |
| 443 | - protected function getDocumentData($id, $data) |
|
| 444 | - { |
|
| 437 | + protected function getDocumentData($id, $data) { |
|
| 445 | 438 | // get document instance to load further information |
| 446 | 439 | $document = Document::getInstance($id, 0); |
| 447 | 440 | if ($document) { |
@@ -501,8 +494,7 @@ discard block |
||
| 501 | 494 | * |
| 502 | 495 | * @return void |
| 503 | 496 | */ |
| 504 | - protected function sendMail() |
|
| 505 | - { |
|
| 497 | + protected function sendMail() { |
|
| 506 | 498 | // send mail |
| 507 | 499 | $mailId = $this->piVars['mail_action']; |
| 508 | 500 | |
@@ -593,8 +585,7 @@ discard block |
||
| 593 | 585 | * |
| 594 | 586 | * @return void |
| 595 | 587 | */ |
| 596 | - protected function printDocument() |
|
| 597 | - { |
|
| 588 | + protected function printDocument() { |
|
| 598 | 589 | $pdfUrl = $this->conf['pdfprint']; |
| 599 | 590 | $numberOfPages = 0; |
| 600 | 591 | foreach ($this->piVars['selected'] as $docId => $docValue) { |
@@ -25,8 +25,7 @@ discard block |
||
| 25 | 25 | * @subpackage dlf |
| 26 | 26 | * @access public |
| 27 | 27 | */ |
| 28 | -class Calendar extends \Kitodo\Dlf\Common\AbstractPlugin |
|
| 29 | -{ |
|
| 28 | +class Calendar extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
| 30 | 29 | public $scriptRelPath = 'Classes/Plugin/Calendar.php'; |
| 31 | 30 | |
| 32 | 31 | /** |
@@ -39,8 +38,7 @@ discard block |
||
| 39 | 38 | * |
| 40 | 39 | * @return string The content that is displayed on the website |
| 41 | 40 | */ |
| 42 | - public function main($content, $conf) |
|
| 43 | - { |
|
| 41 | + public function main($content, $conf) { |
|
| 44 | 42 | // Nothing to do here. |
| 45 | 43 | return $content; |
| 46 | 44 | } |
@@ -55,8 +53,7 @@ discard block |
||
| 55 | 53 | * |
| 56 | 54 | * @return string The content that is displayed on the website |
| 57 | 55 | */ |
| 58 | - public function calendar($content, $conf) |
|
| 59 | - { |
|
| 56 | + public function calendar($content, $conf) { |
|
| 60 | 57 | $this->init($conf); |
| 61 | 58 | // Load current document. |
| 62 | 59 | $this->loadDocument(); |
@@ -262,8 +259,7 @@ discard block |
||
| 262 | 259 | * |
| 263 | 260 | * @return string The content that is displayed on the website |
| 264 | 261 | */ |
| 265 | - public function years($content, $conf) |
|
| 266 | - { |
|
| 262 | + public function years($content, $conf) { |
|
| 267 | 263 | $this->init($conf); |
| 268 | 264 | // Load current document. |
| 269 | 265 | $this->loadDocument(); |
@@ -25,8 +25,7 @@ discard block |
||
| 25 | 25 | * @subpackage dlf |
| 26 | 26 | * @access public |
| 27 | 27 | */ |
| 28 | -class Statistics extends \Kitodo\Dlf\Common\AbstractPlugin |
|
| 29 | -{ |
|
| 28 | +class Statistics extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
| 30 | 29 | public $scriptRelPath = 'Classes/Plugin/Statistics.php'; |
| 31 | 30 | |
| 32 | 31 | /** |
@@ -39,8 +38,7 @@ discard block |
||
| 39 | 38 | * |
| 40 | 39 | * @return string The content that is displayed on the website |
| 41 | 40 | */ |
| 42 | - public function main($content, $conf) |
|
| 43 | - { |
|
| 41 | + public function main($content, $conf) { |
|
| 44 | 42 | $this->init($conf); |
| 45 | 43 | // Turn cache on. |
| 46 | 44 | $this->setCache(TRUE); |
@@ -26,8 +26,7 @@ discard block |
||
| 26 | 26 | * @subpackage dlf |
| 27 | 27 | * @access public |
| 28 | 28 | */ |
| 29 | -class Feeds extends \Kitodo\Dlf\Common\AbstractPlugin |
|
| 30 | -{ |
|
| 29 | +class Feeds extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
| 31 | 30 | public $scriptRelPath = 'Classes/Plugin/Feeds.php'; |
| 32 | 31 | |
| 33 | 32 | /** |
@@ -40,8 +39,7 @@ discard block |
||
| 40 | 39 | * |
| 41 | 40 | * @return void |
| 42 | 41 | */ |
| 43 | - public function main($content, $conf) |
|
| 44 | - { |
|
| 42 | + public function main($content, $conf) { |
|
| 45 | 43 | $this->init($conf); |
| 46 | 44 | // Don't cache the output. |
| 47 | 45 | $this->setCache(FALSE); |
@@ -25,8 +25,7 @@ discard block |
||
| 25 | 25 | * @subpackage dlf |
| 26 | 26 | * @access public |
| 27 | 27 | */ |
| 28 | -class PageView extends \Kitodo\Dlf\Common\AbstractPlugin |
|
| 29 | -{ |
|
| 28 | +class PageView extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
| 30 | 29 | public $scriptRelPath = 'Classes/Plugin/PageView.php'; |
| 31 | 30 | |
| 32 | 31 | /** |
@@ -68,8 +67,7 @@ discard block |
||
| 68 | 67 | * |
| 69 | 68 | * @return void |
| 70 | 69 | */ |
| 71 | - protected function addViewerJS() |
|
| 72 | - { |
|
| 70 | + protected function addViewerJS() { |
|
| 73 | 71 | |
| 74 | 72 | $pageRenderer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class); |
| 75 | 73 | // Add OpenLayers library. |
@@ -114,8 +112,7 @@ discard block |
||
| 114 | 112 | * |
| 115 | 113 | * @return array Marker array |
| 116 | 114 | */ |
| 117 | - protected function addInteraction() |
|
| 118 | - { |
|
| 115 | + protected function addInteraction() { |
|
| 119 | 116 | $markerArray = []; |
| 120 | 117 | if ($this->piVars['id']) { |
| 121 | 118 | if ($this->conf['crop']) { |
@@ -141,8 +138,7 @@ discard block |
||
| 141 | 138 | * |
| 142 | 139 | * @return array Marker array |
| 143 | 140 | */ |
| 144 | - protected function addBasketForm() |
|
| 145 | - { |
|
| 141 | + protected function addBasketForm() { |
|
| 146 | 142 | $markerArray = []; |
| 147 | 143 | // Add basket button |
| 148 | 144 | if ($this->conf['basketButton'] && $this->conf['targetBasket'] && $this->piVars['id']) { |
@@ -188,8 +184,7 @@ discard block |
||
| 188 | 184 | * |
| 189 | 185 | * @return array URL and MIME type of image file |
| 190 | 186 | */ |
| 191 | - protected function getImage($page) |
|
| 192 | - { |
|
| 187 | + protected function getImage($page) { |
|
| 193 | 188 | $image = []; |
| 194 | 189 | // Get @USE value of METS fileGrp. |
| 195 | 190 | $fileGrps = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->conf['fileGrps']); |
@@ -223,8 +218,7 @@ discard block |
||
| 223 | 218 | * |
| 224 | 219 | * @return array URL and MIME type of fulltext file |
| 225 | 220 | */ |
| 226 | - protected function getFulltext($page) |
|
| 227 | - { |
|
| 221 | + protected function getFulltext($page) { |
|
| 228 | 222 | $fulltext = []; |
| 229 | 223 | // Get fulltext link. |
| 230 | 224 | if (!empty($this->doc->physicalStructureInfo[$this->doc->physicalStructure[$page]]['files'][$this->conf['fileGrpFulltext']])) { |
@@ -251,8 +245,7 @@ discard block |
||
| 251 | 245 | * @return array An array containing the IRIs of the AnnotationLists / AnnotationPages as well as |
| 252 | 246 | * some information about the canvas. |
| 253 | 247 | */ |
| 254 | - protected function getAnnotationContainers($page) |
|
| 255 | - { |
|
| 248 | + protected function getAnnotationContainers($page) { |
|
| 256 | 249 | if ($this->doc instanceof IiifManifest) { |
| 257 | 250 | $canvasId = $this->doc->physicalStructure[$page]; |
| 258 | 251 | $iiif = $this->doc->getIiif(); |
@@ -309,8 +302,7 @@ discard block |
||
| 309 | 302 | * |
| 310 | 303 | * @return string The content that is displayed on the website |
| 311 | 304 | */ |
| 312 | - public function main($content, $conf) |
|
| 313 | - { |
|
| 305 | + public function main($content, $conf) { |
|
| 314 | 306 | $this->init($conf); |
| 315 | 307 | // Load current document. |
| 316 | 308 | $this->loadDocument(); |
@@ -20,8 +20,7 @@ discard block |
||
| 20 | 20 | * @subpackage dlf |
| 21 | 21 | * @access public |
| 22 | 22 | */ |
| 23 | -class AudioPlayer extends \Kitodo\Dlf\Common\AbstractPlugin |
|
| 24 | -{ |
|
| 23 | +class AudioPlayer extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
| 25 | 24 | public $scriptRelPath = 'Classes/Plugin/AudioPlayer.php'; |
| 26 | 25 | |
| 27 | 26 | /** |
@@ -39,8 +38,7 @@ discard block |
||
| 39 | 38 | * |
| 40 | 39 | * @return void |
| 41 | 40 | */ |
| 42 | - protected function addPlayerJS() |
|
| 43 | - { |
|
| 41 | + protected function addPlayerJS() { |
|
| 44 | 42 | $pageRenderer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class); |
| 45 | 43 | // Add AudioPlayer library. |
| 46 | 44 | $pageRenderer->addCssFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'Resources/Public/Javascript/jPlayer/blue.monday/css/jplayer.blue.monday.min.css'); |
@@ -74,8 +72,7 @@ discard block |
||
| 74 | 72 | * |
| 75 | 73 | * @return string The content that is displayed on the website |
| 76 | 74 | */ |
| 77 | - public function main($content, $conf) |
|
| 78 | - { |
|
| 75 | + public function main($content, $conf) { |
|
| 79 | 76 | $this->init($conf); |
| 80 | 77 | // Load current document. |
| 81 | 78 | $this->loadDocument(); |
@@ -23,8 +23,7 @@ discard block |
||
| 23 | 23 | * @subpackage dlf |
| 24 | 24 | * @access public |
| 25 | 25 | */ |
| 26 | -class Navigation extends \Kitodo\Dlf\Common\AbstractPlugin |
|
| 27 | -{ |
|
| 26 | +class Navigation extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
| 28 | 27 | public $scriptRelPath = 'Classes/Plugin/Navigation.php'; |
| 29 | 28 | |
| 30 | 29 | /** |
@@ -34,8 +33,7 @@ discard block |
||
| 34 | 33 | * |
| 35 | 34 | * @return string Link to the list view ready to output |
| 36 | 35 | */ |
| 37 | - protected function getLinkToListview() |
|
| 38 | - { |
|
| 36 | + protected function getLinkToListview() { |
|
| 39 | 37 | if (!empty($this->conf['targetPid'])) { |
| 40 | 38 | // Load the list. |
| 41 | 39 | $list = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(DocumentList::class); |
@@ -59,8 +57,7 @@ discard block |
||
| 59 | 57 | * |
| 60 | 58 | * @return string Page selector ready to output |
| 61 | 59 | */ |
| 62 | - protected function getPageSelector() |
|
| 63 | - { |
|
| 60 | + protected function getPageSelector() { |
|
| 64 | 61 | // Configure @action URL for form. |
| 65 | 62 | $linkConf = [ |
| 66 | 63 | 'parameter' => $GLOBALS['TSFE']->id |
@@ -92,8 +89,7 @@ discard block |
||
| 92 | 89 | * |
| 93 | 90 | * @return string The content that is displayed on the website |
| 94 | 91 | */ |
| 95 | - public function main($content, $conf) |
|
| 96 | - { |
|
| 92 | + public function main($content, $conf) { |
|
| 97 | 93 | $this->init($conf); |
| 98 | 94 | // Turn cache on. |
| 99 | 95 | $this->setCache(TRUE); |
@@ -208,8 +204,7 @@ discard block |
||
| 208 | 204 | * |
| 209 | 205 | * @return string Typolink ready to output |
| 210 | 206 | */ |
| 211 | - protected function makeLink($label, array $overrulePIvars = [], $aTagParams = '') |
|
| 212 | - { |
|
| 207 | + protected function makeLink($label, array $overrulePIvars = [], $aTagParams = '') { |
|
| 213 | 208 | // Merge plugin variables with new set of values. |
| 214 | 209 | if (is_array($this->piVars)) { |
| 215 | 210 | $piVars = $this->piVars; |