We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -22,8 +22,7 @@ discard block |
||
| 22 | 22 | * @subpackage dlf |
| 23 | 23 | * @access public |
| 24 | 24 | */ |
| 25 | -class ImageManipulationTool extends \Kitodo\Dlf\Common\AbstractPlugin |
|
| 26 | -{ |
|
| 25 | +class ImageManipulationTool extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
| 27 | 26 | public $scriptRelPath = 'Classes/Plugin/Tools/ImageManipulationTool.php'; |
| 28 | 27 | |
| 29 | 28 | /** |
@@ -36,8 +35,7 @@ discard block |
||
| 36 | 35 | * |
| 37 | 36 | * @return string The content that is displayed on the website |
| 38 | 37 | */ |
| 39 | - public function main($content, $conf) |
|
| 40 | - { |
|
| 38 | + public function main($content, $conf) { |
|
| 41 | 39 | $this->init($conf); |
| 42 | 40 | // Merge configuration with conf array of toolbox. |
| 43 | 41 | if (!empty($this->cObj->data['conf'])) { |
@@ -23,8 +23,7 @@ discard block |
||
| 23 | 23 | * @subpackage dlf |
| 24 | 24 | * @access public |
| 25 | 25 | */ |
| 26 | -class PdfDownloadTool extends \Kitodo\Dlf\Common\AbstractPlugin |
|
| 27 | -{ |
|
| 26 | +class PdfDownloadTool extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
| 28 | 27 | public $scriptRelPath = 'Classes/Plugin/Tools/PdfDownloadTool.php'; |
| 29 | 28 | |
| 30 | 29 | /** |
@@ -37,8 +36,7 @@ discard block |
||
| 37 | 36 | * |
| 38 | 37 | * @return string The content that is displayed on the website |
| 39 | 38 | */ |
| 40 | - public function main($content, $conf) |
|
| 41 | - { |
|
| 39 | + public function main($content, $conf) { |
|
| 42 | 40 | $this->init($conf); |
| 43 | 41 | // Merge configuration with conf array of toolbox. |
| 44 | 42 | if (!empty($this->cObj->data['conf'])) { |
@@ -88,8 +86,7 @@ discard block |
||
| 88 | 86 | * |
| 89 | 87 | * @return string Link to downloadable page |
| 90 | 88 | */ |
| 91 | - protected function getPageLink() |
|
| 92 | - { |
|
| 89 | + protected function getPageLink() { |
|
| 93 | 90 | $page1Link = ''; |
| 94 | 91 | $page2Link = ''; |
| 95 | 92 | $pageNumber = $this->piVars['page']; |
@@ -137,8 +134,7 @@ discard block |
||
| 137 | 134 | * |
| 138 | 135 | * @return string Link to downloadable work |
| 139 | 136 | */ |
| 140 | - protected function getWorkLink() |
|
| 141 | - { |
|
| 137 | + protected function getWorkLink() { |
|
| 142 | 138 | $workLink = ''; |
| 143 | 139 | // Get work link. |
| 144 | 140 | if (!empty($this->doc->physicalStructureInfo[$this->doc->physicalStructure[0]]['files'][$this->conf['fileGrpDownload']])) { |
@@ -24,8 +24,7 @@ discard block |
||
| 24 | 24 | * @subpackage dlf |
| 25 | 25 | * @access public |
| 26 | 26 | */ |
| 27 | -class SearchInDocumentTool extends \Kitodo\Dlf\Common\AbstractPlugin |
|
| 28 | -{ |
|
| 27 | +class SearchInDocumentTool extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
| 29 | 28 | public $scriptRelPath = 'Classes/Plugin/Tools/SearchInDocumentTool.php'; |
| 30 | 29 | |
| 31 | 30 | /** |
@@ -38,8 +37,7 @@ discard block |
||
| 38 | 37 | * |
| 39 | 38 | * @return string The content that is displayed on the website |
| 40 | 39 | */ |
| 41 | - public function main($content, $conf) |
|
| 42 | - { |
|
| 40 | + public function main($content, $conf) { |
|
| 43 | 41 | |
| 44 | 42 | $this->init($conf); |
| 45 | 43 | |
@@ -105,8 +103,7 @@ discard block |
||
| 105 | 103 | * |
| 106 | 104 | * @return void |
| 107 | 105 | */ |
| 108 | - protected function addSearchInDocumentJS() |
|
| 109 | - { |
|
| 106 | + protected function addSearchInDocumentJS() { |
|
| 110 | 107 | $pageRenderer = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class); |
| 111 | 108 | $pageRenderer->addJsFooterFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'Resources/Public/Javascript/Search/SearchInDocument.js'); |
| 112 | 109 | } |
@@ -118,8 +115,7 @@ discard block |
||
| 118 | 115 | * |
| 119 | 116 | * @return array with encrypted core name and hash |
| 120 | 117 | */ |
| 121 | - protected function getEncryptedCoreName() |
|
| 122 | - { |
|
| 118 | + protected function getEncryptedCoreName() { |
|
| 123 | 119 | // Get core name. |
| 124 | 120 | $name = Helper::getIndexNameFromUid($this->conf['solrcore'], 'tx_dlf_solrcores'); |
| 125 | 121 | // Encrypt core name. |
@@ -26,8 +26,7 @@ discard block |
||
| 26 | 26 | * @subpackage dlf |
| 27 | 27 | * @access public |
| 28 | 28 | */ |
| 29 | -class AnnotationTool extends AbstractPlugin |
|
| 30 | -{ |
|
| 29 | +class AnnotationTool extends AbstractPlugin { |
|
| 31 | 30 | /** |
| 32 | 31 | * @access public |
| 33 | 32 | * @var string |
@@ -44,8 +43,7 @@ discard block |
||
| 44 | 43 | * |
| 45 | 44 | * @return string The content that is displayed on the website |
| 46 | 45 | */ |
| 47 | - public function main($content, $conf) |
|
| 48 | - { |
|
| 46 | + public function main($content, $conf) { |
|
| 49 | 47 | $this->init($conf); |
| 50 | 48 | // Merge configuration with conf array of toolbox. |
| 51 | 49 | if (!empty($this->cObj->data['conf'])) { |
@@ -23,8 +23,7 @@ discard block |
||
| 23 | 23 | * @subpackage dlf |
| 24 | 24 | * @access public |
| 25 | 25 | */ |
| 26 | -class FulltextTool extends \Kitodo\Dlf\Common\AbstractPlugin |
|
| 27 | -{ |
|
| 26 | +class FulltextTool extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
| 28 | 27 | public $scriptRelPath = 'Classes/Plugin/Tools/FulltextTool.php'; |
| 29 | 28 | |
| 30 | 29 | /** |
@@ -37,8 +36,7 @@ discard block |
||
| 37 | 36 | * |
| 38 | 37 | * @return string The content that is displayed on the website |
| 39 | 38 | */ |
| 40 | - public function main($content, $conf) |
|
| 41 | - { |
|
| 39 | + public function main($content, $conf) { |
|
| 42 | 40 | $this->init($conf); |
| 43 | 41 | // Merge configuration with conf array of toolbox. |
| 44 | 42 | if (!empty($this->cObj->data['conf'])) { |
@@ -22,8 +22,7 @@ discard block |
||
| 22 | 22 | * @subpackage dlf |
| 23 | 23 | * @access public |
| 24 | 24 | */ |
| 25 | -class ImageDownloadTool extends \Kitodo\Dlf\Common\AbstractPlugin |
|
| 26 | -{ |
|
| 25 | +class ImageDownloadTool extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
| 27 | 26 | public $scriptRelPath = 'Classes/Plugin/Tools/ImageDownloadTool.php'; |
| 28 | 27 | |
| 29 | 28 | /** |
@@ -36,8 +35,7 @@ discard block |
||
| 36 | 35 | * |
| 37 | 36 | * @return string The content that is displayed on the website |
| 38 | 37 | */ |
| 39 | - public function main($content, $conf) |
|
| 40 | - { |
|
| 38 | + public function main($content, $conf) { |
|
| 41 | 39 | $this->init($conf); |
| 42 | 40 | // Merge configuration with conf array of toolbox. |
| 43 | 41 | if (!empty($this->cObj->data['conf'])) { |
@@ -90,8 +88,7 @@ discard block |
||
| 90 | 88 | * |
| 91 | 89 | * @return string Link to image file with given label |
| 92 | 90 | */ |
| 93 | - protected function getImage($page, $label) |
|
| 94 | - { |
|
| 91 | + protected function getImage($page, $label) { |
|
| 95 | 92 | $image = []; |
| 96 | 93 | // Get @USE value of METS fileGrp. |
| 97 | 94 | $fileGrps = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->conf['fileGrpsImageDownload']); |
@@ -27,8 +27,7 @@ discard block |
||
| 27 | 27 | * @subpackage dlf |
| 28 | 28 | * @access public |
| 29 | 29 | */ |
| 30 | -class Collection extends \Kitodo\Dlf\Common\AbstractPlugin |
|
| 31 | -{ |
|
| 30 | +class Collection extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
| 32 | 31 | public $scriptRelPath = 'Classes/Plugin/Collection.php'; |
| 33 | 32 | |
| 34 | 33 | /** |
@@ -49,8 +48,7 @@ discard block |
||
| 49 | 48 | * |
| 50 | 49 | * @return string The content that is displayed on the website |
| 51 | 50 | */ |
| 52 | - public function main($content, $conf) |
|
| 53 | - { |
|
| 51 | + public function main($content, $conf) { |
|
| 54 | 52 | $this->init($conf); |
| 55 | 53 | // Turn cache on. |
| 56 | 54 | $this->setCache(TRUE); |
@@ -78,8 +76,7 @@ discard block |
||
| 78 | 76 | * |
| 79 | 77 | * @return string The list of collections ready to output |
| 80 | 78 | */ |
| 81 | - protected function showCollectionList() |
|
| 82 | - { |
|
| 79 | + protected function showCollectionList() { |
|
| 83 | 80 | /** @var QueryBuilder $queryBuilder */ |
| 84 | 81 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class) |
| 85 | 82 | ->getQueryBuilderForTable('tx_dlf_collections'); |
@@ -256,8 +253,7 @@ discard block |
||
| 256 | 253 | * |
| 257 | 254 | * @return void |
| 258 | 255 | */ |
| 259 | - protected function showSingleCollection($id) |
|
| 260 | - { |
|
| 256 | + protected function showSingleCollection($id) { |
|
| 261 | 257 | /** @var ConnectionPool $connectionPool */ |
| 262 | 258 | $connectionPool = GeneralUtility::makeInstance(ConnectionPool::class); |
| 263 | 259 | /** @var QueryBuilder $queryBuilder */ |
@@ -20,8 +20,7 @@ discard block |
||
| 20 | 20 | * @subpackage dlf |
| 21 | 21 | * @access public |
| 22 | 22 | */ |
| 23 | -class PageViewProxy extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin |
|
| 24 | -{ |
|
| 23 | +class PageViewProxy extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin { |
|
| 25 | 24 | public $scriptRelPath = 'Classes/Plugin/Eid/PageViewProxy.php'; |
| 26 | 25 | |
| 27 | 26 | /** |
@@ -34,8 +33,7 @@ discard block |
||
| 34 | 33 | * |
| 35 | 34 | * @return string |
| 36 | 35 | */ |
| 37 | - public function main($content = '', $conf = []) |
|
| 38 | - { |
|
| 36 | + public function main($content = '', $conf = []) { |
|
| 39 | 37 | $this->cObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::class); |
| 40 | 38 | $header = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('header'); |
| 41 | 39 | $url = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('url'); |
@@ -24,8 +24,7 @@ discard block |
||
| 24 | 24 | * @subpackage dlf |
| 25 | 25 | * @access public |
| 26 | 26 | */ |
| 27 | -class SearchInDocument extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin |
|
| 28 | -{ |
|
| 27 | +class SearchInDocument extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin { |
|
| 29 | 28 | public $scriptRelPath = 'Classes/Plugin/Eid/SearchInDocument.php'; |
| 30 | 29 | |
| 31 | 30 | /** |
@@ -38,8 +37,7 @@ discard block |
||
| 38 | 37 | * |
| 39 | 38 | * @return string JSON response of search suggestions |
| 40 | 39 | */ |
| 41 | - public function main($content = '', $conf = []) |
|
| 42 | - { |
|
| 40 | + public function main($content = '', $conf = []) { |
|
| 43 | 41 | if ( |
| 44 | 42 | GeneralUtility::_GP('encrypted') != '' |
| 45 | 43 | && GeneralUtility::_GP('hashed') != '' |