We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -18,7 +18,8 @@ discard block |
||
| 18 | 18 | * @subpackage tx_dlf |
| 19 | 19 | * @access public |
| 20 | 20 | */ |
| 21 | -class tx_dlf_toolsPdf extends tx_dlf_plugin { |
|
| 21 | +class tx_dlf_toolsPdf extends tx_dlf_plugin |
|
| 22 | +{ |
|
| 22 | 23 | |
| 23 | 24 | public $scriptRelPath = 'plugins/toolbox/tools/pdf/class.tx_dlf_toolsPdf.php'; |
| 24 | 25 | |
@@ -32,7 +33,8 @@ discard block |
||
| 32 | 33 | * |
| 33 | 34 | * @return string The content that is displayed on the website |
| 34 | 35 | */ |
| 35 | - public function main($content, $conf) { |
|
| 36 | + public function main($content, $conf) |
|
| 37 | + { |
|
| 36 | 38 | |
| 37 | 39 | $this->init($conf); |
| 38 | 40 | |
@@ -103,7 +105,8 @@ discard block |
||
| 103 | 105 | * |
| 104 | 106 | * @return string Link to downloadable page |
| 105 | 107 | */ |
| 106 | - protected function getPageLink() { |
|
| 108 | + protected function getPageLink() |
|
| 109 | + { |
|
| 107 | 110 | |
| 108 | 111 | $page1Link = ''; |
| 109 | 112 | $page2Link = ''; |
@@ -158,7 +161,8 @@ discard block |
||
| 158 | 161 | * |
| 159 | 162 | * @return string Link to downloadable work |
| 160 | 163 | */ |
| 161 | - protected function getWorkLink() { |
|
| 164 | + protected function getWorkLink() |
|
| 165 | + { |
|
| 162 | 166 | |
| 163 | 167 | $workLink = ''; |
| 164 | 168 | |
@@ -17,7 +17,8 @@ discard block |
||
| 17 | 17 | * @subpackage tx_dlf |
| 18 | 18 | * @access public |
| 19 | 19 | */ |
| 20 | -class tx_dlf_toolsSearchindocument extends tx_dlf_plugin { |
|
| 20 | +class tx_dlf_toolsSearchindocument extends tx_dlf_plugin |
|
| 21 | +{ |
|
| 21 | 22 | |
| 22 | 23 | public $scriptRelPath = 'plugins/toolbox/tools/searchindocument/class.tx_dlf_toolsSearchindocument.php'; |
| 23 | 24 | |
@@ -31,7 +32,8 @@ discard block |
||
| 31 | 32 | * |
| 32 | 33 | * @return string The content that is displayed on the website |
| 33 | 34 | */ |
| 34 | - public function main($content, $conf) { |
|
| 35 | + public function main($content, $conf) |
|
| 36 | + { |
|
| 35 | 37 | |
| 36 | 38 | $this->init($conf); |
| 37 | 39 | |
@@ -108,7 +110,8 @@ discard block |
||
| 108 | 110 | * |
| 109 | 111 | * @return void |
| 110 | 112 | */ |
| 111 | - protected function addSearchInDocumentJS() { |
|
| 113 | + protected function addSearchInDocumentJS() |
|
| 114 | + { |
|
| 112 | 115 | $pageRenderer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class); |
| 113 | 116 | $pageRenderer->addJsFooterFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/toolbox/tools/searchindocument/tx_dlf_search_in_document.js'); |
| 114 | 117 | } |
@@ -120,7 +123,8 @@ discard block |
||
| 120 | 123 | * |
| 121 | 124 | * @return array with encrypted core name and hash |
| 122 | 125 | */ |
| 123 | - protected function getEncryptedCoreName() { |
|
| 126 | + protected function getEncryptedCoreName() |
|
| 127 | + { |
|
| 124 | 128 | // Get core name. |
| 125 | 129 | $name = tx_dlf_helper::getIndexName($this->conf['solrcore'], 'tx_dlf_solrcores'); |
| 126 | 130 | // Encrypt core name. |
@@ -17,7 +17,8 @@ discard block |
||
| 17 | 17 | * @subpackage tx_dlf |
| 18 | 18 | * @access public |
| 19 | 19 | */ |
| 20 | -class tx_dlf_search_in_document_eid extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin { |
|
| 20 | +class tx_dlf_search_in_document_eid extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin |
|
| 21 | +{ |
|
| 21 | 22 | |
| 22 | 23 | public $scriptRelPath = 'plugins/toolbox/tools/searchindocument/class.tx_dlf_search_in_document.php'; |
| 23 | 24 | |
@@ -31,7 +32,8 @@ discard block |
||
| 31 | 32 | * |
| 32 | 33 | * @return string JSON response of search suggestions |
| 33 | 34 | */ |
| 34 | - public function main($content = '', $conf = array ()) { |
|
| 35 | + public function main($content = '', $conf = array ()) |
|
| 36 | + { |
|
| 35 | 37 | |
| 36 | 38 | if (\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('encrypted') != '' && \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('hashed') != '') { |
| 37 | 39 | |
@@ -17,7 +17,8 @@ discard block |
||
| 17 | 17 | * @subpackage tx_dlf |
| 18 | 18 | * @access public |
| 19 | 19 | */ |
| 20 | -class tx_dlf_toolsImagedownload extends tx_dlf_plugin { |
|
| 20 | +class tx_dlf_toolsImagedownload extends tx_dlf_plugin |
|
| 21 | +{ |
|
| 21 | 22 | |
| 22 | 23 | public $scriptRelPath = 'plugins/toolbox/tools/imagedownload/class.tx_dlf_toolsImagedownload.php'; |
| 23 | 24 | |
@@ -31,7 +32,8 @@ discard block |
||
| 31 | 32 | * |
| 32 | 33 | * @return string The content that is displayed on the website |
| 33 | 34 | */ |
| 34 | - public function main($content, $conf) { |
|
| 35 | + public function main($content, $conf) |
|
| 36 | + { |
|
| 35 | 37 | |
| 36 | 38 | $this->init($conf); |
| 37 | 39 | |
@@ -106,7 +108,8 @@ discard block |
||
| 106 | 108 | * |
| 107 | 109 | * @return string linkt to image file with given label |
| 108 | 110 | */ |
| 109 | - protected function getImage($page, $label) { |
|
| 111 | + protected function getImage($page, $label) |
|
| 112 | + { |
|
| 110 | 113 | |
| 111 | 114 | $image = array (); |
| 112 | 115 | |
@@ -17,7 +17,8 @@ discard block |
||
| 17 | 17 | * @subpackage tx_dlf |
| 18 | 18 | * @access public |
| 19 | 19 | */ |
| 20 | -class tx_dlf_toolsImagemanipulation extends tx_dlf_plugin { |
|
| 20 | +class tx_dlf_toolsImagemanipulation extends tx_dlf_plugin |
|
| 21 | +{ |
|
| 21 | 22 | |
| 22 | 23 | public $scriptRelPath = 'plugins/toolbox/tools/imagemanipulation/class.tx_dlf_toolsImagemanipulation.php'; |
| 23 | 24 | |
@@ -31,7 +32,8 @@ discard block |
||
| 31 | 32 | * |
| 32 | 33 | * @return string The content that is displayed on the website |
| 33 | 34 | */ |
| 34 | - public function main($content, $conf) { |
|
| 35 | + public function main($content, $conf) |
|
| 36 | + { |
|
| 35 | 37 | |
| 36 | 38 | $this->init($conf); |
| 37 | 39 | |
@@ -17,7 +17,8 @@ discard block |
||
| 17 | 17 | * @subpackage tx_dlf |
| 18 | 18 | * @access public |
| 19 | 19 | */ |
| 20 | -class tx_dlf_toolbox extends tx_dlf_plugin { |
|
| 20 | +class tx_dlf_toolbox extends tx_dlf_plugin |
|
| 21 | +{ |
|
| 21 | 22 | |
| 22 | 23 | public $scriptRelPath = 'plugins/toolbox/class.tx_dlf_toolbox.php'; |
| 23 | 24 | |
@@ -31,7 +32,8 @@ discard block |
||
| 31 | 32 | * |
| 32 | 33 | * @return string The content that is displayed on the website |
| 33 | 34 | */ |
| 34 | - public function main($content, $conf) { |
|
| 35 | + public function main($content, $conf) |
|
| 36 | + { |
|
| 35 | 37 | |
| 36 | 38 | $this->init($conf); |
| 37 | 39 | |
@@ -18,7 +18,8 @@ discard block |
||
| 18 | 18 | * @subpackage tx_dlf |
| 19 | 19 | * @access public |
| 20 | 20 | */ |
| 21 | -class tx_dlf_metadata extends tx_dlf_plugin { |
|
| 21 | +class tx_dlf_metadata extends tx_dlf_plugin |
|
| 22 | +{ |
|
| 22 | 23 | |
| 23 | 24 | public $scriptRelPath = 'plugins/metadata/class.tx_dlf_metadata.php'; |
| 24 | 25 | |
@@ -40,7 +41,8 @@ discard block |
||
| 40 | 41 | * |
| 41 | 42 | * @return string The content that is displayed on the website |
| 42 | 43 | */ |
| 43 | - public function main($content, $conf) { |
|
| 44 | + public function main($content, $conf) |
|
| 45 | + { |
|
| 44 | 46 | |
| 45 | 47 | $this->init($conf); |
| 46 | 48 | |
@@ -190,7 +192,8 @@ discard block |
||
| 190 | 192 | * |
| 191 | 193 | * @return string The metadata array ready for output |
| 192 | 194 | */ |
| 193 | - protected function printMetadata(array $metadataArray) { |
|
| 195 | + protected function printMetadata(array $metadataArray) |
|
| 196 | + { |
|
| 194 | 197 | |
| 195 | 198 | // Load template file. |
| 196 | 199 | if (!empty($this->conf['templateFile'])) { |
@@ -18,7 +18,8 @@ discard block |
||
| 18 | 18 | * @subpackage tx_dlf |
| 19 | 19 | * @access public |
| 20 | 20 | */ |
| 21 | -class tx_dlf_newspaper extends tx_dlf_plugin { |
|
| 21 | +class tx_dlf_newspaper extends tx_dlf_plugin |
|
| 22 | +{ |
|
| 22 | 23 | |
| 23 | 24 | public $extKey = 'dlf'; |
| 24 | 25 | |
@@ -36,7 +37,8 @@ discard block |
||
| 36 | 37 | * |
| 37 | 38 | * @return string The content that is displayed on the website |
| 38 | 39 | */ |
| 39 | - public function main($content, $conf) { |
|
| 40 | + public function main($content, $conf) |
|
| 41 | + { |
|
| 40 | 42 | |
| 41 | 43 | // Nothing to do here. |
| 42 | 44 | return $content; |
@@ -53,7 +55,8 @@ discard block |
||
| 53 | 55 | * |
| 54 | 56 | * @return string The content that is displayed on the website |
| 55 | 57 | */ |
| 56 | - public function calendar($content, $conf) { |
|
| 58 | + public function calendar($content, $conf) |
|
| 59 | + { |
|
| 57 | 60 | |
| 58 | 61 | $this->init($conf); |
| 59 | 62 | |
@@ -210,7 +213,8 @@ discard block |
||
| 210 | 213 | * @param int $firstMonth - January - 1, February - 2, ..., December - 12 |
| 211 | 214 | * @param int $lastMonth - January - 1, February - 2, ..., December - 12 |
| 212 | 215 | */ |
| 213 | - private function getCalendarYear($calendarIssues, $year, $firstMonth = 1, $lastMonth = 12) { |
|
| 216 | + private function getCalendarYear($calendarIssues, $year, $firstMonth = 1, $lastMonth = 12) |
|
| 217 | + { |
|
| 214 | 218 | |
| 215 | 219 | // Get subpart templates. |
| 216 | 220 | $subparts['list'] = $this->cObj->getSubpart($this->template, '###ISSUELIST###'); |
@@ -370,7 +374,8 @@ discard block |
||
| 370 | 374 | * |
| 371 | 375 | * @return string The content that is displayed on the website |
| 372 | 376 | */ |
| 373 | - public function years($content, $conf) { |
|
| 377 | + public function years($content, $conf) |
|
| 378 | + { |
|
| 374 | 379 | |
| 375 | 380 | $this->init($conf); |
| 376 | 381 | |
@@ -18,7 +18,8 @@ discard block |
||
| 18 | 18 | * @subpackage tx_dlf |
| 19 | 19 | * @access public |
| 20 | 20 | */ |
| 21 | -class tx_dlf_pagegrid extends tx_dlf_plugin { |
|
| 21 | +class tx_dlf_pagegrid extends tx_dlf_plugin |
|
| 22 | +{ |
|
| 22 | 23 | |
| 23 | 24 | public $scriptRelPath = 'plugins/pagegrid/class.tx_dlf_pagegrid.php'; |
| 24 | 25 | |
@@ -32,7 +33,8 @@ discard block |
||
| 32 | 33 | * |
| 33 | 34 | * @return string The rendered entry ready for output |
| 34 | 35 | */ |
| 35 | - protected function getEntry($number, $template) { |
|
| 36 | + protected function getEntry($number, $template) |
|
| 37 | + { |
|
| 36 | 38 | |
| 37 | 39 | // Set current page if applicable. |
| 38 | 40 | if (!empty($this->piVars['page']) && $this->piVars['page'] == $number) { |
@@ -97,7 +99,8 @@ discard block |
||
| 97 | 99 | * |
| 98 | 100 | * @return string The rendered page browser ready for output |
| 99 | 101 | */ |
| 100 | - protected function getPageBrowser() { |
|
| 102 | + protected function getPageBrowser() |
|
| 103 | + { |
|
| 101 | 104 | |
| 102 | 105 | // Get overall number of pages. |
| 103 | 106 | $maxPages = intval(ceil($this->doc->numPages / $this->conf['limit'])); |
@@ -179,7 +182,8 @@ discard block |
||
| 179 | 182 | * |
| 180 | 183 | * @return string The content that is displayed on the website |
| 181 | 184 | */ |
| 182 | - public function main($content, $conf) { |
|
| 185 | + public function main($content, $conf) |
|
| 186 | + { |
|
| 183 | 187 | |
| 184 | 188 | $this->init($conf); |
| 185 | 189 | |