@@ -26,8 +26,7 @@ discard block |
||
| 26 | 26 | * @subpackage dlf |
| 27 | 27 | * @access public |
| 28 | 28 | */ |
| 29 | -class SearchInDocumentTool extends \Kitodo\Dlf\Common\AbstractPlugin |
|
| 30 | -{ |
|
| 29 | +class SearchInDocumentTool extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
| 31 | 30 | public $scriptRelPath = 'Classes/Plugin/Tools/SearchInDocumentTool.php'; |
| 32 | 31 | |
| 33 | 32 | /** |
@@ -40,8 +39,7 @@ discard block |
||
| 40 | 39 | * |
| 41 | 40 | * @return string The content that is displayed on the website |
| 42 | 41 | */ |
| 43 | - public function main($content, $conf) |
|
| 44 | - { |
|
| 42 | + public function main($content, $conf) { |
|
| 45 | 43 | |
| 46 | 44 | $this->init($conf); |
| 47 | 45 | |
@@ -126,8 +124,7 @@ discard block |
||
| 126 | 124 | * |
| 127 | 125 | * @return string with action url for search form |
| 128 | 126 | */ |
| 129 | - protected function getActionUrl() |
|
| 130 | - { |
|
| 127 | + protected function getActionUrl() { |
|
| 131 | 128 | // Configure @action URL for form. |
| 132 | 129 | $linkConf = [ |
| 133 | 130 | 'parameter' => $GLOBALS['TSFE']->id, |
@@ -150,8 +147,7 @@ discard block |
||
| 150 | 147 | * |
| 151 | 148 | * @return string with current document id |
| 152 | 149 | */ |
| 153 | - protected function getCurrentDocumentId() |
|
| 154 | - { |
|
| 150 | + protected function getCurrentDocumentId() { |
|
| 155 | 151 | $id = $this->doc->uid; |
| 156 | 152 | |
| 157 | 153 | if (!empty($this->conf['documentIdUrlSchema'])) { |
@@ -174,8 +170,7 @@ discard block |
||
| 174 | 170 | * |
| 175 | 171 | * @return string with encrypted core name |
| 176 | 172 | */ |
| 177 | - protected function getEncryptedCoreName() |
|
| 178 | - { |
|
| 173 | + protected function getEncryptedCoreName() { |
|
| 179 | 174 | // Get core name. |
| 180 | 175 | $name = Helper::getIndexNameFromUid($this->conf['solrcore'], 'tx_dlf_solrcores'); |
| 181 | 176 | // Encrypt core name. |