Passed
Pull Request — master (#80)
by
unknown
02:35
created
Classes/Plugin/Tools/SearchInDocumentTool.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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.
Please login to merge, or discard this patch.