We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -17,7 +17,8 @@ discard block |
||
| 17 | 17 | * @subpackage tx_dlf |
| 18 | 18 | * @access public |
| 19 | 19 | */ |
| 20 | -class tx_dlf_navigation extends tx_dlf_plugin { |
|
| 20 | +class tx_dlf_navigation extends tx_dlf_plugin |
|
| 21 | +{ |
|
| 21 | 22 | |
| 22 | 23 | public $scriptRelPath = 'plugins/navigation/class.tx_dlf_navigation.php'; |
| 23 | 24 | |
@@ -28,7 +29,8 @@ discard block |
||
| 28 | 29 | * |
| 29 | 30 | * @return string Link to the list view ready to output |
| 30 | 31 | */ |
| 31 | - protected function getLinkToListview() { |
|
| 32 | + protected function getLinkToListview() |
|
| 33 | + { |
|
| 32 | 34 | |
| 33 | 35 | if (!empty($this->conf['targetPid'])) { |
| 34 | 36 | |
@@ -61,7 +63,8 @@ discard block |
||
| 61 | 63 | * |
| 62 | 64 | * @return string Page selector ready to output |
| 63 | 65 | */ |
| 64 | - protected function getPageSelector() { |
|
| 66 | + protected function getPageSelector() |
|
| 67 | + { |
|
| 65 | 68 | |
| 66 | 69 | // Configure @action URL for form. |
| 67 | 70 | $linkConf = array ( |
@@ -108,7 +111,8 @@ discard block |
||
| 108 | 111 | * |
| 109 | 112 | * @return string The content that is displayed on the website |
| 110 | 113 | */ |
| 111 | - public function main($content, $conf) { |
|
| 114 | + public function main($content, $conf) |
|
| 115 | + { |
|
| 112 | 116 | |
| 113 | 117 | $this->init($conf); |
| 114 | 118 | |
@@ -303,7 +307,8 @@ discard block |
||
| 303 | 307 | * |
| 304 | 308 | * @return string Typolink ready to output |
| 305 | 309 | */ |
| 306 | - protected function makeLink($label, array $overrulePIvars = array (), $aTagParams = '') { |
|
| 310 | + protected function makeLink($label, array $overrulePIvars = array (), $aTagParams = '') |
|
| 311 | + { |
|
| 307 | 312 | |
| 308 | 313 | // Merge plugin variables with new set of values. |
| 309 | 314 | if (is_array($this->piVars)) { |
@@ -17,7 +17,8 @@ discard block |
||
| 17 | 17 | * @subpackage tx_dlf |
| 18 | 18 | * @access public |
| 19 | 19 | */ |
| 20 | -class tx_dlf_statistics extends tx_dlf_plugin { |
|
| 20 | +class tx_dlf_statistics extends tx_dlf_plugin |
|
| 21 | +{ |
|
| 21 | 22 | |
| 22 | 23 | public $scriptRelPath = 'plugins/statistics/class.tx_dlf_statistics.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 | |
@@ -20,7 +20,8 @@ discard block |
||
| 20 | 20 | * @subpackage tx_dlf |
| 21 | 21 | * @access public |
| 22 | 22 | */ |
| 23 | -class tx_dlf_geturl_eid extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin { |
|
| 23 | +class tx_dlf_geturl_eid extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin |
|
| 24 | +{ |
|
| 24 | 25 | |
| 25 | 26 | /** |
| 26 | 27 | * |
@@ -38,7 +39,8 @@ discard block |
||
| 38 | 39 | * |
| 39 | 40 | * @return void |
| 40 | 41 | */ |
| 41 | - public function main($content = '', $conf = array ()) { |
|
| 42 | + public function main($content = '', $conf = array ()) |
|
| 43 | + { |
|
| 42 | 44 | |
| 43 | 45 | $this->cObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer'); |
| 44 | 46 | |
@@ -17,7 +17,8 @@ discard block |
||
| 17 | 17 | * @subpackage tx_dlf |
| 18 | 18 | * @access public |
| 19 | 19 | */ |
| 20 | -class tx_dlf_pageview extends tx_dlf_plugin { |
|
| 20 | +class tx_dlf_pageview extends tx_dlf_plugin |
|
| 21 | +{ |
|
| 21 | 22 | |
| 22 | 23 | public $scriptRelPath = 'plugins/pageview/class.tx_dlf_pageview.php'; |
| 23 | 24 | |
@@ -52,7 +53,8 @@ discard block |
||
| 52 | 53 | * |
| 53 | 54 | * @return string Viewer script tags ready for output |
| 54 | 55 | */ |
| 55 | - protected function addViewerJS() { |
|
| 56 | + protected function addViewerJS() |
|
| 57 | + { |
|
| 56 | 58 | |
| 57 | 59 | $output = array (); |
| 58 | 60 | |
@@ -107,7 +109,8 @@ discard block |
||
| 107 | 109 | * |
| 108 | 110 | * @return array Marker array |
| 109 | 111 | */ |
| 110 | - protected function addInteraction() { |
|
| 112 | + protected function addInteraction() |
|
| 113 | + { |
|
| 111 | 114 | |
| 112 | 115 | $markerArray = array (); |
| 113 | 116 | |
@@ -155,7 +158,8 @@ discard block |
||
| 155 | 158 | * |
| 156 | 159 | * @return array Marker array |
| 157 | 160 | */ |
| 158 | - protected function addBasketForm() { |
|
| 161 | + protected function addBasketForm() |
|
| 162 | + { |
|
| 159 | 163 | |
| 160 | 164 | $markerArray = array (); |
| 161 | 165 | |
@@ -232,7 +236,8 @@ discard block |
||
| 232 | 236 | * |
| 233 | 237 | * @return array URL and MIME type of image file |
| 234 | 238 | */ |
| 235 | - protected function getImage($page) { |
|
| 239 | + protected function getImage($page) |
|
| 240 | + { |
|
| 236 | 241 | |
| 237 | 242 | $image = array (); |
| 238 | 243 | |
@@ -285,7 +290,8 @@ discard block |
||
| 285 | 290 | * |
| 286 | 291 | * @return array URL and MIME type of fulltext file |
| 287 | 292 | */ |
| 288 | - protected function getFulltext($page) { |
|
| 293 | + protected function getFulltext($page) |
|
| 294 | + { |
|
| 289 | 295 | |
| 290 | 296 | $fulltext = array (); |
| 291 | 297 | |
@@ -328,7 +334,8 @@ discard block |
||
| 328 | 334 | * |
| 329 | 335 | * @return string The content that is displayed on the website |
| 330 | 336 | */ |
| 331 | - public function main($content, $conf) { |
|
| 337 | + public function main($content, $conf) |
|
| 338 | + { |
|
| 332 | 339 | |
| 333 | 340 | $this->init($conf); |
| 334 | 341 | |
@@ -17,7 +17,8 @@ discard block |
||
| 17 | 17 | * @subpackage tx_dlf |
| 18 | 18 | * @access public |
| 19 | 19 | */ |
| 20 | -class tx_dlf_validator extends tx_dlf_plugin { |
|
| 20 | +class tx_dlf_validator extends tx_dlf_plugin |
|
| 21 | +{ |
|
| 21 | 22 | |
| 22 | 23 | public $scriptRelPath = 'plugins/validator/class.tx_dlf_validator.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_toc extends tx_dlf_plugin { |
|
| 20 | +class tx_dlf_toc extends tx_dlf_plugin |
|
| 21 | +{ |
|
| 21 | 22 | |
| 22 | 23 | public $scriptRelPath = 'plugins/toc/class.tx_dlf_toc.php'; |
| 23 | 24 | |
@@ -39,7 +40,8 @@ discard block |
||
| 39 | 40 | * |
| 40 | 41 | * @return array HMENU array for menu entry |
| 41 | 42 | */ |
| 42 | - protected function getMenuEntry(array $entry, $recursive = FALSE) { |
|
| 43 | + protected function getMenuEntry(array $entry, $recursive = FALSE) |
|
| 44 | + { |
|
| 43 | 45 | |
| 44 | 46 | $entryArray = array (); |
| 45 | 47 | |
@@ -152,7 +154,8 @@ discard block |
||
| 152 | 154 | * |
| 153 | 155 | * @return string The content that is displayed on the website |
| 154 | 156 | */ |
| 155 | - public function main($content, $conf) { |
|
| 157 | + public function main($content, $conf) |
|
| 158 | + { |
|
| 156 | 159 | |
| 157 | 160 | $this->init($conf); |
| 158 | 161 | |
@@ -206,7 +209,8 @@ discard block |
||
| 206 | 209 | * |
| 207 | 210 | * @return array HMENU array |
| 208 | 211 | */ |
| 209 | - public function makeMenuArray($content, $conf) { |
|
| 212 | + public function makeMenuArray($content, $conf) |
|
| 213 | + { |
|
| 210 | 214 | |
| 211 | 215 | $this->init($conf); |
| 212 | 216 | |
@@ -17,7 +17,8 @@ discard block |
||
| 17 | 17 | * @subpackage tx_dlf |
| 18 | 18 | * @access public |
| 19 | 19 | */ |
| 20 | -class tx_dlf_feeds extends tx_dlf_plugin { |
|
| 20 | +class tx_dlf_feeds extends tx_dlf_plugin |
|
| 21 | +{ |
|
| 21 | 22 | |
| 22 | 23 | public $scriptRelPath = 'plugins/feeds/class.tx_dlf_feeds.php'; |
| 23 | 24 | |
@@ -31,7 +32,8 @@ discard block |
||
| 31 | 32 | * |
| 32 | 33 | * @return void |
| 33 | 34 | */ |
| 34 | - public function main($content, $conf) { |
|
| 35 | + public function main($content, $conf) |
|
| 36 | + { |
|
| 35 | 37 | |
| 36 | 38 | $this->init($conf); |
| 37 | 39 | |
@@ -19,7 +19,8 @@ discard block |
||
| 19 | 19 | * @subpackage tx_dlf |
| 20 | 20 | * @access public |
| 21 | 21 | */ |
| 22 | -class tx_dlf_listview extends tx_dlf_plugin { |
|
| 22 | +class tx_dlf_listview extends tx_dlf_plugin |
|
| 23 | +{ |
|
| 23 | 24 | |
| 24 | 25 | public $scriptRelPath = 'plugins/listview/class.tx_dlf_listview.php'; |
| 25 | 26 | |
@@ -62,7 +63,8 @@ discard block |
||
| 62 | 63 | * |
| 63 | 64 | * @return string The rendered page browser ready for output |
| 64 | 65 | */ |
| 65 | - protected function getPageBrowser() { |
|
| 66 | + protected function getPageBrowser() |
|
| 67 | + { |
|
| 66 | 68 | |
| 67 | 69 | // Get overall number of pages. |
| 68 | 70 | $maxPages = intval(ceil($this->list->metadata['options']['numberOfToplevelHits'] / $this->conf['limit'])); |
@@ -146,7 +148,8 @@ discard block |
||
| 146 | 148 | * |
| 147 | 149 | * @return string The rendered entry ready for output |
| 148 | 150 | */ |
| 149 | - protected function getEntry($number, $template) { |
|
| 151 | + protected function getEntry($number, $template) |
|
| 152 | + { |
|
| 150 | 153 | |
| 151 | 154 | $markerArray['###NUMBER###'] = $number + 1; |
| 152 | 155 | |
@@ -314,7 +317,8 @@ discard block |
||
| 314 | 317 | * |
| 315 | 318 | * @return array The parsed fieldwrap |
| 316 | 319 | */ |
| 317 | - private function getFieldWrap($index_name, $wrap) { |
|
| 320 | + private function getFieldWrap($index_name, $wrap) |
|
| 321 | + { |
|
| 318 | 322 | |
| 319 | 323 | if (isset($this->fieldwrap[$index_name])) { |
| 320 | 324 | |
@@ -335,7 +339,8 @@ discard block |
||
| 335 | 339 | * |
| 336 | 340 | * @return string The rendered sorting dialog ready for output |
| 337 | 341 | */ |
| 338 | - protected function getSortingForm() { |
|
| 342 | + protected function getSortingForm() |
|
| 343 | + { |
|
| 339 | 344 | |
| 340 | 345 | // Return nothing if there are no sortable metadata fields. |
| 341 | 346 | if (!count($this->sortables)) { |
@@ -416,7 +421,8 @@ discard block |
||
| 416 | 421 | * |
| 417 | 422 | * @return string The rendered entries ready for output |
| 418 | 423 | */ |
| 419 | - protected function getSubEntries($number, $template) { |
|
| 424 | + protected function getSubEntries($number, $template) |
|
| 425 | + { |
|
| 420 | 426 | |
| 421 | 427 | $content = ''; |
| 422 | 428 | |
@@ -590,7 +596,8 @@ discard block |
||
| 590 | 596 | * |
| 591 | 597 | * @return void |
| 592 | 598 | */ |
| 593 | - protected function loadConfig() { |
|
| 599 | + protected function loadConfig() |
|
| 600 | + { |
|
| 594 | 601 | |
| 595 | 602 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 596 | 603 | 'tx_dlf_metadata.index_name AS index_name,tx_dlf_metadata.wrap AS wrap,tx_dlf_metadata.is_listed AS is_listed,tx_dlf_metadata.is_sortable AS is_sortable', |
@@ -632,7 +639,8 @@ discard block |
||
| 632 | 639 | * |
| 633 | 640 | * @return string The content that is displayed on the website |
| 634 | 641 | */ |
| 635 | - public function main($content, $conf) { |
|
| 642 | + public function main($content, $conf) |
|
| 643 | + { |
|
| 636 | 644 | |
| 637 | 645 | $this->init($conf); |
| 638 | 646 | |
@@ -17,7 +17,8 @@ discard block |
||
| 17 | 17 | * @subpackage tx_dlf |
| 18 | 18 | * @access public |
| 19 | 19 | */ |
| 20 | -class tx_dlf_tceforms { |
|
| 20 | +class tx_dlf_tceforms |
|
| 21 | +{ |
|
| 21 | 22 | |
| 22 | 23 | /** |
| 23 | 24 | * Helper to display document's thumbnail for table "tx_dlf_documents" |
@@ -29,7 +30,8 @@ discard block |
||
| 29 | 30 | * |
| 30 | 31 | * @return string HTML <img> tag for thumbnail |
| 31 | 32 | */ |
| 32 | - public function displayThumbnail(&$params, &$pObj) { |
|
| 33 | + public function displayThumbnail(&$params, &$pObj) |
|
| 34 | + { |
|
| 33 | 35 | |
| 34 | 36 | $output = '<div style="padding:5px; background-color:#000000;">'; |
| 35 | 37 | |
@@ -58,7 +60,8 @@ discard block |
||
| 58 | 60 | * |
| 59 | 61 | * @return void |
| 60 | 62 | */ |
| 61 | - public function itemsProcFunc_collectionList(&$params, &$pObj) { |
|
| 63 | + public function itemsProcFunc_collectionList(&$params, &$pObj) |
|
| 64 | + { |
|
| 62 | 65 | |
| 63 | 66 | // the access to pi_flexform data has changed in TYPO3 7.6 |
| 64 | 67 | if (version_compare(TYPO3_version, '7.6', '<')) { |
@@ -126,7 +129,8 @@ discard block |
||
| 126 | 129 | * |
| 127 | 130 | * @return void |
| 128 | 131 | */ |
| 129 | - public function itemsProcFunc_extendedSearchList(&$params, &$pObj) { |
|
| 132 | + public function itemsProcFunc_extendedSearchList(&$params, &$pObj) |
|
| 133 | + { |
|
| 130 | 134 | |
| 131 | 135 | // the access to pi_flexform data has changed in TYPO3 7.6 |
| 132 | 136 | if (version_compare(TYPO3_version, '7.6', '<')) { |
@@ -194,7 +198,8 @@ discard block |
||
| 194 | 198 | * |
| 195 | 199 | * @return void |
| 196 | 200 | */ |
| 197 | - public function itemsProcFunc_facetsList(&$params, &$pObj) { |
|
| 201 | + public function itemsProcFunc_facetsList(&$params, &$pObj) |
|
| 202 | + { |
|
| 198 | 203 | |
| 199 | 204 | // the access to pi_flexform data has changed in TYPO3 7.6 |
| 200 | 205 | if (version_compare(TYPO3_version, '7.6', '<')) { |
@@ -262,7 +267,8 @@ discard block |
||
| 262 | 267 | * |
| 263 | 268 | * @return void |
| 264 | 269 | */ |
| 265 | - public function itemsProcFunc_libraryList(&$params, &$pObj) { |
|
| 270 | + public function itemsProcFunc_libraryList(&$params, &$pObj) |
|
| 271 | + { |
|
| 266 | 272 | |
| 267 | 273 | // the access to pi_flexform data has changed in TYPO3 7.6 |
| 268 | 274 | if (version_compare(TYPO3_version, '7.6', '<')) { |
@@ -330,7 +336,8 @@ discard block |
||
| 330 | 336 | * |
| 331 | 337 | * @return void |
| 332 | 338 | */ |
| 333 | - public function itemsProcFunc_solrList(&$params, &$pObj) { |
|
| 339 | + public function itemsProcFunc_solrList(&$params, &$pObj) |
|
| 340 | + { |
|
| 334 | 341 | |
| 335 | 342 | // the access to pi_flexform data has changed in TYPO3 7.6 |
| 336 | 343 | if (version_compare(TYPO3_version, '7.6', '<')) { |
@@ -398,7 +405,8 @@ discard block |
||
| 398 | 405 | * |
| 399 | 406 | * @return void |
| 400 | 407 | */ |
| 401 | - public function itemsProcFunc_toolList(&$params, &$pObj) { |
|
| 408 | + public function itemsProcFunc_toolList(&$params, &$pObj) |
|
| 409 | + { |
|
| 402 | 410 | |
| 403 | 411 | foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/plugins/toolbox/tools'] as $class => $label) { |
| 404 | 412 | |