We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -629,5 +629,6 @@ |
||
| 629 | 629 | * @access private |
| 630 | 630 | */ |
| 631 | 631 | private function __construct() |
| 632 | - { } |
|
| 632 | + { |
|
| 633 | +} |
|
| 633 | 634 | } |
@@ -1522,7 +1522,8 @@ |
||
| 1522 | 1522 | * @return void |
| 1523 | 1523 | */ |
| 1524 | 1524 | protected function __clone() |
| 1525 | - { } |
|
| 1525 | + { |
|
| 1526 | +} |
|
| 1526 | 1527 | |
| 1527 | 1528 | /** |
| 1528 | 1529 | * This is a singleton class, thus the constructor should be private/protected |
@@ -739,7 +739,8 @@ |
||
| 739 | 739 | * @return void |
| 740 | 740 | */ |
| 741 | 741 | protected function __clone() |
| 742 | - { } |
|
| 742 | + { |
|
| 743 | +} |
|
| 743 | 744 | |
| 744 | 745 | /** |
| 745 | 746 | * This magic method is called each time an invisible property is referenced from the object |
@@ -168,11 +168,14 @@ discard block |
||
| 168 | 168 | 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE) |
| 169 | 169 | ]; |
| 170 | 170 | $value = $this->cObj->typoLink(htmlspecialchars($value), $conf); |
| 171 | - } elseif ($index_name == 'owner' && !empty($value)) { // Translate name of holding library. |
|
| 171 | + } elseif ($index_name == 'owner' && !empty($value)) { |
|
| 172 | +// Translate name of holding library. |
|
| 172 | 173 | $value = htmlspecialchars(Helper::translate($value, 'tx_dlf_libraries', $this->conf['pages'])); |
| 173 | - } elseif ($index_name == 'type' && !empty($value)) { // Translate document type. |
|
| 174 | + } elseif ($index_name == 'type' && !empty($value)) { |
|
| 175 | +// Translate document type. |
|
| 174 | 176 | $value = htmlspecialchars(Helper::translate($value, 'tx_dlf_structures', $this->conf['pages'])); |
| 175 | - } elseif ($index_name == 'language' && !empty($value)) { // Translate ISO 639 language code. |
|
| 177 | + } elseif ($index_name == 'language' && !empty($value)) { |
|
| 178 | +// Translate ISO 639 language code. |
|
| 176 | 179 | $value = htmlspecialchars(Helper::getLanguageName($value)); |
| 177 | 180 | } elseif (!empty($value)) { |
| 178 | 181 | $value = htmlspecialchars($value); |
@@ -337,16 +340,19 @@ discard block |
||
| 337 | 340 | 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE) |
| 338 | 341 | ]; |
| 339 | 342 | $value = $this->cObj->typoLink(htmlspecialchars($value), $conf); |
| 340 | - } elseif ($index_name == 'owner' && !empty($value)) { // Translate name of holding library. |
|
| 343 | + } elseif ($index_name == 'owner' && !empty($value)) { |
|
| 344 | +// Translate name of holding library. |
|
| 341 | 345 | $value = htmlspecialchars(Helper::translate($value, 'tx_dlf_libraries', $this->conf['pages'])); |
| 342 | - } elseif ($index_name == 'type' && !empty($value)) { // Translate document type. |
|
| 346 | + } elseif ($index_name == 'type' && !empty($value)) { |
|
| 347 | +// Translate document type. |
|
| 343 | 348 | $_value = $value; |
| 344 | 349 | $value = htmlspecialchars(Helper::translate($value, 'tx_dlf_structures', $this->conf['pages'])); |
| 345 | 350 | // Add page number for single pages. |
| 346 | 351 | if ($_value == 'page') { |
| 347 | 352 | $value .= ' ' . intval($subpart['page']); |
| 348 | 353 | } |
| 349 | - } elseif ($index_name == 'language' && !empty($value)) { // Translate ISO 639 language code. |
|
| 354 | + } elseif ($index_name == 'language' && !empty($value)) { |
|
| 355 | +// Translate ISO 639 language code. |
|
| 350 | 356 | $value = htmlspecialchars(Helper::getLanguageName($value)); |
| 351 | 357 | } elseif (!empty($value)) { |
| 352 | 358 | $value = htmlspecialchars($value); |
@@ -629,5 +629,6 @@ |
||
| 629 | 629 | * @access private |
| 630 | 630 | */ |
| 631 | 631 | private function __construct() |
| 632 | - { } |
|
| 632 | + { |
|
| 633 | +} |
|
| 633 | 634 | } |
@@ -295,14 +295,16 @@ |
||
| 295 | 295 | } elseif ( |
| 296 | 296 | !empty($this->physicalStructure) |
| 297 | 297 | && array_key_exists($details['id'], $this->smLinks['l2p']) |
| 298 | - ) { // Are there any physical elements and is this logical unit linked to at least one of them? |
|
| 298 | + ) { |
|
| 299 | +// Are there any physical elements and is this logical unit linked to at least one of them? |
|
| 299 | 300 | $details['points'] = max(intval(array_search($this->smLinks['l2p'][$details['id']][0], $this->physicalStructure, TRUE)), 1); |
| 300 | 301 | if (!empty($this->physicalStructureInfo[$this->smLinks['l2p'][$details['id']][0]]['files'][$extConf['fileGrpThumbs']])) { |
| 301 | 302 | $details['thumbnailId'] = $this->physicalStructureInfo[$this->smLinks['l2p'][$details['id']][0]]['files'][$extConf['fileGrpThumbs']]; |
| 302 | 303 | } |
| 303 | 304 | // Get page/track number of the first page/track related to this structure element. |
| 304 | 305 | $details['pagination'] = $this->physicalStructureInfo[$this->smLinks['l2p'][$details['id']][0]]['orderlabel']; |
| 305 | - } elseif ($details['id'] == $this->_getToplevelId()) { // Is this the toplevel structure element? |
|
| 306 | + } elseif ($details['id'] == $this->_getToplevelId()) { |
|
| 307 | +// Is this the toplevel structure element? |
|
| 306 | 308 | // Yes. Point to itself. |
| 307 | 309 | $details['points'] = 1; |
| 308 | 310 | if ( |