Passed
Pull Request — master (#62)
by
unknown
02:55
created
Classes/Plugin/Tools/SearchInDocumentTool.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
             '###LABEL_PAGE###' => htmlspecialchars($this->pi_getLL('label.logicalPage')),
115 115
             '###LABEL_NORESULT###' => htmlspecialchars($this->pi_getLL('label.noresult')),
116 116
             '###CURRENT_DOCUMENT###' => $this->doc->uid,
117
-            '###SOLR_ENCRYPTED###' => $encryptedSolr ?: '',
117
+            '###SOLR_ENCRYPTED###' => $encryptedSolr ? : '',
118 118
         ];
119 119
 
120 120
         $content .= $this->templateService->substituteMarkerArray($this->template, $markerArray);
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 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
 
@@ -128,8 +126,7 @@  discard block
 block discarded – undo
128 126
      *
129 127
      * @return string with encrypted core name
130 128
      */
131
-    protected function getEncryptedCoreName()
132
-    {
129
+    protected function getEncryptedCoreName() {
133 130
         // Get core name.
134 131
         $name = Helper::getIndexNameFromUid($this->conf['solrcore'], 'tx_dlf_solrcores');
135 132
         // Encrypt core name.
Please login to merge, or discard this patch.