Passed
Pull Request — master (#91)
by Alexander
02:40
created
Classes/Plugin/Statistics.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -180,8 +180,8 @@
 block discarded – undo
180 180
                 '###VOLUMES###'
181 181
             ],
182 182
             'value' => [
183
-                $countTitles . ($countTitles > 1 ? htmlspecialchars($this->pi_getLL('titles', '')) : htmlspecialchars($this->pi_getLL('title', ''))),
184
-                $countVolumes . ($countVolumes > 1 ? htmlspecialchars($this->pi_getLL('volumes', '')) : htmlspecialchars($this->pi_getLL('volume', '')))
183
+                $countTitles.($countTitles > 1 ? htmlspecialchars($this->pi_getLL('titles', '')) : htmlspecialchars($this->pi_getLL('title', ''))),
184
+                $countVolumes.($countVolumes > 1 ? htmlspecialchars($this->pi_getLL('volumes', '')) : htmlspecialchars($this->pi_getLL('volume', '')))
185 185
             ]
186 186
         ];
187 187
         // Apply replacements.
Please login to merge, or discard this patch.
Classes/Plugin/Tools/AnnotationTool.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,9 +84,9 @@
 block discarded – undo
84 84
             $annotationContainers != null
85 85
             && sizeof($annotationContainers) > 0
86 86
         ) {
87
-            $markerArray['###ANNOTATION_SELECT###'] = '<a class="select switchoff" id="tx-dlf-tools-annotations" title="" data-dic="annotations-on:' . htmlspecialchars($this->pi_getLL('annotations-on', '')) . ';annotations-off:' . htmlspecialchars($this->pi_getLL('annotations-off', '')) . '">&nbsp;</a>';
87
+            $markerArray['###ANNOTATION_SELECT###'] = '<a class="select switchoff" id="tx-dlf-tools-annotations" title="" data-dic="annotations-on:'.htmlspecialchars($this->pi_getLL('annotations-on', '')).';annotations-off:'.htmlspecialchars($this->pi_getLL('annotations-off', '')).'">&nbsp;</a>';
88 88
         } else {
89
-            $markerArray['###ANNOTATION_SELECT###'] = '<span class="no-annotations">' . htmlspecialchars($this->pi_getLL('annotations-not-available', '')) . '</span>';
89
+            $markerArray['###ANNOTATION_SELECT###'] = '<span class="no-annotations">'.htmlspecialchars($this->pi_getLL('annotations-not-available', '')).'</span>';
90 90
         }
91 91
         $content .= $this->templateService->substituteMarkerArray($this->template, $markerArray);
92 92
         return $this->pi_wrapInBaseClass($content);
Please login to merge, or discard this patch.
Classes/Plugin/Tools/ImageManipulationTool.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         $parentContainer = !empty($this->conf['parentContainer']) ? $this->conf['parentContainer'] : '.tx-dlf-imagemanipulationtool';
48 48
         // Load template file.
49 49
         $this->getTemplate();
50
-        $markerArray['###IMAGEMANIPULATION_SELECT###'] = '<span class="tx-dlf-tools-imagetools" id="tx-dlf-tools-imagetools" data-dic="imagemanipulation-on:' . htmlspecialchars($this->pi_getLL('imagemanipulation-on', '')) . ';imagemanipulation-off:' . htmlspecialchars($this->pi_getLL('imagemanipulation-off', '')) . ';reset:' . htmlspecialchars($this->pi_getLL('reset', '')) . ';saturation:' . htmlspecialchars($this->pi_getLL('saturation', '')) . ';hue:' . htmlspecialchars($this->pi_getLL('hue', '')) . ';contrast:' . htmlspecialchars($this->pi_getLL('contrast', '')) . ';brightness:' . htmlspecialchars($this->pi_getLL('brightness', '')) . ';invert:' . htmlspecialchars($this->pi_getLL('invert', '')) . ';parentContainer:' . $parentContainer . '" title="' . htmlspecialchars($this->pi_getLL('no-support', '')) . '"></span>';
50
+        $markerArray['###IMAGEMANIPULATION_SELECT###'] = '<span class="tx-dlf-tools-imagetools" id="tx-dlf-tools-imagetools" data-dic="imagemanipulation-on:'.htmlspecialchars($this->pi_getLL('imagemanipulation-on', '')).';imagemanipulation-off:'.htmlspecialchars($this->pi_getLL('imagemanipulation-off', '')).';reset:'.htmlspecialchars($this->pi_getLL('reset', '')).';saturation:'.htmlspecialchars($this->pi_getLL('saturation', '')).';hue:'.htmlspecialchars($this->pi_getLL('hue', '')).';contrast:'.htmlspecialchars($this->pi_getLL('contrast', '')).';brightness:'.htmlspecialchars($this->pi_getLL('brightness', '')).';invert:'.htmlspecialchars($this->pi_getLL('invert', '')).';parentContainer:'.$parentContainer.'" title="'.htmlspecialchars($this->pi_getLL('no-support', '')).'"></span>';
51 51
         $content .= $this->templateService->substituteMarkerArray($this->template, $markerArray);
52 52
         return $this->pi_wrapInBaseClass($content);
53 53
     }
Please login to merge, or discard this patch.
Classes/Plugin/Basket.php 1 patch
Spacing   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -164,9 +164,9 @@  discard block
 block discarded – undo
164 164
 
165 165
         if ($resultMail->rowCount() > 0) {
166 166
             $mailForm = '<select name="tx_dlf[mail_action]">';
167
-            $mailForm .= '<option value="">' . htmlspecialchars($this->pi_getLL('chooseMail', '')) . '</option>';
167
+            $mailForm .= '<option value="">'.htmlspecialchars($this->pi_getLL('chooseMail', '')).'</option>';
168 168
             while ($row = $resultMail->fetch()) {
169
-                $mailForm .= '<option value="' . $row['uid'] . '">' . htmlspecialchars($row['name']) . ' (' . htmlspecialchars($row['mail']) . ')</option>';
169
+                $mailForm .= '<option value="'.$row['uid'].'">'.htmlspecialchars($row['name']).' ('.htmlspecialchars($row['mail']).')</option>';
170 170
             }
171 171
             $mailForm .= '</select><input type="submit">';
172 172
         }
@@ -175,9 +175,9 @@  discard block
 block discarded – undo
175 175
         // remove action form
176 176
         $markerArray['###REMOVEACTION###'] = '
177 177
    <select name="tx_dlf[basket_action]">
178
-    <option value="">' . htmlspecialchars($this->pi_getLL('chooseAction', '')) . '</option>
179
-    <option value="open">' . htmlspecialchars($this->pi_getLL('download', '')) . '</option>
180
-    <option value="remove">' . htmlspecialchars($this->pi_getLL('remove', '')) . '</option>
178
+    <option value="">' . htmlspecialchars($this->pi_getLL('chooseAction', '')).'</option>
179
+    <option value="open">' . htmlspecialchars($this->pi_getLL('download', '')).'</option>
180
+    <option value="remove">' . htmlspecialchars($this->pi_getLL('remove', '')).'</option>
181 181
    </select>
182 182
    <input type="submit">
183 183
   ';
@@ -198,9 +198,9 @@  discard block
 block discarded – undo
198 198
         $printForm = '';
199 199
         if ($resultPrinter->rowCount() > 0) {
200 200
             $printForm = '<select name="tx_dlf[print_action]">';
201
-            $printForm .= '<option value="">' . htmlspecialchars($this->pi_getLL('choosePrinter', '')) . '</option>';
201
+            $printForm .= '<option value="">'.htmlspecialchars($this->pi_getLL('choosePrinter', '')).'</option>';
202 202
             while ($row = $resultPrinter->fetch()) {
203
-                $printForm .= '<option value="' . $row['uid'] . '">' . htmlspecialchars($row['label']) . '</option>';
203
+                $printForm .= '<option value="'.$row['uid'].'">'.htmlspecialchars($row['label']).'</option>';
204 204
             }
205 205
             $printForm .= '</select><input type="submit" />';
206 206
         }
@@ -257,23 +257,23 @@  discard block
 block discarded – undo
257 257
         $rotation = $data['rotation'];
258 258
         $docData = $this->getDocumentData($id, $data);
259 259
         $markerArray['###BASKETDATA###'] = $docData['downloadLink'];
260
-        $arrayKey = $id . '_' . $startpage;
260
+        $arrayKey = $id.'_'.$startpage;
261 261
         if (isset($startX)) {
262
-            $arrayKey .= '_' . $startX;
262
+            $arrayKey .= '_'.$startX;
263 263
         }
264 264
         if (isset($endX)) {
265
-            $arrayKey .= '_' . $endX;
265
+            $arrayKey .= '_'.$endX;
266 266
         }
267
-        $controlMark = '<input value="' . $id . '" name="tx_dlf[selected][' . $arrayKey . '][id]" type="checkbox">';
268
-        $controlMark .= '<input value="' . $startpage . '" name="tx_dlf[selected][' . $arrayKey . '][startpage]" type="hidden">';
269
-        $controlMark .= '<input value="' . $endpage . '" name="tx_dlf[selected][' . $arrayKey . '][endpage]" type="hidden">';
267
+        $controlMark = '<input value="'.$id.'" name="tx_dlf[selected]['.$arrayKey.'][id]" type="checkbox">';
268
+        $controlMark .= '<input value="'.$startpage.'" name="tx_dlf[selected]['.$arrayKey.'][startpage]" type="hidden">';
269
+        $controlMark .= '<input value="'.$endpage.'" name="tx_dlf[selected]['.$arrayKey.'][endpage]" type="hidden">';
270 270
         // add hidden fields for detail information
271 271
         if ($startX) {
272
-            $controlMark .= '<input type="hidden" name="tx_dlf[selected][' . $arrayKey . '][startX]" value="' . $startX . '">';
273
-            $controlMark .= '<input type="hidden" name="tx_dlf[selected][' . $arrayKey . '][startY]"  value="' . $startY . '">';
274
-            $controlMark .= '<input type="hidden" name="tx_dlf[selected][' . $arrayKey . '][endX]"  value="' . $endX . '">';
275
-            $controlMark .= '<input type="hidden" name="tx_dlf[selected][' . $arrayKey . '][endY]"  value="' . $endY . '">';
276
-            $controlMark .= '<input type="hidden" name="tx_dlf[selected][' . $arrayKey . '][rotation]"  value="' . $rotation . '">';
272
+            $controlMark .= '<input type="hidden" name="tx_dlf[selected]['.$arrayKey.'][startX]" value="'.$startX.'">';
273
+            $controlMark .= '<input type="hidden" name="tx_dlf[selected]['.$arrayKey.'][startY]"  value="'.$startY.'">';
274
+            $controlMark .= '<input type="hidden" name="tx_dlf[selected]['.$arrayKey.'][endX]"  value="'.$endX.'">';
275
+            $controlMark .= '<input type="hidden" name="tx_dlf[selected]['.$arrayKey.'][endY]"  value="'.$endY.'">';
276
+            $controlMark .= '<input type="hidden" name="tx_dlf[selected]['.$arrayKey.'][rotation]"  value="'.$rotation.'">';
277 277
         }
278 278
         // return one entry
279 279
         $markerArray['###CONTROLS###'] = $controlMark;
@@ -329,12 +329,12 @@  discard block
 block discarded – undo
329 329
             if ($_piVars['addToBasket'] == 'list') {
330 330
                 $documentItem['endpage'] = $document->numPages;
331 331
             }
332
-            $arrayKey = $documentItem['id'] . '_' . $page;
332
+            $arrayKey = $documentItem['id'].'_'.$page;
333 333
             if (!empty($documentItem['startX'])) {
334
-                $arrayKey .= '_' . $documentItem['startX'];
334
+                $arrayKey .= '_'.$documentItem['startX'];
335 335
             }
336 336
             if (!empty($documentItem['endX'])) {
337
-                $arrayKey .= '_' . $documentItem['endX'];
337
+                $arrayKey .= '_'.$documentItem['endX'];
338 338
             }
339 339
             // do not add more than one identical object
340 340
             if (!in_array($arrayKey, $items)) {
@@ -353,14 +353,14 @@  discard block
 block discarded – undo
353 353
                     // remove parameter endpage
354 354
                     $pdfParams = str_replace(",##endpage##", '', $pdfParams);
355 355
                 }
356
-                $pdfGenerateUrl = $this->conf['pdfgenerate'] . $pdfParams;
356
+                $pdfGenerateUrl = $this->conf['pdfgenerate'].$pdfParams;
357 357
                 if ($this->conf['pregeneration']) {
358 358
                     // send ajax request to webapp
359 359
                     $output .= '
360 360
      <script>
361 361
       $(document).ready(function(){
362 362
        $.ajax({
363
-         url: "' . $pdfGenerateUrl . '",
363
+         url: "' . $pdfGenerateUrl.'",
364 364
        }).done(function() {
365 365
        });
366 366
       });
@@ -398,12 +398,12 @@  discard block
 block discarded – undo
398 398
         }
399 399
         foreach ($_piVars['selected'] as $value) {
400 400
             if (isset($value['id'])) {
401
-                $arrayKey = $value['id'] . '_' . $value['startpage'];
401
+                $arrayKey = $value['id'].'_'.$value['startpage'];
402 402
                 if (isset($value['startX'])) {
403
-                    $arrayKey .= '_' . $value['startX'];
403
+                    $arrayKey .= '_'.$value['startX'];
404 404
                 }
405 405
                 if (isset($value['endX'])) {
406
-                    $arrayKey .= '_' . $value['endX'];
406
+                    $arrayKey .= '_'.$value['endX'];
407 407
                 }
408 408
                 if (isset($items[$arrayKey])) {
409 409
                     unset($items[$arrayKey]);
@@ -442,10 +442,10 @@  discard block
 block discarded – undo
442 442
         foreach ($this->piVars['selected'] as $docValue) {
443 443
             if ($docValue['id']) {
444 444
                 $docData = $this->getDocumentData($docValue['id'], $docValue);
445
-                $pdfUrl .= $docData['urlParams'] . $this->conf['pdfparamseparator'];
445
+                $pdfUrl .= $docData['urlParams'].$this->conf['pdfparamseparator'];
446 446
             }
447 447
         }
448
-        header('Location: ' . $pdfUrl);
448
+        header('Location: '.$pdfUrl);
449 449
         ob_end_flush();
450 450
         exit;
451 451
     }
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
             $urlParams = str_replace("##endx##", $data['endX'] === "" ? "" : intval($data['endX']), $urlParams);
480 480
             $urlParams = str_replace("##endy##", $data['endY'] === "" ? "" : intval($data['endY']), $urlParams);
481 481
             $urlParams = str_replace("##rotation##", $data['rotation'] === "" ? "" : intval($data['rotation']), $urlParams);
482
-            $downloadUrl = $this->conf['pdfgenerate'] . $urlParams;
482
+            $downloadUrl = $this->conf['pdfgenerate'].$urlParams;
483 483
             $title = $document->getTitle($id, true);
484 484
             if (empty($title)) {
485 485
                 $title = $this->pi_getLL('noTitle', '');
@@ -488,15 +488,15 @@  discard block
 block discarded – undo
488 488
             $info = '';
489 489
             if ($data['startX'] != '' && $data['endX'] != '') {
490 490
                 // cutout
491
-                $info .= htmlspecialchars($this->pi_getLL('cutout', '')) . ' ';
491
+                $info .= htmlspecialchars($this->pi_getLL('cutout', '')).' ';
492 492
             }
493 493
             if ($data['startpage'] == $data['endpage']) {
494 494
                 // One page
495
-                $info .= htmlspecialchars($this->pi_getLL('page', '')) . ' ' . $data['startpage'];
495
+                $info .= htmlspecialchars($this->pi_getLL('page', '')).' '.$data['startpage'];
496 496
             } else {
497
-                $info .= htmlspecialchars($this->pi_getLL('page', '')) . ' ' . $data['startpage'] . '-' . $data['endpage'];
497
+                $info .= htmlspecialchars($this->pi_getLL('page', '')).' '.$data['startpage'].'-'.$data['endpage'];
498 498
             }
499
-            $downloadLink = '<a href="' . $downloadUrl . '" target="_blank">' . htmlspecialchars($title) . '</a> (' . $info . ')';
499
+            $downloadLink = '<a href="'.$downloadUrl.'" target="_blank">'.htmlspecialchars($title).'</a> ('.$info.')';
500 500
             if ($data['startpage'] == $data['endpage']) {
501 501
                 $pageNums = 1;
502 502
             } else {
@@ -541,7 +541,7 @@  discard block
 block discarded – undo
541 541
 
542 542
         $allResults = $resultMail->fetchAll();
543 543
         $mailData = $allResults[0];
544
-        $mailText = htmlspecialchars($this->pi_getLL('mailBody', '')) . "\n";
544
+        $mailText = htmlspecialchars($this->pi_getLL('mailBody', ''))."\n";
545 545
         $numberOfPages = 0;
546 546
         $pdfUrl = $this->conf['pdfdownload'];
547 547
         // prepare links
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
             if ($docValue['id']) {
550 550
                 $explodeId = explode("_", $docValue['id']);
551 551
                 $docData = $this->getDocumentData($explodeId[0], $docValue);
552
-                $pdfUrl .= $docData['urlParams'] . $this->conf['pdfparamseparator'];
552
+                $pdfUrl .= $docData['urlParams'].$this->conf['pdfparamseparator'];
553 553
                 $pages = (abs(intval($docValue['startpage']) - intval($docValue['endpage'])));
554 554
                 if ($pages === 0) {
555 555
                     $numberOfPages = $numberOfPages + 1;
@@ -560,7 +560,7 @@  discard block
 block discarded – undo
560 560
         }
561 561
         // Remove leading/tailing pdfparamseperator
562 562
         $pdfUrl = trim($pdfUrl, $this->conf['pdfparamseparator']);
563
-        $mailBody = $mailText . $pdfUrl;
563
+        $mailBody = $mailText.$pdfUrl;
564 564
         // Get hook objects.
565 565
         $hookObjects = Helper::getHookObjects($this->scriptRelPath);
566 566
         // Hook for getting a customized mail body.
@@ -593,12 +593,12 @@  discard block
 block discarded – undo
593 593
             // internal user
594 594
             $insertArray['user_id'] = $GLOBALS["TSFE"]->fe_user->user['uid'];
595 595
             $insertArray['name'] = $GLOBALS["TSFE"]->fe_user->user['username'];
596
-            $insertArray['label'] = 'Mail: ' . $mailData['mail'];
596
+            $insertArray['label'] = 'Mail: '.$mailData['mail'];
597 597
         } else {
598 598
             // external user
599 599
             $insertArray['user_id'] = 0;
600 600
             $insertArray['name'] = 'n/a';
601
-            $insertArray['label'] = 'Mail: ' . $mailData['mail'];
601
+            $insertArray['label'] = 'Mail: '.$mailData['mail'];
602 602
         }
603 603
         // add action to protocol
604 604
         GeneralUtility::makeInstance(ConnectionPool::class)
@@ -623,7 +623,7 @@  discard block
 block discarded – undo
623 623
         foreach ($this->piVars['selected'] as $docId => $docValue) {
624 624
             if ($docValue['id']) {
625 625
                 $docData = $this->getDocumentData($docValue['id'], $docValue);
626
-                $pdfUrl .= $docData['urlParams'] . $this->conf['pdfparamseparator'];
626
+                $pdfUrl .= $docData['urlParams'].$this->conf['pdfparamseparator'];
627 627
                 $numberOfPages += $docData['pageNums'];
628 628
             }
629 629
         }
@@ -654,7 +654,7 @@  discard block
 block discarded – undo
654 654
                 if ($docValue['id']) {
655 655
                     $explodeId = explode("_", $docId);
656 656
                     $docData = $this->getDocumentData($explodeId[0], $docValue);
657
-                    $pdfUrl .= $docData['urlParams'] . $this->conf['pdfparamseparator'];
657
+                    $pdfUrl .= $docData['urlParams'].$this->conf['pdfparamseparator'];
658 658
                     $numberOfPages += $docData['pageNums'];
659 659
                 }
660 660
             }
@@ -671,12 +671,12 @@  discard block
 block discarded – undo
671 671
             // internal user
672 672
             $insertArray['user_id'] = $GLOBALS["TSFE"]->fe_user->user['uid'];
673 673
             $insertArray['name'] = $GLOBALS["TSFE"]->fe_user->user['username'];
674
-            $insertArray['label'] = 'Print: ' . $printerData['label'];
674
+            $insertArray['label'] = 'Print: '.$printerData['label'];
675 675
         } else {
676 676
             // external user
677 677
             $insertArray['user_id'] = 0;
678 678
             $insertArray['name'] = 'n/a';
679
-            $insertArray['label'] = 'Print: ' . $printerData['label'];
679
+            $insertArray['label'] = 'Print: '.$printerData['label'];
680 680
         }
681 681
         // add action to protocol
682 682
         GeneralUtility::makeInstance(ConnectionPool::class)
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
                 'tx_dlf_actionlog',
686 686
                 $insertArray
687 687
             );
688
-        header('Location: ' . $pdfUrl);
688
+        header('Location: '.$pdfUrl);
689 689
         ob_end_flush();
690 690
         exit;
691 691
     }
Please login to merge, or discard this patch.
Classes/Plugin/Navigation.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -69,18 +69,18 @@  discard block
 block discarded – undo
69 69
             'forceAbsoluteUrl' => !empty($this->conf['forceAbsoluteUrl']) ? 1 : 0,
70 70
             'forceAbsoluteUrl.' => ['scheme' => !empty($this->conf['forceAbsoluteUrl']) && !empty($this->conf['forceAbsoluteUrlHttps']) ? 'https' : 'http']
71 71
         ];
72
-        $output = '<form action="' . $this->cObj->typoLink_URL($linkConf) . '" method="get"><div><input type="hidden" name="id" value="' . $GLOBALS['TSFE']->id . '" />';
72
+        $output = '<form action="'.$this->cObj->typoLink_URL($linkConf).'" method="get"><div><input type="hidden" name="id" value="'.$GLOBALS['TSFE']->id.'" />';
73 73
         // Add plugin variables.
74 74
         foreach ($this->piVars as $piVar => $value) {
75 75
             if ($piVar != 'page' && $piVar != 'DATA' && !empty($value)) {
76
-                $output .= '<input type="hidden" name="' . $this->prefixId . '[' . preg_replace('/[^A-Za-z0-9_-]/', '', $piVar) . ']" value="' . htmlspecialchars($value) . '" />';
76
+                $output .= '<input type="hidden" name="'.$this->prefixId.'['.preg_replace('/[^A-Za-z0-9_-]/', '', $piVar).']" value="'.htmlspecialchars($value).'" />';
77 77
             }
78 78
         }
79 79
         // Add page selector.
80
-        $uniqId = uniqid(Helper::getUnqualifiedClassName(get_class($this)) . '-');
81
-        $output .= '<label for="' . $uniqId . '">' . htmlspecialchars($this->pi_getLL('selectPage', '')) . '</label><select id="' . $uniqId . '" name="' . $this->prefixId . '[page]" onchange="javascript:this.form.submit();"' . ($this->doc->numPages < 1 ? ' disabled="disabled"' : '') . '>';
80
+        $uniqId = uniqid(Helper::getUnqualifiedClassName(get_class($this)).'-');
81
+        $output .= '<label for="'.$uniqId.'">'.htmlspecialchars($this->pi_getLL('selectPage', '')).'</label><select id="'.$uniqId.'" name="'.$this->prefixId.'[page]" onchange="javascript:this.form.submit();"'.($this->doc->numPages < 1 ? ' disabled="disabled"' : '').'>';
82 82
         for ($i = 1; $i <= $this->doc->numPages; $i++) {
83
-            $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>';
83
+            $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>';
84 84
         }
85 85
         $output .= '</select></div></form>';
86 86
         return $output;
@@ -138,53 +138,53 @@  discard block
 block discarded – undo
138 138
         if ($this->piVars['page'] > 1) {
139 139
             $markerArray['###FIRST###'] = $this->makeLink(htmlspecialchars($this->pi_getLL('firstPage', '')), ['page' => 1]);
140 140
         } else {
141
-            $markerArray['###FIRST###'] = '<span title="' . htmlspecialchars($this->pi_getLL('firstPage', '')) . '">' . htmlspecialchars($this->pi_getLL('firstPage', '')) . '</span>';
141
+            $markerArray['###FIRST###'] = '<span title="'.htmlspecialchars($this->pi_getLL('firstPage', '')).'">'.htmlspecialchars($this->pi_getLL('firstPage', '')).'</span>';
142 142
         }
143 143
         // Link back X pages.
144 144
         if ($this->piVars['page'] > $pageSteps) {
145 145
             $markerArray['###BACK###'] = $this->makeLink(htmlspecialchars(sprintf($this->pi_getLL('backXPages', ''), $pageSteps)), ['page' => $this->piVars['page'] - $pageSteps]);
146 146
         } else {
147
-            $markerArray['###BACK###'] = '<span title="' . htmlspecialchars(sprintf($this->pi_getLL('backXPages', ''), $pageSteps)) . '">' . htmlspecialchars(sprintf($this->pi_getLL('backXPages', ''), $pageSteps)) . '</span>';
147
+            $markerArray['###BACK###'] = '<span title="'.htmlspecialchars(sprintf($this->pi_getLL('backXPages', ''), $pageSteps)).'">'.htmlspecialchars(sprintf($this->pi_getLL('backXPages', ''), $pageSteps)).'</span>';
148 148
         }
149 149
         // Link to previous page.
150 150
         if ($this->piVars['page'] > (1 + $this->piVars['double'])) {
151 151
             $markerArray['###PREVIOUS###'] = $this->makeLink(htmlspecialchars($this->pi_getLL('prevPage', '')), ['page' => $this->piVars['page'] - (1 + $this->piVars['double'])]);
152 152
         } else {
153
-            $markerArray['###PREVIOUS###'] = '<span title="' . htmlspecialchars($this->pi_getLL('prevPage', '')) . '">' . htmlspecialchars($this->pi_getLL('prevPage', '')) . '</span>';
153
+            $markerArray['###PREVIOUS###'] = '<span title="'.htmlspecialchars($this->pi_getLL('prevPage', '')).'">'.htmlspecialchars($this->pi_getLL('prevPage', '')).'</span>';
154 154
         }
155 155
         // Link to next page.
156 156
         if ($this->piVars['page'] < ($this->doc->numPages - $this->piVars['double'])) {
157 157
             $markerArray['###NEXT###'] = $this->makeLink(htmlspecialchars($this->pi_getLL('nextPage', '')), ['page' => $this->piVars['page'] + (1 + $this->piVars['double'])]);
158 158
         } else {
159
-            $markerArray['###NEXT###'] = '<span title="' . htmlspecialchars($this->pi_getLL('nextPage', '')) . '">' . htmlspecialchars($this->pi_getLL('nextPage', '')) . '</span>';
159
+            $markerArray['###NEXT###'] = '<span title="'.htmlspecialchars($this->pi_getLL('nextPage', '')).'">'.htmlspecialchars($this->pi_getLL('nextPage', '')).'</span>';
160 160
         }
161 161
         // Link forward X pages.
162 162
         if ($this->piVars['page'] <= ($this->doc->numPages - $pageSteps)) {
163 163
             $markerArray['###FORWARD###'] = $this->makeLink(htmlspecialchars(sprintf($this->pi_getLL('forwardXPages', ''), $pageSteps)), ['page' => $this->piVars['page'] + $pageSteps]);
164 164
         } else {
165
-            $markerArray['###FORWARD###'] = '<span title="' . htmlspecialchars(sprintf($this->pi_getLL('forwardXPages', ''), $pageSteps)) . '">' . htmlspecialchars(sprintf($this->pi_getLL('forwardXPages', ''), $pageSteps)) . '</span>';
165
+            $markerArray['###FORWARD###'] = '<span title="'.htmlspecialchars(sprintf($this->pi_getLL('forwardXPages', ''), $pageSteps)).'">'.htmlspecialchars(sprintf($this->pi_getLL('forwardXPages', ''), $pageSteps)).'</span>';
166 166
         }
167 167
         // Link to last page.
168 168
         if ($this->piVars['page'] < $this->doc->numPages) {
169 169
             $markerArray['###LAST###'] = $this->makeLink(htmlspecialchars($this->pi_getLL('lastPage', '')), ['page' => $this->doc->numPages]);
170 170
         } else {
171
-            $markerArray['###LAST###'] = '<span title="' . htmlspecialchars($this->pi_getLL('lastPage', '')) . '">' . htmlspecialchars($this->pi_getLL('lastPage', '')) . '</span>';
171
+            $markerArray['###LAST###'] = '<span title="'.htmlspecialchars($this->pi_getLL('lastPage', '')).'">'.htmlspecialchars($this->pi_getLL('lastPage', '')).'</span>';
172 172
         }
173 173
         // Add double page switcher.
174 174
         if ($this->doc->numPages > 0) {
175 175
             if (!$this->piVars['double']) {
176
-                $markerArray['###DOUBLEPAGE###'] = $this->makeLink(htmlspecialchars($this->pi_getLL('doublePageOn', '')), ['double' => 1], 'class="tx-dlf-navigation-doubleOn" title="' . htmlspecialchars($this->pi_getLL('doublePageOn', '')) . '"');
176
+                $markerArray['###DOUBLEPAGE###'] = $this->makeLink(htmlspecialchars($this->pi_getLL('doublePageOn', '')), ['double' => 1], 'class="tx-dlf-navigation-doubleOn" title="'.htmlspecialchars($this->pi_getLL('doublePageOn', '')).'"');
177 177
             } else {
178
-                $markerArray['###DOUBLEPAGE###'] = $this->makeLink(htmlspecialchars($this->pi_getLL('doublePageOff', '')), ['double' => 0], 'class="tx-dlf-navigation-doubleOff" title="' . htmlspecialchars($this->pi_getLL('doublePageOff', '')) . '"');
178
+                $markerArray['###DOUBLEPAGE###'] = $this->makeLink(htmlspecialchars($this->pi_getLL('doublePageOff', '')), ['double' => 0], 'class="tx-dlf-navigation-doubleOff" title="'.htmlspecialchars($this->pi_getLL('doublePageOff', '')).'"');
179 179
             }
180 180
             if ($this->piVars['double'] && $this->piVars['page'] < $this->doc->numPages) {
181
-                $markerArray['###DOUBLEPAGE+1###'] = $this->makeLink(htmlspecialchars($this->pi_getLL('doublePage+1', '')), ['page' => $this->piVars['page'] + 1], 'title="' . htmlspecialchars($this->pi_getLL('doublePage+1', '')) . '"');
181
+                $markerArray['###DOUBLEPAGE+1###'] = $this->makeLink(htmlspecialchars($this->pi_getLL('doublePage+1', '')), ['page' => $this->piVars['page'] + 1], 'title="'.htmlspecialchars($this->pi_getLL('doublePage+1', '')).'"');
182 182
             } else {
183
-                $markerArray['###DOUBLEPAGE+1###'] = '<span title="' . htmlspecialchars($this->pi_getLL('doublePage+1', '')) . '">' . htmlspecialchars($this->pi_getLL('doublePage+1', '')) . '</span>';
183
+                $markerArray['###DOUBLEPAGE+1###'] = '<span title="'.htmlspecialchars($this->pi_getLL('doublePage+1', '')).'">'.htmlspecialchars($this->pi_getLL('doublePage+1', '')).'</span>';
184 184
             }
185 185
         } else {
186
-            $markerArray['###DOUBLEPAGE###'] = '<span title="' . htmlspecialchars($this->pi_getLL('doublePageOn', '')) . '">' . htmlspecialchars($this->pi_getLL('doublePageOn', '')) . '</span>';
187
-            $markerArray['###DOUBLEPAGE+1###'] = '<span title="' . htmlspecialchars($this->pi_getLL('doublePage+1', '')) . '">' . htmlspecialchars($this->pi_getLL('doublePage+1', '')) . '</span>';
186
+            $markerArray['###DOUBLEPAGE###'] = '<span title="'.htmlspecialchars($this->pi_getLL('doublePageOn', '')).'">'.htmlspecialchars($this->pi_getLL('doublePageOn', '')).'</span>';
187
+            $markerArray['###DOUBLEPAGE+1###'] = '<span title="'.htmlspecialchars($this->pi_getLL('doublePage+1', '')).'">'.htmlspecialchars($this->pi_getLL('doublePage+1', '')).'</span>';
188 188
         }
189 189
         // Add page selector.
190 190
         $markerArray['###PAGESELECT###'] = $this->getPageSelector();
Please login to merge, or discard this patch.
ext_localconf.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -205,21 +205,21 @@
 block discarded – undo
205 205
 );
206 206
 // Register tools for toolbox plugin.
207 207
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'] = [];
208
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_fulltexttool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.fulltexttool';
209
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_annotationtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.annotationtool';
210
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_fulltextdownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.fulltextdownloadtool';
211
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_imagedownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.imagedownloadtool';
212
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_imagemanipulationtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.imagemanipulationtool';
213
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_pdfdownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.pdfdownloadtool';
214
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_searchindocumenttool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.searchindocumenttool';
208
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_fulltexttool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.fulltexttool';
209
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_annotationtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.annotationtool';
210
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_fulltextdownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.fulltextdownloadtool';
211
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_imagedownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.imagedownloadtool';
212
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_imagemanipulationtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.imagemanipulationtool';
213
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_pdfdownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.pdfdownloadtool';
214
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_searchindocumenttool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.searchindocumenttool';
215 215
 // Register hooks.
216 216
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \Kitodo\Dlf\Hooks\DataHandler::class;
217 217
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = \Kitodo\Dlf\Hooks\DataHandler::class;
218 218
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Common/MetsDocument.php']['hookClass'][] = \Kitodo\Dlf\Hooks\KitodoProductionHacks::class;
219 219
 // Register AJAX eID handlers.
220
-$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_suggest'] = \Kitodo\Dlf\Plugin\Eid\SearchSuggest::class . '::main';
221
-$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_in_document'] = \Kitodo\Dlf\Plugin\Eid\SearchInDocument::class . '::main';
222
-$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_pageview_proxy'] = \Kitodo\Dlf\Plugin\Eid\PageViewProxy::class . '::main';
220
+$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_suggest'] = \Kitodo\Dlf\Plugin\Eid\SearchSuggest::class.'::main';
221
+$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_in_document'] = \Kitodo\Dlf\Plugin\Eid\SearchInDocument::class.'::main';
222
+$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_pageview_proxy'] = \Kitodo\Dlf\Plugin\Eid\PageViewProxy::class.'::main';
223 223
 // Use Caching Framework for Solr queries
224 224
 if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['tx_dlf_solr'])) {
225 225
     $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['tx_dlf_solr'] = [];
Please login to merge, or discard this patch.
Classes/Hooks/Form/FieldInformation/SolrCoreStatus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
                     $uptimeInSeconds = floor($response->getUptime() / 1000);
56 56
                     $dateTimeFrom = new \DateTime('@0');
57 57
                     $dateTimeTo = new \DateTime("@$uptimeInSeconds");
58
-                    $uptime = $dateTimeFrom->diff($dateTimeTo)->format('%a ' . $GLOBALS['LANG']->getLL('flash.days') . ', %H:%I:%S');
58
+                    $uptime = $dateTimeFrom->diff($dateTimeTo)->format('%a '.$GLOBALS['LANG']->getLL('flash.days').', %H:%I:%S');
59 59
                     $numDocuments = $response->getNumberOfDocuments();
60 60
                     $startTime = $response->getStartTime() ? strftime('%c', $response->getStartTime()->getTimestamp()) : 'N/A';
61 61
                     $lastModified = $response->getLastModified() ? strftime('%c', $response->getLastModified()->getTimestamp()) : 'N/A';
Please login to merge, or discard this patch.
Classes/Plugin/Tools/FulltextDownloadTool.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,9 +83,9 @@
 block discarded – undo
83 83
             }
84 84
         }
85 85
         if (!empty($fullTextFile)) {
86
-            $markerArray['###FULLTEXT_DOWNLOAD###'] = '<a href="#" id="tx-dlf-tools-fulltextdownload" title="' . htmlspecialchars($this->pi_getLL('download-current-page', '')) . '">' . htmlspecialchars($this->pi_getLL('download-current-page', '')) . '</a>';
86
+            $markerArray['###FULLTEXT_DOWNLOAD###'] = '<a href="#" id="tx-dlf-tools-fulltextdownload" title="'.htmlspecialchars($this->pi_getLL('download-current-page', '')).'">'.htmlspecialchars($this->pi_getLL('download-current-page', '')).'</a>';
87 87
         } else {
88
-            $markerArray['###FULLTEXT_DOWNLOAD###'] = '<span class="no-fulltext">' . htmlspecialchars($this->pi_getLL('fulltext-not-available', '')) . '</span>';
88
+            $markerArray['###FULLTEXT_DOWNLOAD###'] = '<span class="no-fulltext">'.htmlspecialchars($this->pi_getLL('fulltext-not-available', '')).'</span>';
89 89
         }
90 90
         $content .= $this->templateService->substituteMarkerArray($this->template, $markerArray);
91 91
         return $this->pi_wrapInBaseClass($content);
Please login to merge, or discard this patch.
Classes/Plugin/AudioPlayer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,12 +55,12 @@
 block discarded – undo
55 55
             $(document).ready(function() {
56 56
                 AudioPlayer = new dlfAudioPlayer({
57 57
                     audio: {
58
-                        mimeType: "' . $this->audio['mimetype'] . '",
59
-                        title: "' . $this->audio['label'] . '",
60
-                        url:  "' . $this->audio['url'] . '"
58
+                        mimeType: "' . $this->audio['mimetype'].'",
59
+                        title: "' . $this->audio['label'].'",
60
+                        url:  "' . $this->audio['url'].'"
61 61
                     },
62 62
                     parentElId: "tx-dlf-audio",
63
-                    swfPath: "' . PathUtility::stripPathSitePrefix(ExtensionManagementUtility::extPath($this->extKey)) . 'Resources/Public/Javascript/jPlayer/jquery.jplayer.swf"
63
+                    swfPath: "' . PathUtility::stripPathSitePrefix(ExtensionManagementUtility::extPath($this->extKey)).'Resources/Public/Javascript/jPlayer/jquery.jplayer.swf"
64 64
                 });
65 65
             });
66 66
         ';
Please login to merge, or discard this patch.