@@ -30,8 +30,7 @@ discard block |
||
| 30 | 30 | * @subpackage dlf |
| 31 | 31 | * @access public |
| 32 | 32 | */ |
| 33 | -class UserFunc implements LoggerAwareInterface |
|
| 34 | -{ |
|
| 33 | +class UserFunc implements LoggerAwareInterface { |
|
| 35 | 34 | use LoggerAwareTrait; |
| 36 | 35 | |
| 37 | 36 | /** |
@@ -53,8 +52,7 @@ discard block |
||
| 53 | 52 | * |
| 54 | 53 | * @return string HTML <img> tag for thumbnail |
| 55 | 54 | */ |
| 56 | - public function displayThumbnail(&$params) |
|
| 57 | - { |
|
| 55 | + public function displayThumbnail(&$params) { |
|
| 58 | 56 | // Simulate TCA field type "passthrough". |
| 59 | 57 | $output = '<input type="hidden" name="' . $params['itemFormElName'] . '" value="' . $params['itemFormElValue'] . '" />'; |
| 60 | 58 | if (!empty($params['itemFormElValue'])) { |
@@ -28,8 +28,7 @@ discard block |
||
| 28 | 28 | * @subpackage dlf |
| 29 | 29 | * @access public |
| 30 | 30 | */ |
| 31 | -class ConfigurationForm |
|
| 32 | -{ |
|
| 31 | +class ConfigurationForm { |
|
| 33 | 32 | /** |
| 34 | 33 | * This holds the current configuration |
| 35 | 34 | * |
@@ -45,8 +44,7 @@ discard block |
||
| 45 | 44 | * |
| 46 | 45 | * @return string Message informing the user of success or failure |
| 47 | 46 | */ |
| 48 | - public function checkSolrConnection() |
|
| 49 | - { |
|
| 47 | + public function checkSolrConnection() { |
|
| 50 | 48 | $solr = Solr::getInstance(); |
| 51 | 49 | if ($solr->ready) { |
| 52 | 50 | Helper::addMessage( |
@@ -71,8 +69,7 @@ discard block |
||
| 71 | 69 | * |
| 72 | 70 | * @return string Message informing the user of success or failure |
| 73 | 71 | */ |
| 74 | - public function checkMetadataFormats() |
|
| 75 | - { |
|
| 72 | + public function checkMetadataFormats() { |
|
| 76 | 73 | // We need to do some bootstrapping manually as of TYPO3 9. |
| 77 | 74 | // Load table configuration array into $GLOBALS['TCA']. |
| 78 | 75 | ExtensionManagementUtility::loadBaseTca(false); |
@@ -201,8 +198,7 @@ discard block |
||
| 201 | 198 | * |
| 202 | 199 | * @return void |
| 203 | 200 | */ |
| 204 | - public function __construct() |
|
| 205 | - { |
|
| 201 | + public function __construct() { |
|
| 206 | 202 | // Load localization file. |
| 207 | 203 | $GLOBALS['LANG']->includeLLFile('EXT:dlf/Resources/Private/Language/FlashMessages.xml'); |
| 208 | 204 | // Get current configuration. |
@@ -29,8 +29,7 @@ discard block |
||
| 29 | 29 | * @access public |
| 30 | 30 | * @abstract |
| 31 | 31 | */ |
| 32 | -abstract class AbstractPlugin extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin implements LoggerAwareInterface |
|
| 33 | -{ |
|
| 32 | +abstract class AbstractPlugin extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin implements LoggerAwareInterface { |
|
| 34 | 33 | use LoggerAwareTrait; |
| 35 | 34 | |
| 36 | 35 | public $extKey = 'dlf'; |
@@ -73,8 +72,7 @@ discard block |
||
| 73 | 72 | * |
| 74 | 73 | * @return void |
| 75 | 74 | */ |
| 76 | - protected function getTemplate($part = '###TEMPLATE###') |
|
| 77 | - { |
|
| 75 | + protected function getTemplate($part = '###TEMPLATE###') { |
|
| 78 | 76 | $this->templateService = GeneralUtility::makeInstance(MarkerBasedTemplateService::class); |
| 79 | 77 | if (!empty($this->conf['templateFile'])) { |
| 80 | 78 | // Load template file from configuration. |
@@ -98,8 +96,7 @@ discard block |
||
| 98 | 96 | * |
| 99 | 97 | * @return void |
| 100 | 98 | */ |
| 101 | - protected function init(array $conf) |
|
| 102 | - { |
|
| 99 | + protected function init(array $conf) { |
|
| 103 | 100 | // Read FlexForm configuration. |
| 104 | 101 | $flexFormConf = []; |
| 105 | 102 | $this->cObj->readFlexformIntoConf($this->cObj->data['pi_flexform'], $flexFormConf); |
@@ -137,8 +134,7 @@ discard block |
||
| 137 | 134 | * |
| 138 | 135 | * @return void |
| 139 | 136 | */ |
| 140 | - protected function loadDocument() |
|
| 141 | - { |
|
| 137 | + protected function loadDocument() { |
|
| 142 | 138 | // Check for required variable. |
| 143 | 139 | if ( |
| 144 | 140 | !empty($this->piVars['id']) |
@@ -209,8 +205,7 @@ discard block |
||
| 209 | 205 | * |
| 210 | 206 | * @return array The resulting typoscript array |
| 211 | 207 | */ |
| 212 | - protected function parseTS($string = '') |
|
| 213 | - { |
|
| 208 | + protected function parseTS($string = '') { |
|
| 214 | 209 | $parser = GeneralUtility::makeInstance(\TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser::class); |
| 215 | 210 | $parser->parse($string); |
| 216 | 211 | return $parser->setup; |
@@ -229,8 +224,7 @@ discard block |
||
| 229 | 224 | * |
| 230 | 225 | * @return string The input string wrapped in <a> tags |
| 231 | 226 | */ |
| 232 | - public function pi_linkTP($str, $urlParameters = [], $cache = false, $altPageId = 0) |
|
| 233 | - { |
|
| 227 | + public function pi_linkTP($str, $urlParameters = [], $cache = false, $altPageId = 0) { |
|
| 234 | 228 | $conf = []; |
| 235 | 229 | if (!$cache) { |
| 236 | 230 | $conf['no_cache'] = true; |
@@ -253,8 +247,7 @@ discard block |
||
| 253 | 247 | * |
| 254 | 248 | * @return string HTML content wrapped, ready to return to the parent object. |
| 255 | 249 | */ |
| 256 | - public function pi_wrapInBaseClass($content) |
|
| 257 | - { |
|
| 250 | + public function pi_wrapInBaseClass($content) { |
|
| 258 | 251 | if (!$this->frontendController->config['config']['disableWrapInBaseClass']) { |
| 259 | 252 | // Use class name instead of $this->prefixId for content wrapping because $this->prefixId is the same for all plugins. |
| 260 | 253 | $content = '<div class="tx-dlf-' . strtolower(Helper::getUnqualifiedClassName(get_class($this))) . '">' . $content . '</div>'; |
@@ -274,8 +267,7 @@ discard block |
||
| 274 | 267 | * |
| 275 | 268 | * @return void |
| 276 | 269 | */ |
| 277 | - protected function setCache($cache = true) |
|
| 278 | - { |
|
| 270 | + protected function setCache($cache = true) { |
|
| 279 | 271 | if ($cache) { |
| 280 | 272 | // Set cObject type to "USER" (default). |
| 281 | 273 | $this->pi_USER_INT_obj = false; |