Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Branch master (585b6c)
by Sebastian
06:27
created
Classes/Plugin/AudioPlayer.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -43,21 +43,21 @@
 block discarded – undo
43 43
     {
44 44
         $pageRenderer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class);
45 45
         // Add AudioPlayer library.
46
-        $pageRenderer->addCssFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'Resources/Public/Javascript/jPlayer/blue.monday/css/jplayer.blue.monday.min.css');
46
+        $pageRenderer->addCssFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'Resources/Public/Javascript/jPlayer/blue.monday/css/jplayer.blue.monday.min.css');
47 47
         $pageRenderer->addCssInlineBlock('kitodo-audioplayer-configuration', '#tx-dlf-audio { width: 100px; height: 100px; }');
48
-        $pageRenderer->addJsFooterFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'Resources/Public/Javascript/jPlayer/jquery.jplayer.min.js');
49
-        $pageRenderer->addJsFooterFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'Resources/Public/Javascript/AudioPlayer/AudioPlayer.js');
48
+        $pageRenderer->addJsFooterFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'Resources/Public/Javascript/jPlayer/jquery.jplayer.min.js');
49
+        $pageRenderer->addJsFooterFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'Resources/Public/Javascript/AudioPlayer/AudioPlayer.js');
50 50
         // Add AudioPlayer configuration.
51 51
         $audioplayerConfiguration = '
52 52
                 $(document).ready(function() {
53 53
                     AudioPlayer = new dlfAudioPlayer({
54 54
                         audio: {
55
-                            mimeType: "' . $this->audio['mimetype'] . '",
56
-                            title: "' . $this->audio['label'] . '",
57
-                            url:  "' . $this->audio['url'] . '"
55
+                            mimeType: "' . $this->audio['mimetype'].'",
56
+                            title: "' . $this->audio['label'].'",
57
+                            url:  "' . $this->audio['url'].'"
58 58
                         },
59 59
                         parentElId: "tx-dlf-audio",
60
-                        swfPath: "' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'Resources/Public/Javascript/jPlayer/jquery.jplayer.swf"
60
+                        swfPath: "' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'Resources/Public/Javascript/jPlayer/jquery.jplayer.swf"
61 61
                     });
62 62
                 });
63 63
         ';
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@  discard block
 block discarded – undo
20 20
  * @subpackage dlf
21 21
  * @access public
22 22
  */
23
-class AudioPlayer extends \Kitodo\Dlf\Common\AbstractPlugin
24
-{
23
+class AudioPlayer extends \Kitodo\Dlf\Common\AbstractPlugin {
25 24
     public $scriptRelPath = 'Classes/Plugin/AudioPlayer.php';
26 25
 
27 26
     /**
@@ -39,8 +38,7 @@  discard block
 block discarded – undo
39 38
      *
40 39
      * @return void
41 40
      */
42
-    protected function addPlayerJS()
43
-    {
41
+    protected function addPlayerJS() {
44 42
         $pageRenderer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class);
45 43
         // Add AudioPlayer library.
46 44
         $pageRenderer->addCssFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'Resources/Public/Javascript/jPlayer/blue.monday/css/jplayer.blue.monday.min.css');
@@ -74,8 +72,7 @@  discard block
 block discarded – undo
74 72
      *
75 73
      * @return string The content that is displayed on the website
76 74
      */
77
-    public function main($content, $conf)
78
-    {
75
+    public function main($content, $conf) {
79 76
         $this->init($conf);
80 77
         // Load current document.
81 78
         $this->loadDocument();
Please login to merge, or discard this patch.
Classes/Plugin/Navigation.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -65,18 +65,18 @@  discard block
 block discarded – undo
65 65
         $linkConf = [
66 66
             'parameter' => $GLOBALS['TSFE']->id
67 67
         ];
68
-        $output = '<form action="' . $this->cObj->typoLink_URL($linkConf) . '" method="get"><div><input type="hidden" name="id" value="' . $GLOBALS['TSFE']->id . '" />';
68
+        $output = '<form action="'.$this->cObj->typoLink_URL($linkConf).'" method="get"><div><input type="hidden" name="id" value="'.$GLOBALS['TSFE']->id.'" />';
69 69
         // Add plugin variables.
70 70
         foreach ($this->piVars as $piVar => $value) {
71 71
             if ($piVar != 'page' && $piVar != 'DATA' && !empty($value)) {
72
-                $output .= '<input type="hidden" name="' . $this->prefixId . '[' . $piVar . ']" value="' . $value . '" />';
72
+                $output .= '<input type="hidden" name="'.$this->prefixId.'['.$piVar.']" value="'.$value.'" />';
73 73
             }
74 74
         }
75 75
         // Add page selector.
76
-        $uniqId = uniqid(Helper::getUnqualifiedClassName(get_class($this)) . '-');
77
-        $output .= '<label for="' . $uniqId . '">' . $this->pi_getLL('selectPage', '', TRUE) . '</label><select id="' . $uniqId . '" name="' . $this->prefixId . '[page]" onchange="javascript:this.form.submit();"' . ($this->doc->numPages < 1 ? ' disabled="disabled"' : '') . '>';
76
+        $uniqId = uniqid(Helper::getUnqualifiedClassName(get_class($this)).'-');
77
+        $output .= '<label for="'.$uniqId.'">'.$this->pi_getLL('selectPage', '', TRUE).'</label><select id="'.$uniqId.'" name="'.$this->prefixId.'[page]" onchange="javascript:this.form.submit();"'.($this->doc->numPages < 1 ? ' disabled="disabled"' : '').'>';
78 78
         for ($i = 1; $i <= $this->doc->numPages; $i++) {
79
-            $output .= '<option value="' . $i . '"' . ($this->piVars['page'] == $i ? ' selected="selected"' : '') . '>[' . $i . ']' . ($this->doc->physicalStructureInfo[$this->doc->physicalStructure[$i]]['orderlabel'] ? ' - ' . htmlspecialchars($this->doc->physicalStructureInfo[$this->doc->physicalStructure[$i]]['orderlabel']) : '') . '</option>';
79
+            $output .= '<option value="'.$i.'"'.($this->piVars['page'] == $i ? ' selected="selected"' : '').'>['.$i.']'.($this->doc->physicalStructureInfo[$this->doc->physicalStructure[$i]]['orderlabel'] ? ' - '.htmlspecialchars($this->doc->physicalStructureInfo[$this->doc->physicalStructure[$i]]['orderlabel']) : '').'</option>';
80 80
         }
81 81
         $output .= '</select></div></form>';
82 82
         return $output;
@@ -134,37 +134,37 @@  discard block
 block discarded – undo
134 134
         if ($this->piVars['page'] > 1) {
135 135
             $markerArray['###FIRST###'] = $this->makeLink($this->pi_getLL('firstPage', '', TRUE), ['page' => 1]);
136 136
         } else {
137
-            $markerArray['###FIRST###'] = '<span>' . $this->pi_getLL('firstPage', '', TRUE) . '</span>';
137
+            $markerArray['###FIRST###'] = '<span>'.$this->pi_getLL('firstPage', '', TRUE).'</span>';
138 138
         }
139 139
         // Link back X pages.
140 140
         if ($this->piVars['page'] > $pageSteps) {
141 141
             $markerArray['###BACK###'] = $this->makeLink(sprintf($this->pi_getLL('backXPages', '', TRUE), $pageSteps), ['page' => $this->piVars['page'] - $pageSteps]);
142 142
         } else {
143
-            $markerArray['###BACK###'] = '<span>' . sprintf($this->pi_getLL('backXPages', '', TRUE), $pageSteps) . '</span>';
143
+            $markerArray['###BACK###'] = '<span>'.sprintf($this->pi_getLL('backXPages', '', TRUE), $pageSteps).'</span>';
144 144
         }
145 145
         // Link to previous page.
146 146
         if ($this->piVars['page'] > (1 + $this->piVars['double'])) {
147 147
             $markerArray['###PREVIOUS###'] = $this->makeLink($this->pi_getLL('prevPage', '', TRUE), ['page' => $this->piVars['page'] - (1 + $this->piVars['double'])]);
148 148
         } else {
149
-            $markerArray['###PREVIOUS###'] = '<span>' . $this->pi_getLL('prevPage', '', TRUE) . '</span>';
149
+            $markerArray['###PREVIOUS###'] = '<span>'.$this->pi_getLL('prevPage', '', TRUE).'</span>';
150 150
         }
151 151
         // Link to next page.
152 152
         if ($this->piVars['page'] < ($this->doc->numPages - $this->piVars['double'])) {
153 153
             $markerArray['###NEXT###'] = $this->makeLink($this->pi_getLL('nextPage', '', TRUE), ['page' => $this->piVars['page'] + (1 + $this->piVars['double'])]);
154 154
         } else {
155
-            $markerArray['###NEXT###'] = '<span>' . $this->pi_getLL('nextPage', '', TRUE) . '</span>';
155
+            $markerArray['###NEXT###'] = '<span>'.$this->pi_getLL('nextPage', '', TRUE).'</span>';
156 156
         }
157 157
         // Link forward X pages.
158 158
         if ($this->piVars['page'] <= ($this->doc->numPages - $pageSteps)) {
159 159
             $markerArray['###FORWARD###'] = $this->makeLink(sprintf($this->pi_getLL('forwardXPages', '', TRUE), $pageSteps), ['page' => $this->piVars['page'] + $pageSteps]);
160 160
         } else {
161
-            $markerArray['###FORWARD###'] = '<span>' . sprintf($this->pi_getLL('forwardXPages', '', TRUE), $pageSteps) . '</span>';
161
+            $markerArray['###FORWARD###'] = '<span>'.sprintf($this->pi_getLL('forwardXPages', '', TRUE), $pageSteps).'</span>';
162 162
         }
163 163
         // Link to last page.
164 164
         if ($this->piVars['page'] < $this->doc->numPages) {
165 165
             $markerArray['###LAST###'] = $this->makeLink($this->pi_getLL('lastPage', '', TRUE), ['page' => $this->doc->numPages]);
166 166
         } else {
167
-            $markerArray['###LAST###'] = '<span>' . $this->pi_getLL('lastPage', '', TRUE) . '</span>';
167
+            $markerArray['###LAST###'] = '<span>'.$this->pi_getLL('lastPage', '', TRUE).'</span>';
168 168
         }
169 169
         // Add double page switcher.
170 170
         if ($this->doc->numPages > 0) {
@@ -176,11 +176,11 @@  discard block
 block discarded – undo
176 176
             if ($this->piVars['double'] && $this->piVars['page'] < $this->doc->numPages) {
177 177
                 $markerArray['###DOUBLEPAGE+1###'] = $this->makeLink($this->pi_getLL('doublePage+1', '', TRUE), ['page' => $this->piVars['page'] + 1]);
178 178
             } else {
179
-                $markerArray['###DOUBLEPAGE+1###'] = '<span>' . $this->pi_getLL('doublePage+1', '', TRUE) . '</span>';
179
+                $markerArray['###DOUBLEPAGE+1###'] = '<span>'.$this->pi_getLL('doublePage+1', '', TRUE).'</span>';
180 180
             }
181 181
         } else {
182
-            $markerArray['###DOUBLEPAGE###'] = '<span>' . $this->pi_getLL('doublePageOn', '', TRUE) . '</span>';
183
-            $markerArray['###DOUBLEPAGE+1###'] = '<span>' . $this->pi_getLL('doublePage+1', '', TRUE) . '</span>';
182
+            $markerArray['###DOUBLEPAGE###'] = '<span>'.$this->pi_getLL('doublePageOn', '', TRUE).'</span>';
183
+            $markerArray['###DOUBLEPAGE+1###'] = '<span>'.$this->pi_getLL('doublePage+1', '', TRUE).'</span>';
184 184
         }
185 185
         // Add page selector.
186 186
         $markerArray['###PAGESELECT###'] = $this->getPageSelector();
Please login to merge, or discard this patch.
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -23,8 +23,7 @@  discard block
 block discarded – undo
23 23
  * @subpackage dlf
24 24
  * @access public
25 25
  */
26
-class Navigation extends \Kitodo\Dlf\Common\AbstractPlugin
27
-{
26
+class Navigation extends \Kitodo\Dlf\Common\AbstractPlugin {
28 27
     public $scriptRelPath = 'Classes/Plugin/Navigation.php';
29 28
 
30 29
     /**
@@ -34,8 +33,7 @@  discard block
 block discarded – undo
34 33
      *
35 34
      * @return string Link to the list view ready to output
36 35
      */
37
-    protected function getLinkToListview()
38
-    {
36
+    protected function getLinkToListview() {
39 37
         if (!empty($this->conf['targetPid'])) {
40 38
             // Load the list.
41 39
             $list = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(DocumentList::class);
@@ -59,8 +57,7 @@  discard block
 block discarded – undo
59 57
      *
60 58
      * @return string Page selector ready to output
61 59
      */
62
-    protected function getPageSelector()
63
-    {
60
+    protected function getPageSelector() {
64 61
         // Configure @action URL for form.
65 62
         $linkConf = [
66 63
             'parameter' => $GLOBALS['TSFE']->id
@@ -92,8 +89,7 @@  discard block
 block discarded – undo
92 89
      *
93 90
      * @return string The content that is displayed on the website
94 91
      */
95
-    public function main($content, $conf)
96
-    {
92
+    public function main($content, $conf) {
97 93
         $this->init($conf);
98 94
         // Turn cache on.
99 95
         $this->setCache(TRUE);
@@ -208,8 +204,7 @@  discard block
 block discarded – undo
208 204
      *
209 205
      * @return string Typolink ready to output
210 206
      */
211
-    protected function makeLink($label, array $overrulePIvars = [], $aTagParams = '')
212
-    {
207
+    protected function makeLink($label, array $overrulePIvars = [], $aTagParams = '') {
213 208
         // Merge plugin variables with new set of values.
214 209
         if (is_array($this->piVars)) {
215 210
             $piVars = $this->piVars;
Please login to merge, or discard this patch.
Classes/Plugin/Toolbox.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
             $tool = trim($tool);
57 57
             $cObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::class);
58 58
             $cObj->data = $data;
59
-            $content .= $this->templateService->substituteMarkerArray($subpart, ['###TOOL###' => $cObj->cObjGetSingle($GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool], $GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool . '.'])]);
59
+            $content .= $this->templateService->substituteMarkerArray($subpart, ['###TOOL###' => $cObj->cObjGetSingle($GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool], $GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool.'.'])]);
60 60
         }
61 61
         return $this->pi_wrapInBaseClass($this->templateService->substituteSubpart($this->template, '###TOOLS###', $content, TRUE));
62 62
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@  discard block
 block discarded – undo
20 20
  * @subpackage dlf
21 21
  * @access public
22 22
  */
23
-class Toolbox extends \Kitodo\Dlf\Common\AbstractPlugin
24
-{
23
+class Toolbox extends \Kitodo\Dlf\Common\AbstractPlugin {
25 24
     public $scriptRelPath = 'Classes/Plugin/Toolbox.php';
26 25
 
27 26
     /**
@@ -34,8 +33,7 @@  discard block
 block discarded – undo
34 33
      *
35 34
      * @return string The content that is displayed on the website
36 35
      */
37
-    public function main($content, $conf)
38
-    {
36
+    public function main($content, $conf) {
39 37
         $this->init($conf);
40 38
         // Quit without doing anything if required variable is not set.
41 39
         if (empty($this->piVars['id'])) {
Please login to merge, or discard this patch.
Classes/Plugin/Tools/ImageManipulationTool.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         }
46 46
         // Load template file.
47 47
         $this->getTemplate();
48
-        $markerArray['###IMAGEMANIPULATION_SELECT###'] = '<span class="tx-dlf-tools-imagetools" id="tx-dlf-tools-imagetools" data-dic="imagemanipulation-on:' . $this->pi_getLL('imagemanipulation-on', '', TRUE) . ';imagemanipulation-off:' . $this->pi_getLL('imagemanipulation-off', '', TRUE) . ';reset:' . $this->pi_getLL('reset', '', TRUE) . ';saturation:' . $this->pi_getLL('saturation', '', TRUE) . ';hue:' . $this->pi_getLL('hue', '', TRUE) . ';contrast:' . $this->pi_getLL('contrast', '', TRUE) . ';brightness:' . $this->pi_getLL('brightness', '', TRUE) . ';invert:' . $this->pi_getLL('invert', '', TRUE) . '" title="' . $this->pi_getLL('no-support', '', TRUE) . '"></span>';
48
+        $markerArray['###IMAGEMANIPULATION_SELECT###'] = '<span class="tx-dlf-tools-imagetools" id="tx-dlf-tools-imagetools" data-dic="imagemanipulation-on:'.$this->pi_getLL('imagemanipulation-on', '', TRUE).';imagemanipulation-off:'.$this->pi_getLL('imagemanipulation-off', '', TRUE).';reset:'.$this->pi_getLL('reset', '', TRUE).';saturation:'.$this->pi_getLL('saturation', '', TRUE).';hue:'.$this->pi_getLL('hue', '', TRUE).';contrast:'.$this->pi_getLL('contrast', '', TRUE).';brightness:'.$this->pi_getLL('brightness', '', TRUE).';invert:'.$this->pi_getLL('invert', '', TRUE).'" title="'.$this->pi_getLL('no-support', '', TRUE).'"></span>';
49 49
         $content .= $this->templateService->substituteMarkerArray($this->template, $markerArray);
50 50
         return $this->pi_wrapInBaseClass($content);
51 51
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,8 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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'])) {
Please login to merge, or discard this patch.
Classes/Plugin/Tools/PdfDownloadTool.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
             empty($page1Link)
115 115
             && empty($page2Link)
116 116
         ) {
117
-            Helper::devLog('File not found in fileGrp "' . $this->conf['fileGrpDownload'] . '"', DEVLOG_SEVERITY_WARNING);
117
+            Helper::devLog('File not found in fileGrp "'.$this->conf['fileGrpDownload'].'"', DEVLOG_SEVERITY_WARNING);
118 118
         }
119 119
         // Wrap URLs with HTML.
120 120
         if (!empty($page1Link)) {
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         if (!empty($page2Link)) {
128 128
             $page2Link = $this->cObj->typoLink($this->pi_getLL('rightPage', ''), ['parameter' => $page2Link, 'title' => $this->pi_getLL('rightPage', '')]);
129 129
         }
130
-        return $page1Link . $page2Link;
130
+        return $page1Link.$page2Link;
131 131
     }
132 132
 
133 133
     /**
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         if (!empty($workLink)) {
154 154
             $workLink = $this->cObj->typoLink($this->pi_getLL('work', ''), ['parameter' => $workLink, 'title' => $this->pi_getLL('work', '')]);
155 155
         } else {
156
-            Helper::devLog('File not found in fileGrp "' . $this->conf['fileGrpDownload'] . '"', DEVLOG_SEVERITY_WARNING);
156
+            Helper::devLog('File not found in fileGrp "'.$this->conf['fileGrpDownload'].'"', DEVLOG_SEVERITY_WARNING);
157 157
         }
158 158
         return $workLink;
159 159
     }
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -23,8 +23,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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']])) {
Please login to merge, or discard this patch.
Classes/Plugin/Tools/SearchInDocumentTool.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
     protected function addSearchInDocumentJS()
109 109
     {
110 110
         $pageRenderer = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class);
111
-        $pageRenderer->addJsFooterFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'Resources/Public/Javascript/Search/SearchInDocument.js');
111
+        $pageRenderer->addJsFooterFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'Resources/Public/Javascript/Search/SearchInDocument.js');
112 112
     }
113 113
 
114 114
     /**
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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.
Please login to merge, or discard this patch.
Classes/Plugin/Tools/AnnotationTool.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,11 +76,11 @@
 block discarded – undo
76 76
         $annotationContainers = $this->doc->physicalStructureInfo[$this->doc->physicalStructure[$this->piVars['page']]]['annotationContainers'];
77 77
         if ($annotationContainers != NULL && sizeof($annotationContainers) > 0) {
78 78
             $markerArray['###ANNOTATION_SELECT###'] = '<a class="select switchoff" id="tx-dlf-tools-annotations" title="" data-dic="annotations-on:'
79
-                . $this->pi_getLL('annotations-on', '', TRUE) . ';annotations-off:'
80
-                . $this->pi_getLL('annotations-off', '', TRUE) . '">&nbsp;</a>';
79
+                . $this->pi_getLL('annotations-on', '', TRUE).';annotations-off:'
80
+                . $this->pi_getLL('annotations-off', '', TRUE).'">&nbsp;</a>';
81 81
             // TODO selector for different motivations
82 82
         } else {
83
-            $markerArray['###ANNOTATION_SELECT###'] = '<span class="no-annotations">' . $this->pi_getLL('annotations-not-available', '', TRUE) . '</span>';
83
+            $markerArray['###ANNOTATION_SELECT###'] = '<span class="no-annotations">'.$this->pi_getLL('annotations-not-available', '', TRUE).'</span>';
84 84
         }
85 85
         $content .= $this->templateService->substituteMarkerArray($this->template, $markerArray);
86 86
         return $this->pi_wrapInBaseClass($content);
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 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 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
 block discarded – undo
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'])) {
Please login to merge, or discard this patch.
Classes/Plugin/Tools/FulltextTool.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,9 +75,9 @@
 block discarded – undo
75 75
         $this->getTemplate();
76 76
         $fullTextFile = $this->doc->physicalStructureInfo[$this->doc->physicalStructure[$this->piVars['page']]]['files'][$this->conf['fileGrpFulltext']];
77 77
         if (!empty($fullTextFile)) {
78
-            $markerArray['###FULLTEXT_SELECT###'] = '<a class="select switchoff" id="tx-dlf-tools-fulltext" title="" data-dic="fulltext-on:' . $this->pi_getLL('fulltext-on', '', TRUE) . ';fulltext-off:' . $this->pi_getLL('fulltext-off', '', TRUE) . '">&nbsp;</a>';
78
+            $markerArray['###FULLTEXT_SELECT###'] = '<a class="select switchoff" id="tx-dlf-tools-fulltext" title="" data-dic="fulltext-on:'.$this->pi_getLL('fulltext-on', '', TRUE).';fulltext-off:'.$this->pi_getLL('fulltext-off', '', TRUE).'">&nbsp;</a>';
79 79
         } else {
80
-            $markerArray['###FULLTEXT_SELECT###'] = '<span class="no-fulltext">' . $this->pi_getLL('fulltext-not-available', '', TRUE) . '</span>';
80
+            $markerArray['###FULLTEXT_SELECT###'] = '<span class="no-fulltext">'.$this->pi_getLL('fulltext-not-available', '', TRUE).'</span>';
81 81
         }
82 82
         $content .= $this->templateService->substituteMarkerArray($this->template, $markerArray);
83 83
         return $this->pi_wrapInBaseClass($content);
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,8 +23,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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'])) {
Please login to merge, or discard this patch.
Classes/Plugin/Tools/ImageDownloadTool.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -112,13 +112,13 @@
 block discarded – undo
112 112
                 }
113 113
                 $linkConf = [
114 114
                     'parameter' => $image['url'],
115
-                    'title' => $label . ' ' . $mimetypeLabel,
115
+                    'title' => $label.' '.$mimetypeLabel,
116 116
                     'additionalParams' => '',
117 117
                 ];
118
-                $imageLink = $this->cObj->typoLink($label . ' ' . $mimetypeLabel, $linkConf);
118
+                $imageLink = $this->cObj->typoLink($label.' '.$mimetypeLabel, $linkConf);
119 119
                 break;
120 120
             } else {
121
-                Helper::devLog('File not found in fileGrp "' . $fileGrp . '"', DEVLOG_SEVERITY_WARNING);
121
+                Helper::devLog('File not found in fileGrp "'.$fileGrp.'"', DEVLOG_SEVERITY_WARNING);
122 122
             }
123 123
         }
124 124
         return $imageLink;
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,8 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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']);
Please login to merge, or discard this patch.