Passed
Pull Request — master (#104)
by Alexander
05:57 queued 02:01
created
Build/Documentation/dbdocs/RstSection.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
     {
36 36
         if (!empty($text)) {
37 37
             if ($format['bold'] ?? false) {
38
-                $text = '**' . $text . '**';
38
+                $text = '**'.$text.'**';
39 39
             } elseif ($format['italic'] ?? false) {
40
-                $text = '*' . $text . '*';
40
+                $text = '*'.$text.'*';
41 41
             }
42 42
         }
43 43
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
     public static function paragraphs(array $paragraphs)
48 48
     {
49
-        $paragraphs = array_values(array_filter($paragraphs, function ($entry) {
49
+        $paragraphs = array_values(array_filter($paragraphs, function($entry) {
50 50
             return !empty($entry);
51 51
         }));
52 52
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     public function addText(string $text)
69 69
     {
70 70
         if (!empty($text)) {
71
-            $this->text .= $text . "\n\n";
71
+            $this->text .= $text."\n\n";
72 72
         }
73 73
     }
74 74
 
@@ -97,10 +97,10 @@  discard block
 block discarded – undo
97 97
                 $numLines = count($valueLines);
98 98
                 for ($i = 0; $i < $numLines; $i++) {
99 99
                     $prefix = $i === 0
100
-                        ? '     :' . $key . ':'
100
+                        ? '     :'.$key.':'
101 101
                         : '';
102 102
 
103
-                    $entry .= str_pad($prefix, 32) . trim($valueLines[$i]) . "\n";
103
+                    $entry .= str_pad($prefix, 32).trim($valueLines[$i])."\n";
104 104
                 }
105 105
             }
106 106
 
@@ -138,10 +138,10 @@  discard block
 block discarded – undo
138 138
         $headerSep = str_repeat($headerChar, mb_strlen($this->header));
139 139
 
140 140
         if ($level === 0) {
141
-            $result .= $headerSep . "\n";
141
+            $result .= $headerSep."\n";
142 142
         }
143 143
 
144
-        $result .= $this->header . "\n" . $headerSep . "\n\n";
144
+        $result .= $this->header."\n".$headerSep."\n\n";
145 145
 
146 146
         return $result;
147 147
     }
Please login to merge, or discard this patch.
Build/Documentation/dbdocs/generate.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,16 +11,16 @@
 block discarded – undo
11 11
  * LICENSE.txt file that was distributed with this source code.
12 12
  */
13 13
 
14
-$classLoader = require_once __DIR__ . '/../../../vendor/autoload.php';
14
+$classLoader = require_once __DIR__.'/../../../vendor/autoload.php';
15 15
 
16 16
 $outputPath = $argv[1] ?? null;
17 17
 if (empty($outputPath) || !is_writable(($outputPath))) {
18
-    echo 'Error: Output path not specified or not writable' . "\n";
18
+    echo 'Error: Output path not specified or not writable'."\n";
19 19
     exit(1);
20 20
 }
21 21
 
22
-putenv('TYPO3_PATH_ROOT=' . __DIR__ . '/public');
23
-putenv('TYPO3_PATH_APP=' . __DIR__);
22
+putenv('TYPO3_PATH_ROOT='.__DIR__.'/public');
23
+putenv('TYPO3_PATH_APP='.__DIR__);
24 24
 
25 25
 // For compatibility with TYPO v9
26 26
 define('PATH_thisScript', __FILE__);
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
@@ -65,22 +65,22 @@
 block discarded – undo
65 65
 $_EXTKEY = 'dlf';
66 66
 // Register tools for toolbox plugin.
67 67
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'] = [];
68
-$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';
69
-$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';
70
-$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';
71
-$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';
72
-$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';
73
-$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';
74
-$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';
68
+$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';
69
+$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';
70
+$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';
71
+$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';
72
+$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';
73
+$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';
74
+$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';
75 75
 // Register hooks.
76 76
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \Kitodo\Dlf\Hooks\DataHandler::class;
77 77
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = \Kitodo\Dlf\Hooks\DataHandler::class;
78 78
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Common/MetsDocument.php']['hookClass'][] = \Kitodo\Dlf\Hooks\KitodoProductionHacks::class;
79 79
 // Register AJAX eID handlers.
80
-$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_suggest'] = \Kitodo\Dlf\Plugin\Eid\SearchSuggest::class . '::main';
81
-$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_in_document'] = \Kitodo\Dlf\Plugin\Eid\SearchInDocument::class . '::main';
80
+$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_suggest'] = \Kitodo\Dlf\Plugin\Eid\SearchSuggest::class.'::main';
81
+$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_in_document'] = \Kitodo\Dlf\Plugin\Eid\SearchInDocument::class.'::main';
82 82
 if ($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['dlf']['enableInternalProxy'] ?? false) {
83
-    $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_pageview_proxy'] = \Kitodo\Dlf\Plugin\Eid\PageViewProxy::class . '::main';
83
+    $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_pageview_proxy'] = \Kitodo\Dlf\Plugin\Eid\PageViewProxy::class.'::main';
84 84
 }
85 85
 // Use Caching Framework for Solr queries
86 86
 if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['tx_dlf_solr'])) {
Please login to merge, or discard this patch.
Classes/Plugin/Eid/SearchSuggest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         $parameters = $request->getParsedBody();
46 46
         $solrCore = (string) $parameters['solrcore'];
47 47
         $uHash = (string) $parameters['uHash'];
48
-        if (hash_equals(GeneralUtility::hmac((string) (new Typo3Version()) . Environment::getExtensionsPath(), 'SearchSuggest'), $uHash) === false) {
48
+        if (hash_equals(GeneralUtility::hmac((string) (new Typo3Version()).Environment::getExtensionsPath(), 'SearchSuggest'), $uHash) === false) {
49 49
             throw new \InvalidArgumentException('No valid parameter passed!', 1580585079);
50 50
         }
51 51
         // Perform Solr query.
Please login to merge, or discard this patch.
Classes/Controller/FeedsController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         if ($library) {
72 72
             $feedMeta['copyright'] = $library->getLabel();
73 73
         } else {
74
-            $this->logger->error('Failed to fetch label of selected library with "' . $this->settings['library'] . '"');
74
+            $this->logger->error('Failed to fetch label of selected library with "'.$this->settings['library'].'"');
75 75
         }
76 76
 
77 77
         if (
@@ -91,12 +91,12 @@  discard block
 block discarded – undo
91 91
                 ) {
92 92
                     $superiorTitle = Doc::getTitle($document->getPartof(), true);
93 93
                     if (!empty($superiorTitle)) {
94
-                        $title .= '[' . $superiorTitle . ']';
94
+                        $title .= '['.$superiorTitle.']';
95 95
                     }
96 96
                 }
97 97
                 // Get title of document.
98 98
                 if (!empty($document->getTitle())) {
99
-                    $title .= ' ' . $document->getTitle();
99
+                    $title .= ' '.$document->getTitle();
100 100
                 }
101 101
                 // Set default title if empty.
102 102
                 if (empty($title)) {
@@ -104,13 +104,13 @@  discard block
 block discarded – undo
104 104
                 }
105 105
                 // Append volume information.
106 106
                 if (!empty($document->getVolume())) {
107
-                    $title .= ', ' . LocalizationUtility::translate('volume', 'dlf') . ' ' . $document->getVolume();
107
+                    $title .= ', '.LocalizationUtility::translate('volume', 'dlf').' '.$document->getVolume();
108 108
                 }
109 109
                 // Is this document new or updated?
110 110
                 if ($document->getCrdate() == $document->getTstamp()) {
111
-                    $title = LocalizationUtility::translate('plugins.feeds.new', 'dlf') . ' ' . trim($title);
111
+                    $title = LocalizationUtility::translate('plugins.feeds.new', 'dlf').' '.trim($title);
112 112
                 } else {
113
-                    $title = LocalizationUtility::translate('plugins.feeds.update', 'dlf') . ' ' . trim($title);
113
+                    $title = LocalizationUtility::translate('plugins.feeds.update', 'dlf').' '.trim($title);
114 114
                 }
115 115
 
116 116
                 $document->setTitle($title);
Please login to merge, or discard this patch.
Classes/Controller/OaiPmhController.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -243,10 +243,10 @@  discard block
 block discarded – undo
243 243
             if ($root->item(0) instanceof \DOMNode) {
244 244
                 $mets = $xml->saveXML($root->item(0));
245 245
             } else {
246
-                $this->logger->error('No METS part found in document with location "' . $record['location'] . '"');
246
+                $this->logger->error('No METS part found in document with location "'.$record['location'].'"');
247 247
             }
248 248
         } else {
249
-            $this->logger->error('Could not load XML file from "' . $record['location'] . '"');
249
+            $this->logger->error('Could not load XML file from "'.$record['location'].'"');
250 250
         }
251 251
         return $mets;
252 252
     }
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
             $pageSettings = $this->configurationManager->getConfiguration($this->configurationManager::CONFIGURATION_TYPE_FULL_TYPOSCRIPT);
413 413
             $storagePid = $pageSettings["plugin."]["tx_dlf."]["persistence."]["storagePid"];
414 414
             if ($storagePid > 0) {
415
-                $this->logger->notice('No records found with PID ' . $storagePid);
415
+                $this->logger->notice('No records found with PID '.$storagePid);
416 416
             } else {
417 417
                 $this->logger->notice('No records found');
418 418
             }
@@ -495,7 +495,7 @@  discard block
 block discarded – undo
495 495
             if (!empty($resArray)) {
496 496
                 // check, if all required fields are available for a given identifier
497 497
                 foreach ($details['requiredFields'] as $required) {
498
-                    $methodName = 'get' . GeneralUtility::underscoredToUpperCamelCase($required);
498
+                    $methodName = 'get'.GeneralUtility::underscoredToUpperCamelCase($required);
499 499
                     if (empty($resArray->$methodName())) {
500 500
                         // Skip metadata formats whose requirements are not met.
501 501
                         continue 2;
@@ -600,9 +600,9 @@  discard block
 block discarded – undo
600 600
 
601 601
             if ($resArray = $result->fetch()) {
602 602
                 if ($resArray['index_query'] != "") {
603
-                    $solr_query .= '(' . $resArray['index_query'] . ')';
603
+                    $solr_query .= '('.$resArray['index_query'].')';
604 604
                 } else {
605
-                    $solr_query .= 'collection:' . '"' . $resArray['index_name'] . '"';
605
+                    $solr_query .= 'collection:'.'"'.$resArray['index_name'].'"';
606 606
                 }
607 607
             } else {
608 608
                 $this->error = 'noSetHierarchy';
@@ -614,7 +614,7 @@  discard block
 block discarded – undo
614 614
         }
615 615
         // Check for required fields.
616 616
         foreach ($this->formats[$this->parameters['metadataPrefix']]['requiredFields'] as $required) {
617
-            $solr_query .= ' NOT ' . $required . ':""';
617
+            $solr_query .= ' NOT '.$required.':""';
618 618
         }
619 619
         // toplevel="true" is always required
620 620
         $solr_query .= ' AND toplevel:true';
@@ -628,7 +628,7 @@  discard block
 block discarded – undo
628 628
             ) {
629 629
                 $timestamp = gmmktime($date_array['tm_hour'], $date_array['tm_min'], $date_array['tm_sec'],
630 630
                     $date_array['tm_mon'] + 1, $date_array['tm_mday'], $date_array['tm_year'] + 1900);
631
-                $from = date("Y-m-d", $timestamp) . 'T' . date("H:i:s", $timestamp) . '.000Z';
631
+                $from = date("Y-m-d", $timestamp).'T'.date("H:i:s", $timestamp).'.000Z';
632 632
             } else {
633 633
                 $this->error = 'badArgument';
634 634
                 return;
@@ -644,7 +644,7 @@  discard block
 block discarded – undo
644 644
             ) {
645 645
                 $timestamp = gmmktime($date_array['tm_hour'], $date_array['tm_min'], $date_array['tm_sec'],
646 646
                     $date_array['tm_mon'] + 1, $date_array['tm_mday'], $date_array['tm_year'] + 1900);
647
-                $until = date("Y-m-d", $timestamp) . 'T' . date("H:i:s", $timestamp) . '.999Z';
647
+                $until = date("Y-m-d", $timestamp).'T'.date("H:i:s", $timestamp).'.999Z';
648 648
                 if ($from != "*" && $from > $until) {
649 649
                     $this->error = 'badArgument';
650 650
                 }
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
                 $this->error = 'badArgument';
662 662
             }
663 663
         }
664
-        $solr_query .= ' AND timestamp:[' . $from . ' TO ' . $until . ']';
664
+        $solr_query .= ' AND timestamp:['.$from.' TO '.$until.']';
665 665
         $documentSet = [];
666 666
         $solr = Solr::getInstance($this->settings['solrcore']);
667 667
         if (!$solr->ready) {
@@ -780,7 +780,7 @@  discard block
 block discarded – undo
780 780
         $resumptionTokenInfo['cursor'] = $currentCursor;
781 781
         $resumptionTokenInfo['completeListSize'] = $documentListSet['metadata']['completeListSize'];
782 782
         $expireDateTime = new \DateTime();
783
-        $expireDateTime->add(new \DateInterval('PT' . $this->settings['expired'] . 'S'));
783
+        $expireDateTime->add(new \DateInterval('PT'.$this->settings['expired'].'S'));
784 784
         $resumptionTokenInfo['expired'] = $expireDateTime;
785 785
 
786 786
         $omitResumptionToken = $currentCursor === 0 && $numShownDocuments >= $documentListSet['metadata']['completeListSize'];
Please login to merge, or discard this patch.
Classes/Controller/BasketController.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
                 foreach ($this->requestData['selected'] as $docValue) {
110 110
                     if ($docValue['id']) {
111 111
                         $docData = $this->getDocumentData($docValue['id'], $docValue);
112
-                        $pdfUrl .= $docData['urlParams'] . $this->settings['pdfparamseparator'];
112
+                        $pdfUrl .= $docData['urlParams'].$this->settings['pdfparamseparator'];
113 113
                         $this->redirectToUri($pdfUrl);
114 114
                     }
115 115
                 }
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
         if ($allMails->count() > 0) {
173 173
             $mailSelect[0] = htmlspecialchars(LocalizationUtility::translate('basket.chooseMail', 'dlf'));
174 174
             foreach ($allMails as $mail) {
175
-                $mailSelect[$mail->getUid()] = htmlspecialchars($mail->getName()) . ' (' . htmlspecialchars($mail->getMail()) . ')';
175
+                $mailSelect[$mail->getUid()] = htmlspecialchars($mail->getName()).' ('.htmlspecialchars($mail->getMail()).')';
176 176
             }
177 177
             $this->view->assign('mailSelect', $mailSelect);
178 178
         }
@@ -256,12 +256,12 @@  discard block
 block discarded – undo
256 256
 
257 257
         $entryArray['BASKETDATA'] = $docData;
258 258
 
259
-        $entryKey = $id . '_' . $startpage;
259
+        $entryKey = $id.'_'.$startpage;
260 260
         if (!empty($startX)) {
261
-            $entryKey .= '_' . $startX;
261
+            $entryKey .= '_'.$startX;
262 262
         }
263 263
         if (!empty($endX)) {
264
-            $entryKey .= '_' . $endX;
264
+            $entryKey .= '_'.$endX;
265 265
         }
266 266
 
267 267
         $entryArray['id'] = $id;
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
             $urlParams = str_replace("##endy##", $data['endY'] === "" ? "" : (int) $data['endY'], $urlParams);
313 313
             $urlParams = str_replace("##rotation##", $data['rotation'] === "" ? "" : (int) $data['rotation'], $urlParams);
314 314
 
315
-            $downloadUrl = $this->settings['pdfgenerate'] . $urlParams;
315
+            $downloadUrl = $this->settings['pdfgenerate'].$urlParams;
316 316
 
317 317
             $title = $this->document->getTitle();
318 318
             if (empty($title)) {
@@ -323,15 +323,15 @@  discard block
 block discarded – undo
323 323
             $info = '';
324 324
             if ($data['startX'] != '' && $data['endX'] != '') {
325 325
                 // cutout
326
-                $info .= htmlspecialchars(LocalizationUtility::translate('basket.cutout', 'dlf')) . ' ';
326
+                $info .= htmlspecialchars(LocalizationUtility::translate('basket.cutout', 'dlf')).' ';
327 327
             }
328 328
             if ($data['startpage'] == $data['endpage']) {
329 329
                 // One page
330
-                $info .= htmlspecialchars(LocalizationUtility::translate('page', 'dlf')) . ' ' . $data['startpage'];
330
+                $info .= htmlspecialchars(LocalizationUtility::translate('page', 'dlf')).' '.$data['startpage'];
331 331
             } else {
332
-                $info .= htmlspecialchars(LocalizationUtility::translate('page', 'dlf')) . ' ' . $data['startpage'] . '-' . $data['endpage'];
332
+                $info .= htmlspecialchars(LocalizationUtility::translate('page', 'dlf')).' '.$data['startpage'].'-'.$data['endpage'];
333 333
             }
334
-            $downloadLink = '<a href="' . $downloadUrl . '" target="_blank">' . htmlspecialchars($title) . '</a> (' . $info . ')';
334
+            $downloadLink = '<a href="'.$downloadUrl.'" target="_blank">'.htmlspecialchars($title).'</a> ('.$info.')';
335 335
             if ($data['startpage'] == $data['endpage']) {
336 336
                 $pageNums = 1;
337 337
             } else {
@@ -407,12 +407,12 @@  discard block
 block discarded – undo
407 407
             if ($_piVars['addToBasket'] == 'list') {
408 408
                 $documentItem['endpage'] = $this->document->getDoc()->numPages;
409 409
             }
410
-            $arrayKey = $documentItem['id'] . '_' . $page;
410
+            $arrayKey = $documentItem['id'].'_'.$page;
411 411
             if (!empty($documentItem['startX'])) {
412
-                $arrayKey .= '_' . $documentItem['startX'];
412
+                $arrayKey .= '_'.$documentItem['startX'];
413 413
             }
414 414
             if (!empty($documentItem['endX'])) {
415
-                $arrayKey .= '_' . $documentItem['endX'];
415
+                $arrayKey .= '_'.$documentItem['endX'];
416 416
             }
417 417
             // do not add more than one identical object
418 418
             if (!in_array($arrayKey, $items)) {
@@ -431,14 +431,14 @@  discard block
 block discarded – undo
431 431
                     // remove parameter endpage
432 432
                     $pdfParams = str_replace(",##endpage##", '', $pdfParams);
433 433
                 }
434
-                $pdfGenerateUrl = $this->settings['pdfgenerate'] . $pdfParams;
434
+                $pdfGenerateUrl = $this->settings['pdfgenerate'].$pdfParams;
435 435
                 if ($this->settings['pregeneration']) {
436 436
                     // send ajax request to webapp
437 437
                     $output .= '
438 438
      <script>
439 439
       $(document).ready(function(){
440 440
        $.ajax({
441
-         url: "' . $pdfGenerateUrl . '",
441
+         url: "' . $pdfGenerateUrl.'",
442 442
        }).done(function() {
443 443
        });
444 444
       });
@@ -476,12 +476,12 @@  discard block
 block discarded – undo
476 476
         }
477 477
         foreach ($_piVars['selected'] as $value) {
478 478
             if (isset($value['id'])) {
479
-                $arrayKey = $value['id'] . '_' . $value['startpage'];
479
+                $arrayKey = $value['id'].'_'.$value['startpage'];
480 480
                 if (!empty($value['startX'])) {
481
-                    $arrayKey .= '_' . $value['startX'];
481
+                    $arrayKey .= '_'.$value['startX'];
482 482
                 }
483 483
                 if (!empty($value['endX'])) {
484
-                    $arrayKey .= '_' . $value['endX'];
484
+                    $arrayKey .= '_'.$value['endX'];
485 485
                 }
486 486
                 if (isset($items[$arrayKey])) {
487 487
                     unset($items[$arrayKey]);
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
 
515 515
         $mailObject = $this->mailRepository->findByUid(intval($mailId))->getFirst();
516 516
 
517
-        $mailText = htmlspecialchars(LocalizationUtility::translate('basket.mailBody', 'dlf')) . "\n";
517
+        $mailText = htmlspecialchars(LocalizationUtility::translate('basket.mailBody', 'dlf'))."\n";
518 518
         $numberOfPages = 0;
519 519
         $pdfUrl = $this->settings['pdfdownload'];
520 520
         // prepare links
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
             if ($docValue['id']) {
523 523
                 $explodeId = explode("_", $docValue['id']);
524 524
                 $docData = $this->getDocumentData($explodeId[0], $docValue);
525
-                $pdfUrl .= $docData['urlParams'] . $this->settings['pdfparamseparator'];
525
+                $pdfUrl .= $docData['urlParams'].$this->settings['pdfparamseparator'];
526 526
                 $pages = (abs(intval($docValue['startpage']) - intval($docValue['endpage'])));
527 527
                 if ($pages === 0) {
528 528
                     $numberOfPages = $numberOfPages + 1;
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
         }
534 534
         // Remove leading/tailing pdfparamseperator
535 535
         $pdfUrl = trim($pdfUrl, $this->settings['pdfparamseparator']);
536
-        $mailBody = $mailText . $pdfUrl;
536
+        $mailBody = $mailText.$pdfUrl;
537 537
         // Get hook objects.
538 538
         $hookObjects = Helper::getHookObjects($this->scriptRelPath);
539 539
         // Hook for getting a customized mail body.
@@ -560,7 +560,7 @@  discard block
 block discarded – undo
560 560
         $newActionLog = GeneralUtility::makeInstance(ActionLog::class);
561 561
         $newActionLog->setFileName($pdfUrl);
562 562
         $newActionLog->setCountPages($numberOfPages);
563
-        $newActionLog->setLabel('Mail: ' . $mailObject->getMail());
563
+        $newActionLog->setLabel('Mail: '.$mailObject->getMail());
564 564
 
565 565
         if ($GLOBALS["TSFE"]->loginUser) {
566 566
             // internal user
@@ -592,7 +592,7 @@  discard block
 block discarded – undo
592 592
         foreach ($this->requestData['selected'] as $docId => $docValue) {
593 593
             if ($docValue['id']) {
594 594
                 $docData = $this->getDocumentData($docValue['id'], $docValue);
595
-                $pdfUrl .= $docData['urlParams'] . $this->settings['pdfparamseparator'];
595
+                $pdfUrl .= $docData['urlParams'].$this->settings['pdfparamseparator'];
596 596
                 $numberOfPages += $docData['pageNums'];
597 597
             }
598 598
         }
@@ -610,7 +610,7 @@  discard block
 block discarded – undo
610 610
                 if ($docValue['id']) {
611 611
                     $explodeId = explode("_", $docId);
612 612
                     $docData = $this->getDocumentData($explodeId[0], $docValue);
613
-                    $pdfUrl .= $docData['urlParams'] . $this->settings['pdfparamseparator'];
613
+                    $pdfUrl .= $docData['urlParams'].$this->settings['pdfparamseparator'];
614 614
                     $numberOfPages += $docData['pageNums'];
615 615
                 }
616 616
             }
@@ -627,12 +627,12 @@  discard block
 block discarded – undo
627 627
             // internal user
628 628
             $actionLog->setUserId($GLOBALS["TSFE"]->fe_user->user['uid']);
629 629
             $actionLog->setName($GLOBALS["TSFE"]->fe_user->user['username']);
630
-            $actionLog->setLabel('Print: ' . $printer->getLabel());
630
+            $actionLog->setLabel('Print: '.$printer->getLabel());
631 631
         } else {
632 632
             // external user
633 633
             $actionLog->setUserId(0);
634 634
             $actionLog->setName('n/a');
635
-            $actionLog->setLabel('Print: ' . $printer->getLabel());
635
+            $actionLog->setLabel('Print: '.$printer->getLabel());
636 636
         }
637 637
         // add action to protocol
638 638
         $this->actionLogRepository->add($actionLog);
Please login to merge, or discard this patch.
Classes/Controller/AbstractController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
                 if ($this->document) {
126 126
                     $doc = Doc::getInstance($this->document->getLocation(), $this->settings, true);
127 127
                 } else {
128
-                    $this->logger->error('Invalid UID "' . $requestData['id'] . '" or PID "' . $this->settings['storagePid'] . '" for document loading');
128
+                    $this->logger->error('Invalid UID "'.$requestData['id'].'" or PID "'.$this->settings['storagePid'].'" for document loading');
129 129
                 }
130 130
             } else if (GeneralUtility::isValidUrl($requestData['id'])) {
131 131
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 
144 144
                     $this->document->setLocation($requestData['id']);
145 145
                 } else {
146
-                    $this->logger->error('Invalid location given "' . $requestData['id'] . '" for document loading');
146
+                    $this->logger->error('Invalid location given "'.$requestData['id'].'" for document loading');
147 147
                 }
148 148
             }
149 149
 
@@ -160,11 +160,11 @@  discard block
 block discarded – undo
160 160
                 if ($this->document !== null && $doc !== null) {
161 161
                     $this->document->setDoc($doc);
162 162
                 } else {
163
-                    $this->logger->error('Failed to load document with record ID "' . $requestData['recordId'] . '"');
163
+                    $this->logger->error('Failed to load document with record ID "'.$requestData['recordId'].'"');
164 164
                 }
165 165
             }
166 166
         } else {
167
-            $this->logger->error('Invalid ID "' . $requestData['id'] . '" or PID "' . $this->settings['storagePid'] . '" for document loading');
167
+            $this->logger->error('Invalid ID "'.$requestData['id'].'" or PID "'.$this->settings['storagePid'].'" for document loading');
168 168
         }
169 169
     }
170 170
 
Please login to merge, or discard this patch.
Classes/Controller/CalendarController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
                 $_day = date('j', $dateTimestamp);
149 149
                 $calendarIssuesByYear[$_year][$_month][$_day][] = $issue;
150 150
             } else {
151
-                $this->logger->warning('Document with UID ' . $issue['uid'] . 'has no valid date of publication');
151
+                $this->logger->warning('Document with UID '.$issue['uid'].'has no valid date of publication');
152 152
             }
153 153
         }
154 154
         // Sort by years.
@@ -271,16 +271,16 @@  discard block
 block discarded – undo
271 271
                 'DAYFRI_NAME' => strftime('%a', strtotime('last Friday')),
272 272
                 'DAYSAT_NAME' => strftime('%a', strtotime('last Saturday')),
273 273
                 'DAYSUN_NAME' => strftime('%a', strtotime('last Sunday')),
274
-                'MONTHNAME'  => strftime('%B', strtotime($year . '-' . $i . '-1')) . ' ' . $year,
274
+                'MONTHNAME'  => strftime('%B', strtotime($year.'-'.$i.'-1')).' '.$year,
275 275
                 'CALYEAR' => ($i == $firstMonth) ? $year : ''
276 276
             ];
277 277
 
278
-            $firstOfMonth = strtotime($year . '-' . $i . '-1');
278
+            $firstOfMonth = strtotime($year.'-'.$i.'-1');
279 279
             $lastOfMonth = strtotime('last day of', ($firstOfMonth));
280 280
             $firstOfMonthStart = strtotime('last Monday', $firstOfMonth);
281 281
             // There are never more than 6 weeks in a month.
282 282
             for ($j = 0; $j <= 5; $j++) {
283
-                $firstDayOfWeek = strtotime('+ ' . $j . ' Week', $firstOfMonthStart);
283
+                $firstDayOfWeek = strtotime('+ '.$j.' Week', $firstOfMonthStart);
284 284
 
285 285
                 $calendarData[$i]['week'][$j] = [
286 286
                     'DAYMON' => ['dayValue' => '&nbsp;'],
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
                 ];
294 294
                 // Every week has seven days. ;-)
295 295
                 for ($k = 0; $k <= 6; $k++) {
296
-                    $currentDayTime = strtotime('+ ' . $k . ' Day', $firstDayOfWeek);
296
+                    $currentDayTime = strtotime('+ '.$k.' Day', $firstDayOfWeek);
297 297
                     if (
298 298
                         $currentDayTime >= $firstOfMonth
299 299
                         && $currentDayTime <= $lastOfMonth
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
                             }
325 325
                             $dayLinkDiv = $dayLinksText;
326 326
                         }
327
-                        switch (strftime('%w', strtotime('+ ' . $k . ' Day', $firstDayOfWeek))) {
327
+                        switch (strftime('%w', strtotime('+ '.$k.' Day', $firstDayOfWeek))) {
328 328
                             case '0':
329 329
                                 $calendarData[$i]['week'][$j]['DAYSUN']['dayValue'] = strftime('%d', $currentDayTime);
330 330
                                 if ((int) $dayLinks === (int) date('j', $currentDayTime)) {
Please login to merge, or discard this patch.