We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -21,8 +21,7 @@ |
||
| 21 | 21 | * @access public |
| 22 | 22 | * @abstract |
| 23 | 23 | */ |
| 24 | -interface FulltextInterface |
|
| 25 | -{ |
|
| 24 | +interface FulltextInterface { |
|
| 26 | 25 | /** |
| 27 | 26 | * This extracts raw fulltext data from XML |
| 28 | 27 | * |
@@ -97,8 +97,7 @@ discard block |
||
| 97 | 97 | * |
| 98 | 98 | * @return void |
| 99 | 99 | */ |
| 100 | - public function add(array $elements, $position = -1) |
|
| 101 | - { |
|
| 100 | + public function add(array $elements, $position = -1) { |
|
| 102 | 101 | $position = MathUtility::forceIntegerInRange($position, 0, $this->count, $this->count); |
| 103 | 102 | if (!empty($elements)) { |
| 104 | 103 | array_splice($this->elements, $position, 0, $elements); |
@@ -114,8 +113,7 @@ discard block |
||
| 114 | 113 | * |
| 115 | 114 | * @return integer The number of elements in the list |
| 116 | 115 | */ |
| 117 | - public function count() |
|
| 118 | - { |
|
| 116 | + public function count() { |
|
| 119 | 117 | return $this->count; |
| 120 | 118 | } |
| 121 | 119 | |
@@ -127,8 +125,7 @@ discard block |
||
| 127 | 125 | * |
| 128 | 126 | * @return array The current element |
| 129 | 127 | */ |
| 130 | - public function current() |
|
| 131 | - { |
|
| 128 | + public function current() { |
|
| 132 | 129 | if ($this->valid()) { |
| 133 | 130 | return $this->getRecord($this->elements[$this->position]); |
| 134 | 131 | } else { |
@@ -146,8 +143,7 @@ discard block |
||
| 146 | 143 | * |
| 147 | 144 | * @return mixed The element's full record |
| 148 | 145 | */ |
| 149 | - protected function getRecord($element) |
|
| 150 | - { |
|
| 146 | + protected function getRecord($element) { |
|
| 151 | 147 | if ( |
| 152 | 148 | is_array($element) |
| 153 | 149 | && array_keys($element) == ['u', 'h', 's', 'p'] |
@@ -319,8 +315,7 @@ discard block |
||
| 319 | 315 | * |
| 320 | 316 | * @return integer The current position |
| 321 | 317 | */ |
| 322 | - public function key() |
|
| 323 | - { |
|
| 318 | + public function key() { |
|
| 324 | 319 | return $this->position; |
| 325 | 320 | } |
| 326 | 321 | |
@@ -334,8 +329,7 @@ discard block |
||
| 334 | 329 | * |
| 335 | 330 | * @return void |
| 336 | 331 | */ |
| 337 | - public function move($position, $steps) |
|
| 338 | - { |
|
| 332 | + public function move($position, $steps) { |
|
| 339 | 333 | $position = intval($position); |
| 340 | 334 | // Check if list position is valid. |
| 341 | 335 | if ( |
@@ -366,8 +360,7 @@ discard block |
||
| 366 | 360 | * |
| 367 | 361 | * @return void |
| 368 | 362 | */ |
| 369 | - public function moveUp($position) |
|
| 370 | - { |
|
| 363 | + public function moveUp($position) { |
|
| 371 | 364 | $this->move($position, -1); |
| 372 | 365 | } |
| 373 | 366 | |
@@ -380,8 +373,7 @@ discard block |
||
| 380 | 373 | * |
| 381 | 374 | * @return void |
| 382 | 375 | */ |
| 383 | - public function moveDown($position) |
|
| 384 | - { |
|
| 376 | + public function moveDown($position) { |
|
| 385 | 377 | $this->move($position, 1); |
| 386 | 378 | } |
| 387 | 379 | |
@@ -393,8 +385,7 @@ discard block |
||
| 393 | 385 | * |
| 394 | 386 | * @return void |
| 395 | 387 | */ |
| 396 | - public function next() |
|
| 397 | - { |
|
| 388 | + public function next() { |
|
| 398 | 389 | $this->position++; |
| 399 | 390 | } |
| 400 | 391 | |
@@ -408,8 +399,7 @@ discard block |
||
| 408 | 399 | * |
| 409 | 400 | * @return boolean Does the given offset exist? |
| 410 | 401 | */ |
| 411 | - public function offsetExists($offset) |
|
| 412 | - { |
|
| 402 | + public function offsetExists($offset) { |
|
| 413 | 403 | return isset($this->elements[$offset]); |
| 414 | 404 | } |
| 415 | 405 | |
@@ -423,8 +413,7 @@ discard block |
||
| 423 | 413 | * |
| 424 | 414 | * @return array The element at the given offset |
| 425 | 415 | */ |
| 426 | - public function offsetGet($offset) |
|
| 427 | - { |
|
| 416 | + public function offsetGet($offset) { |
|
| 428 | 417 | if ($this->offsetExists($offset)) { |
| 429 | 418 | return $this->getRecord($this->elements[$offset]); |
| 430 | 419 | } else { |
@@ -444,8 +433,7 @@ discard block |
||
| 444 | 433 | * |
| 445 | 434 | * @return void |
| 446 | 435 | */ |
| 447 | - public function offsetSet($offset, $value) |
|
| 448 | - { |
|
| 436 | + public function offsetSet($offset, $value) { |
|
| 449 | 437 | if (\TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($offset)) { |
| 450 | 438 | $this->elements[$offset] = $value; |
| 451 | 439 | } else { |
@@ -465,8 +453,7 @@ discard block |
||
| 465 | 453 | * |
| 466 | 454 | * @return array The removed element |
| 467 | 455 | */ |
| 468 | - public function remove($position) |
|
| 469 | - { |
|
| 456 | + public function remove($position) { |
|
| 470 | 457 | $position = intval($position); |
| 471 | 458 | if ( |
| 472 | 459 | $position < 0 |
@@ -490,8 +477,7 @@ discard block |
||
| 490 | 477 | * |
| 491 | 478 | * @return array The indizes of the removed elements |
| 492 | 479 | */ |
| 493 | - public function removeRange($position, $length) |
|
| 494 | - { |
|
| 480 | + public function removeRange($position, $length) { |
|
| 495 | 481 | $position = intval($position); |
| 496 | 482 | if ( |
| 497 | 483 | $position < 0 |
@@ -512,8 +498,7 @@ discard block |
||
| 512 | 498 | * |
| 513 | 499 | * @return void |
| 514 | 500 | */ |
| 515 | - public function reset() |
|
| 516 | - { |
|
| 501 | + public function reset() { |
|
| 517 | 502 | $this->elements = []; |
| 518 | 503 | $this->records = []; |
| 519 | 504 | $this->metadata = []; |
@@ -529,8 +514,7 @@ discard block |
||
| 529 | 514 | * |
| 530 | 515 | * @return void |
| 531 | 516 | */ |
| 532 | - public function rewind() |
|
| 533 | - { |
|
| 517 | + public function rewind() { |
|
| 534 | 518 | $this->position = 0; |
| 535 | 519 | } |
| 536 | 520 | |
@@ -543,8 +527,7 @@ discard block |
||
| 543 | 527 | * |
| 544 | 528 | * @return void |
| 545 | 529 | */ |
| 546 | - public function save($pid = 0) |
|
| 547 | - { |
|
| 530 | + public function save($pid = 0) { |
|
| 548 | 531 | $pid = max(intval($pid), 0); |
| 549 | 532 | // If no PID is given, save to the user's session instead |
| 550 | 533 | if ($pid > 0) { |
@@ -561,8 +544,7 @@ discard block |
||
| 561 | 544 | * |
| 562 | 545 | * @return boolean TRUE on success or FALSE on failure |
| 563 | 546 | */ |
| 564 | - protected function solrConnect() |
|
| 565 | - { |
|
| 547 | + protected function solrConnect() { |
|
| 566 | 548 | // Get Solr instance. |
| 567 | 549 | if (!$this->solr) { |
| 568 | 550 | // Connect to Solr server. |
@@ -609,8 +591,7 @@ discard block |
||
| 609 | 591 | * |
| 610 | 592 | * @return void |
| 611 | 593 | */ |
| 612 | - public function sort($by, $asc = TRUE) |
|
| 613 | - { |
|
| 594 | + public function sort($by, $asc = TRUE) { |
|
| 614 | 595 | $newOrder = []; |
| 615 | 596 | $nonSortable = []; |
| 616 | 597 | foreach ($this->elements as $num => $element) { |
@@ -647,8 +628,7 @@ discard block |
||
| 647 | 628 | * |
| 648 | 629 | * @return void |
| 649 | 630 | */ |
| 650 | - public function offsetUnset($offset) |
|
| 651 | - { |
|
| 631 | + public function offsetUnset($offset) { |
|
| 652 | 632 | unset($this->elements[$offset]); |
| 653 | 633 | // Re-number the elements. |
| 654 | 634 | $this->elements = array_values($this->elements); |
@@ -663,8 +643,7 @@ discard block |
||
| 663 | 643 | * |
| 664 | 644 | * @return boolean Is the current list position valid? |
| 665 | 645 | */ |
| 666 | - public function valid() |
|
| 667 | - { |
|
| 646 | + public function valid() { |
|
| 668 | 647 | return isset($this->elements[$this->position]); |
| 669 | 648 | } |
| 670 | 649 | |
@@ -675,8 +654,7 @@ discard block |
||
| 675 | 654 | * |
| 676 | 655 | * @return array The list's metadata |
| 677 | 656 | */ |
| 678 | - protected function _getMetadata() |
|
| 679 | - { |
|
| 657 | + protected function _getMetadata() { |
|
| 680 | 658 | return $this->metadata; |
| 681 | 659 | } |
| 682 | 660 | |
@@ -689,8 +667,7 @@ discard block |
||
| 689 | 667 | * |
| 690 | 668 | * @return void |
| 691 | 669 | */ |
| 692 | - protected function _setMetadata(array $metadata = []) |
|
| 693 | - { |
|
| 670 | + protected function _setMetadata(array $metadata = []) { |
|
| 694 | 671 | $this->metadata = $metadata; |
| 695 | 672 | } |
| 696 | 673 | |
@@ -704,8 +681,7 @@ discard block |
||
| 704 | 681 | * |
| 705 | 682 | * @return void |
| 706 | 683 | */ |
| 707 | - public function __construct(array $elements = [], array $metadata = []) |
|
| 708 | - { |
|
| 684 | + public function __construct(array $elements = [], array $metadata = []) { |
|
| 709 | 685 | if ( |
| 710 | 686 | empty($elements) |
| 711 | 687 | && empty($metadata) |
@@ -750,8 +726,7 @@ discard block |
||
| 750 | 726 | * |
| 751 | 727 | * @return mixed Value of $this->$var |
| 752 | 728 | */ |
| 753 | - public function __get($var) |
|
| 754 | - { |
|
| 729 | + public function __get($var) { |
|
| 755 | 730 | $method = '_get' . ucfirst($var); |
| 756 | 731 | if ( |
| 757 | 732 | !property_exists($this, $var) |
@@ -774,8 +749,7 @@ discard block |
||
| 774 | 749 | * |
| 775 | 750 | * @return void |
| 776 | 751 | */ |
| 777 | - public function __set($var, $value) |
|
| 778 | - { |
|
| 752 | + public function __set($var, $value) { |
|
| 779 | 753 | $method = '_set' . ucfirst($var); |
| 780 | 754 | if ( |
| 781 | 755 | !property_exists($this, $var) |
@@ -795,8 +769,7 @@ discard block |
||
| 795 | 769 | * |
| 796 | 770 | * @return array Properties to be serialized |
| 797 | 771 | */ |
| 798 | - public function __sleep() |
|
| 799 | - { |
|
| 772 | + public function __sleep() { |
|
| 800 | 773 | return ['elements', 'metadata']; |
| 801 | 774 | } |
| 802 | 775 | |
@@ -808,8 +781,7 @@ discard block |
||
| 808 | 781 | * |
| 809 | 782 | * @return void |
| 810 | 783 | */ |
| 811 | - public function __wakeup() |
|
| 812 | - { |
|
| 784 | + public function __wakeup() { |
|
| 813 | 785 | $this->count = count($this->elements); |
| 814 | 786 | } |
| 815 | 787 | } |
@@ -21,8 +21,7 @@ discard block |
||
| 21 | 21 | * @access public |
| 22 | 22 | * @abstract |
| 23 | 23 | */ |
| 24 | -abstract class AbstractModule extends \TYPO3\CMS\Backend\Module\BaseScriptClass |
|
| 25 | -{ |
|
| 24 | +abstract class AbstractModule extends \TYPO3\CMS\Backend\Module\BaseScriptClass { |
|
| 26 | 25 | public $extKey = 'dlf'; |
| 27 | 26 | public $prefixId = 'tx_dlf'; |
| 28 | 27 | |
@@ -95,8 +94,7 @@ discard block |
||
| 95 | 94 | * |
| 96 | 95 | * @return void |
| 97 | 96 | */ |
| 98 | - protected function printContent() |
|
| 99 | - { |
|
| 97 | + protected function printContent() { |
|
| 100 | 98 | $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class); |
| 101 | 99 | $this->doc->setModuleTemplate('EXT:' . $this->extKey . '/Resources/Private/Templates/' . Helper::getUnqualifiedClassName(get_class($this)) . '.tmpl'); |
| 102 | 100 | $this->doc->backPath = $GLOBALS['BACK_PATH']; |
@@ -127,8 +125,7 @@ discard block |
||
| 127 | 125 | * |
| 128 | 126 | * @return void |
| 129 | 127 | */ |
| 130 | - public function __construct() |
|
| 131 | - { |
|
| 128 | + public function __construct() { |
|
| 132 | 129 | $GLOBALS['LANG']->includeLLFile('EXT:' . $this->extKey . '/Resources/Private/Language/' . Helper::getUnqualifiedClassName(get_class($this)) . '.xml'); |
| 133 | 130 | $this->conf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$this->extKey]); |
| 134 | 131 | $this->data = \TYPO3\CMS\Core\Utility\GeneralUtility::_GPmerged($this->prefixId); |
@@ -26,8 +26,7 @@ discard block |
||
| 26 | 26 | * @access public |
| 27 | 27 | * @abstract |
| 28 | 28 | */ |
| 29 | -abstract class AbstractPlugin extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin |
|
| 30 | -{ |
|
| 29 | +abstract class AbstractPlugin extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin { |
|
| 31 | 30 | public $extKey = 'dlf'; |
| 32 | 31 | public $prefixId = 'tx_dlf'; |
| 33 | 32 | public $scriptRelPath = 'Classes/Common/AbstractPlugin.php'; |
@@ -68,8 +67,7 @@ discard block |
||
| 68 | 67 | * |
| 69 | 68 | * @return void |
| 70 | 69 | */ |
| 71 | - protected function getTemplate($part = '###TEMPLATE###') |
|
| 72 | - { |
|
| 70 | + protected function getTemplate($part = '###TEMPLATE###') { |
|
| 73 | 71 | $this->templateService = GeneralUtility::makeInstance(MarkerBasedTemplateService::class); |
| 74 | 72 | if (!empty($this->conf['templateFile'])) { |
| 75 | 73 | // Load template file from configuration. |
@@ -91,8 +89,7 @@ discard block |
||
| 91 | 89 | * |
| 92 | 90 | * @return void |
| 93 | 91 | */ |
| 94 | - protected function init(array $conf) |
|
| 95 | - { |
|
| 92 | + protected function init(array $conf) { |
|
| 96 | 93 | // Read FlexForm configuration. |
| 97 | 94 | $flexFormConf = []; |
| 98 | 95 | $this->cObj->readFlexformIntoConf($this->cObj->data['pi_flexform'], $flexFormConf); |
@@ -133,8 +130,7 @@ discard block |
||
| 133 | 130 | * |
| 134 | 131 | * @return void |
| 135 | 132 | */ |
| 136 | - protected function loadDocument() |
|
| 137 | - { |
|
| 133 | + protected function loadDocument() { |
|
| 138 | 134 | // Check for required variable. |
| 139 | 135 | if ( |
| 140 | 136 | !empty($this->piVars['id']) |
@@ -206,8 +202,7 @@ discard block |
||
| 206 | 202 | * |
| 207 | 203 | * @return string HTML content wrapped, ready to return to the parent object. |
| 208 | 204 | */ |
| 209 | - public function pi_wrapInBaseClass($content) |
|
| 210 | - { |
|
| 205 | + public function pi_wrapInBaseClass($content) { |
|
| 211 | 206 | if (!$GLOBALS['TSFE']->config['config']['disableWrapInBaseClass']) { |
| 212 | 207 | // Use class name instead of $this->prefixId for content wrapping because $this->prefixId is the same for all plugins. |
| 213 | 208 | $content = '<div class="tx-dlf-' . Helper::getUnqualifiedClassName(get_class($this)) . '">' . $content . '</div>'; |
@@ -227,8 +222,7 @@ discard block |
||
| 227 | 222 | * |
| 228 | 223 | * @return array The resulting typoscript array |
| 229 | 224 | */ |
| 230 | - protected function parseTS($string = '') |
|
| 231 | - { |
|
| 225 | + protected function parseTS($string = '') { |
|
| 232 | 226 | $parser = GeneralUtility::makeInstance(\TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser::class); |
| 233 | 227 | $parser->parse($string); |
| 234 | 228 | return $parser->setup; |
@@ -243,8 +237,7 @@ discard block |
||
| 243 | 237 | * |
| 244 | 238 | * @return void |
| 245 | 239 | */ |
| 246 | - protected function setCache($cache = TRUE) |
|
| 247 | - { |
|
| 240 | + protected function setCache($cache = TRUE) { |
|
| 248 | 241 | if ($cache) { |
| 249 | 242 | // Set cObject type to "USER" (default). |
| 250 | 243 | $this->pi_USER_INT_obj = FALSE; |
@@ -25,8 +25,7 @@ discard block |
||
| 25 | 25 | * @subpackage dlf |
| 26 | 26 | * @access public |
| 27 | 27 | */ |
| 28 | -class NewTenant extends \Kitodo\Dlf\Common\AbstractModule |
|
| 29 | -{ |
|
| 28 | +class NewTenant extends \Kitodo\Dlf\Common\AbstractModule { |
|
| 30 | 29 | protected $markerArray = [ |
| 31 | 30 | 'CSH' => '', |
| 32 | 31 | 'MOD_MENU' => '', |
@@ -40,8 +39,7 @@ discard block |
||
| 40 | 39 | * |
| 41 | 40 | * @return void |
| 42 | 41 | */ |
| 43 | - protected function cmdAddMetadata() |
|
| 44 | - { |
|
| 42 | + protected function cmdAddMetadata() { |
|
| 45 | 43 | // Include metadata definition file. |
| 46 | 44 | include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($this->extKey) . 'Resources/Private/Data/MetadataDefaults.php'); |
| 47 | 45 | $i = 0; |
@@ -98,8 +96,7 @@ discard block |
||
| 98 | 96 | * |
| 99 | 97 | * @return void |
| 100 | 98 | */ |
| 101 | - protected function cmdAddSolrCore() |
|
| 102 | - { |
|
| 99 | + protected function cmdAddSolrCore() { |
|
| 103 | 100 | // Build data array. |
| 104 | 101 | $data['tx_dlf_solrcores'][uniqid('NEW')] = [ |
| 105 | 102 | 'pid' => intval($this->id), |
@@ -132,8 +129,7 @@ discard block |
||
| 132 | 129 | * |
| 133 | 130 | * @return void |
| 134 | 131 | */ |
| 135 | - protected function cmdAddStructure() |
|
| 136 | - { |
|
| 132 | + protected function cmdAddStructure() { |
|
| 137 | 133 | // Include structure definition file. |
| 138 | 134 | include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($this->extKey) . 'Resources/Private/Data/StructureDefaults.php'); |
| 139 | 135 | // Build data array. |
@@ -176,8 +172,7 @@ discard block |
||
| 176 | 172 | * |
| 177 | 173 | * @return \Psr\Http\Message\ResponseInterface The response object |
| 178 | 174 | */ |
| 179 | - public function main(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response) |
|
| 180 | - { |
|
| 175 | + public function main(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response) { |
|
| 181 | 176 | $this->response = $response; |
| 182 | 177 | // Initialize module. |
| 183 | 178 | $this->MCONF = [ |
@@ -22,8 +22,7 @@ discard block |
||
| 22 | 22 | * @subpackage dlf |
| 23 | 23 | * @access public |
| 24 | 24 | */ |
| 25 | -class FormEngine |
|
| 26 | -{ |
|
| 25 | +class FormEngine { |
|
| 27 | 26 | /** |
| 28 | 27 | * Helper to display document's thumbnail for table "tx_dlf_documents" |
| 29 | 28 | * |
@@ -34,8 +33,7 @@ discard block |
||
| 34 | 33 | * |
| 35 | 34 | * @return string HTML <img> tag for thumbnail |
| 36 | 35 | */ |
| 37 | - public function displayThumbnail(&$params, &$pObj) |
|
| 38 | - { |
|
| 36 | + public function displayThumbnail(&$params, &$pObj) { |
|
| 39 | 37 | // Simulate TCA field type "passthrough". |
| 40 | 38 | $output = '<input type="hidden" name="' . $params['itemFormElName'] . '" value="' . $params['itemFormElValue'] . '" />'; |
| 41 | 39 | if (!empty($params['itemFormElValue'])) { |
@@ -54,8 +52,7 @@ discard block |
||
| 54 | 52 | * |
| 55 | 53 | * @return void |
| 56 | 54 | */ |
| 57 | - public function itemsProcFunc_collectionList(&$params, &$pObj) |
|
| 58 | - { |
|
| 55 | + public function itemsProcFunc_collectionList(&$params, &$pObj) { |
|
| 59 | 56 | $this->itemsProcFunc_generateList( |
| 60 | 57 | $params, |
| 61 | 58 | 'label,uid', |
@@ -74,8 +71,7 @@ discard block |
||
| 74 | 71 | * |
| 75 | 72 | * @return void |
| 76 | 73 | */ |
| 77 | - public function itemsProcFunc_extendedSearchList(&$params, &$pObj) |
|
| 78 | - { |
|
| 74 | + public function itemsProcFunc_extendedSearchList(&$params, &$pObj) { |
|
| 79 | 75 | $this->itemsProcFunc_generateList( |
| 80 | 76 | $params, |
| 81 | 77 | 'label,index_name', |
@@ -95,8 +91,7 @@ discard block |
||
| 95 | 91 | * |
| 96 | 92 | * @return void |
| 97 | 93 | */ |
| 98 | - public function itemsProcFunc_facetsList(&$params, &$pObj) |
|
| 99 | - { |
|
| 94 | + public function itemsProcFunc_facetsList(&$params, &$pObj) { |
|
| 100 | 95 | $this->itemsProcFunc_generateList( |
| 101 | 96 | $params, |
| 102 | 97 | 'label,index_name', |
@@ -120,8 +115,7 @@ discard block |
||
| 120 | 115 | * |
| 121 | 116 | * @return void |
| 122 | 117 | */ |
| 123 | - protected function itemsProcFunc_generateList(&$params, $fields, $table, $sorting, $where = '', $localize = TRUE) |
|
| 124 | - { |
|
| 118 | + protected function itemsProcFunc_generateList(&$params, $fields, $table, $sorting, $where = '', $localize = TRUE) { |
|
| 125 | 119 | $pages = $params['row']['pages']; |
| 126 | 120 | if (!empty($pages)) { |
| 127 | 121 | if (!is_array($pages)) { |
@@ -158,8 +152,7 @@ discard block |
||
| 158 | 152 | * |
| 159 | 153 | * @return void |
| 160 | 154 | */ |
| 161 | - public function itemsProcFunc_libraryList(&$params, &$pObj) |
|
| 162 | - { |
|
| 155 | + public function itemsProcFunc_libraryList(&$params, &$pObj) { |
|
| 163 | 156 | $this->itemsProcFunc_generateList( |
| 164 | 157 | $params, |
| 165 | 158 | 'label,uid', |
@@ -178,8 +171,7 @@ discard block |
||
| 178 | 171 | * |
| 179 | 172 | * @return void |
| 180 | 173 | */ |
| 181 | - public function itemsProcFunc_solrList(&$params, &$pObj) |
|
| 182 | - { |
|
| 174 | + public function itemsProcFunc_solrList(&$params, &$pObj) { |
|
| 183 | 175 | $this->itemsProcFunc_generateList( |
| 184 | 176 | $params, |
| 185 | 177 | 'label,uid', |
@@ -200,8 +192,7 @@ discard block |
||
| 200 | 192 | * |
| 201 | 193 | * @return void |
| 202 | 194 | */ |
| 203 | - public function itemsProcFunc_toolList(&$params, &$pObj) |
|
| 204 | - { |
|
| 195 | + public function itemsProcFunc_toolList(&$params, &$pObj) { |
|
| 205 | 196 | foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'] as $class => $label) { |
| 206 | 197 | $params['items'][] = [$GLOBALS['LANG']->sL($label), $class]; |
| 207 | 198 | } |
@@ -20,8 +20,7 @@ discard block |
||
| 20 | 20 | * @subpackage dlf |
| 21 | 21 | * @access public |
| 22 | 22 | */ |
| 23 | -class KitodoProductionHacks |
|
| 24 | -{ |
|
| 23 | +class KitodoProductionHacks { |
|
| 25 | 24 | /** |
| 26 | 25 | * Hook for \Kitodo\Dlf\Common\MetsDocument::establishRecordId() |
| 27 | 26 | * When using Kitodo.Production the record identifier is saved only in MODS, but not |
@@ -34,8 +33,7 @@ discard block |
||
| 34 | 33 | * |
| 35 | 34 | * @return void |
| 36 | 35 | */ |
| 37 | - public function construct_postProcessRecordId(\SimpleXMLElement &$xml, &$record_id) |
|
| 38 | - { |
|
| 36 | + public function construct_postProcessRecordId(\SimpleXMLElement &$xml, &$record_id) { |
|
| 39 | 37 | if (!$record_id) { |
| 40 | 38 | $xml->registerXPathNamespace('mods', 'http://www.loc.gov/mods/v3'); |
| 41 | 39 | // Get all logical structure nodes with metadata, but without associated METS-Pointers. |
@@ -22,8 +22,7 @@ discard block |
||
| 22 | 22 | * @subpackage dlf |
| 23 | 23 | * @access public |
| 24 | 24 | */ |
| 25 | -class ExtensionManagementUtility extends \TYPO3\CMS\Core\Utility\ExtensionManagementUtility |
|
| 26 | -{ |
|
| 25 | +class ExtensionManagementUtility extends \TYPO3\CMS\Core\Utility\ExtensionManagementUtility { |
|
| 27 | 26 | /** |
| 28 | 27 | * Add plugin to static template for css_styled_content |
| 29 | 28 | * @see \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43() |
@@ -38,8 +37,7 @@ discard block |
||
| 38 | 37 | * |
| 39 | 38 | * @return void |
| 40 | 39 | */ |
| 41 | - public static function addPItoST43($key, $class, $suffix = '', $type = 'list_type', $cached = FALSE) |
|
| 42 | - { |
|
| 40 | + public static function addPItoST43($key, $class, $suffix = '', $type = 'list_type', $cached = FALSE) { |
|
| 43 | 41 | $internalName = 'tx_' . $key . '_' . strtolower(Helper::getUnqualifiedClassName($class)); |
| 44 | 42 | // General plugin |
| 45 | 43 | $typoscript = 'plugin.' . $internalName . ' = USER' . ($cached ? '' : '_INT') . "\n"; |
@@ -26,8 +26,7 @@ discard block |
||
| 26 | 26 | * @subpackage dlf |
| 27 | 27 | * @access public |
| 28 | 28 | */ |
| 29 | -class ConfigurationForm |
|
| 30 | -{ |
|
| 29 | +class ConfigurationForm { |
|
| 31 | 30 | /** |
| 32 | 31 | * This holds the current configuration |
| 33 | 32 | * |
@@ -46,8 +45,7 @@ discard block |
||
| 46 | 45 | * |
| 47 | 46 | * @return string Message informing the user of success or failure |
| 48 | 47 | */ |
| 49 | - public function checkSolrConnection(&$params, &$pObj) |
|
| 50 | - { |
|
| 48 | + public function checkSolrConnection(&$params, &$pObj) { |
|
| 51 | 49 | $solrInfo = Solr::getSolrConnectionInfo(); |
| 52 | 50 | // Prepend username and password to hostname. |
| 53 | 51 | if ( |
@@ -98,8 +96,7 @@ discard block |
||
| 98 | 96 | * |
| 99 | 97 | * @return string Message informing the user of success or failure |
| 100 | 98 | */ |
| 101 | - public function checkMetadataFormats(&$params, &$pObj) |
|
| 102 | - { |
|
| 99 | + public function checkMetadataFormats(&$params, &$pObj) { |
|
| 103 | 100 | $nsDefined = [ |
| 104 | 101 | 'MODS' => FALSE, |
| 105 | 102 | 'TEIHDR' => FALSE, |
@@ -221,8 +218,7 @@ discard block |
||
| 221 | 218 | * |
| 222 | 219 | * @return void |
| 223 | 220 | */ |
| 224 | - public function __construct() |
|
| 225 | - { |
|
| 221 | + public function __construct() { |
|
| 226 | 222 | // Load localization file. |
| 227 | 223 | $GLOBALS['LANG']->includeLLFile('EXT:dlf/Resources/Private/Language/FlashMessages.xml'); |
| 228 | 224 | // Get current configuration. |