Passed
Pull Request — master (#123)
by
unknown
04:06
created
Classes/Task/DeleteAdditionalFieldProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,8 @@
 block discarded – undo
59 59
 
60 60
         // Text field for document URL
61 61
         $fieldName = 'doc';
62
-        $fieldId = 'task_' . $fieldName;
63
-        $fieldHtml = '<input type="text" name="tx_scheduler[' . $fieldName . ']" id="' . $fieldId . '" value="' . $taskInfo[$fieldName] . '" >';
62
+        $fieldId = 'task_'.$fieldName;
63
+        $fieldHtml = '<input type="text" name="tx_scheduler['.$fieldName.']" id="'.$fieldId.'" value="'.$taskInfo[$fieldName].'" >';
64 64
         $additionalFields[$fieldId] = [
65 65
             'code' => $fieldHtml,
66 66
             'label' => 'LLL:EXT:dlf/Resources/Private/Language/locallang_tasks.xlf:additionalFields.doc',
Please login to merge, or discard this patch.
Classes/Task/OptimizeAdditionalFieldProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
 
58 58
         // Checkbox for commit
59 59
         $fieldName = 'commit';
60
-        $fieldId = 'task_' . $fieldName;
61
-        $fieldHtml = '<input type="checkbox" name="tx_scheduler[' . $fieldName . ']" id="' . $fieldId . '" value="1"' . ($taskInfo['commit'] ? ' checked="checked"' : '') . '>';
60
+        $fieldId = 'task_'.$fieldName;
61
+        $fieldHtml = '<input type="checkbox" name="tx_scheduler['.$fieldName.']" id="'.$fieldId.'" value="1"'.($taskInfo['commit'] ? ' checked="checked"' : '').'>';
62 62
         $additionalFields[$fieldId] = [
63 63
             'code' => $fieldHtml,
64 64
             'label' => 'LLL:EXT:dlf/Resources/Private/Language/locallang_tasks.xlf:additionalFields.commit',
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
 
69 69
         // Checkbox for optimize
70 70
         $fieldName = 'optimize';
71
-        $fieldId = 'task_' . $fieldName;
72
-        $fieldHtml = '<input type="checkbox" name="tx_scheduler[' . $fieldName . ']" id="' . $fieldId . '" value="1"' . ($taskInfo['optimize'] ? ' checked="checked"' : '') . '>';
71
+        $fieldId = 'task_'.$fieldName;
72
+        $fieldHtml = '<input type="checkbox" name="tx_scheduler['.$fieldName.']" id="'.$fieldId.'" value="1"'.($taskInfo['optimize'] ? ' checked="checked"' : '').'>';
73 73
         $additionalFields[$fieldId] = [
74 74
             'code' => $fieldHtml,
75 75
             'label' => 'LLL:EXT:dlf/Resources/Private/Language/locallang_tasks.xlf:additionalFields.optimize',
Please login to merge, or discard this patch.
Classes/Controller/ToolboxController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                         $this->renderToolByName('renderScoreTool');
107 107
                         break;
108 108
                     default:
109
-                        $this->logger->warning('Incorrect tool configuration: "' . $this->settings['tools'] . '". Tool "' . $tool . '" does not exist.');
109
+                        $this->logger->warning('Incorrect tool configuration: "'.$this->settings['tools'].'". Tool "'.$tool.'" does not exist.');
110 110
                 }
111 111
             }
112 112
         }
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
                 $file['url'] = $this->currentDocument->getDownloadLocation($fileId);
319 319
                 $file['mimetype'] = $this->currentDocument->getFileMimeType($fileId);
320 320
             } else {
321
-                $this->logger->warning('File not found in fileGrp "' . $fileGrp . '"');
321
+                $this->logger->warning('File not found in fileGrp "'.$fileGrp.'"');
322 322
             }
323 323
         }
324 324
         return $file;
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
             empty($firstPageLink)
427 427
             && empty($secondPageLink)
428 428
         ) {
429
-            $this->logger->warning('File not found in fileGrps "' . $this->extConf['files']['fileGrpDownload'] . '"');
429
+            $this->logger->warning('File not found in fileGrps "'.$this->extConf['files']['fileGrpDownload'].'"');
430 430
         }
431 431
 
432 432
         if (!empty($firstPageLink)) {
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
             }
465 465
         }
466 466
         if (empty($workLink)) {
467
-            $this->logger->warning('File not found in fileGrps "' . $this->extConf['files']['fileGrpDownload'] . '"');
467
+            $this->logger->warning('File not found in fileGrps "'.$this->extConf['files']['fileGrpDownload'].'"');
468 468
         }
469 469
         return $workLink;
470 470
     }
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
@@ -66,15 +66,15 @@  discard block
 block discarded – undo
66 66
 $_EXTKEY = 'dlf';
67 67
 // Register tools for toolbox plugin.
68 68
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'] = [];
69
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_scoretool'] = 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.scoretool';
70
-$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/locallang_labels.xlf:tx_dlf_toolbox.fulltexttool';
71
-$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/locallang_labels.xlf:tx_dlf_toolbox.annotationtool';
72
-$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/locallang_labels.xlf:tx_dlf_toolbox.fulltextdownloadtool';
73
-$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/locallang_labels.xlf:tx_dlf_toolbox.imagedownloadtool';
74
-$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/locallang_labels.xlf:tx_dlf_toolbox.imagemanipulationtool';
75
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_modeldownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.modeldownloadtool';
76
-$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/locallang_labels.xlf:tx_dlf_toolbox.pdfdownloadtool';
77
-$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/locallang_labels.xlf:tx_dlf_toolbox.searchindocumenttool';
69
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_scoretool'] = 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.scoretool';
70
+$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/locallang_labels.xlf:tx_dlf_toolbox.fulltexttool';
71
+$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/locallang_labels.xlf:tx_dlf_toolbox.annotationtool';
72
+$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/locallang_labels.xlf:tx_dlf_toolbox.fulltextdownloadtool';
73
+$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/locallang_labels.xlf:tx_dlf_toolbox.imagedownloadtool';
74
+$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/locallang_labels.xlf:tx_dlf_toolbox.imagemanipulationtool';
75
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_modeldownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.modeldownloadtool';
76
+$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/locallang_labels.xlf:tx_dlf_toolbox.pdfdownloadtool';
77
+$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/locallang_labels.xlf:tx_dlf_toolbox.searchindocumenttool';
78 78
 // Register hooks.
79 79
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \Kitodo\Dlf\Hooks\DataHandler::class;
80 80
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = \Kitodo\Dlf\Hooks\DataHandler::class;
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 ];
113 113
 // Register AJAX eID handlers.
114 114
 if ($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['dlf']['general']['enableInternalProxy'] ?? false) {
115
-    $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_pageview_proxy'] = \Kitodo\Dlf\Eid\PageViewProxy::class . '::main';
115
+    $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_pageview_proxy'] = \Kitodo\Dlf\Eid\PageViewProxy::class.'::main';
116 116
 }
117 117
 // Use Caching Framework for Solr queries
118 118
 $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['tx_dlf_solr'] ??= [];
Please login to merge, or discard this patch.
Classes/Command/SuggestBuildCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,12 +74,12 @@
 block discarded – undo
74 74
         $solr = Solr::getInstance($input->getOption('solr'));
75 75
         // Connect to Solr server.
76 76
         if (!$solr->ready) {
77
-            $io->error('ERROR: Connection to Solr core ("' . $input->getOption('solr') . '") not possible \n');
77
+            $io->error('ERROR: Connection to Solr core ("'.$input->getOption('solr').'") not possible \n');
78 78
             return BaseCommand::FAILURE;
79 79
         }
80 80
 
81 81
         if (!$solr->suggestBuild()) {
82
-            $io->error('ERROR: Sending the command suggest.build=true to Solr core ("' . $input->getOption('solr') . '") not possible \n');
82
+            $io->error('ERROR: Sending the command suggest.build=true to Solr core ("'.$input->getOption('solr').'") not possible \n');
83 83
             return BaseCommand::FAILURE;
84 84
         }
85 85
 
Please login to merge, or discard this patch.
Classes/Command/IndexCommand.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         $this->initializeRepositories((int) $input->getOption('pid'));
105 105
 
106 106
         if ($this->storagePid == 0) {
107
-            $io->error('ERROR: No valid PID (' . $this->storagePid . ') given.');
107
+            $io->error('ERROR: No valid PID ('.$this->storagePid.') given.');
108 108
             return BaseCommand::FAILURE;
109 109
         }
110 110
 
@@ -119,13 +119,13 @@  discard block
 block discarded – undo
119 119
             if (empty($solrCoreUid) || !in_array($solrCoreUid, $allSolrCores)) {
120 120
                 $outputSolrCores = [];
121 121
                 foreach ($allSolrCores as $indexName => $uid) {
122
-                    $outputSolrCores[] = $uid . ' : ' . $indexName;
122
+                    $outputSolrCores[] = $uid.' : '.$indexName;
123 123
                 }
124 124
                 if (empty($outputSolrCores)) {
125
-                    $io->error('ERROR: No valid Solr core ("' . $input->getOption('solr') . '") given. No valid cores found on PID ' . $this->storagePid . ".\n");
125
+                    $io->error('ERROR: No valid Solr core ("'.$input->getOption('solr').'") given. No valid cores found on PID '.$this->storagePid.".\n");
126 126
                     return BaseCommand::FAILURE;
127 127
                 } else {
128
-                    $io->error('ERROR: No valid Solr core ("' . $input->getOption('solr') . '") given. ' . "Valid cores are (<uid>:<index_name>):\n" . implode("\n", $outputSolrCores) . "\n");
128
+                    $io->error('ERROR: No valid Solr core ("'.$input->getOption('solr').'") given. '."Valid cores are (<uid>:<index_name>):\n".implode("\n", $outputSolrCores)."\n");
129 129
                     return BaseCommand::FAILURE;
130 130
                 }
131 131
             }
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
             $document = $this->documentRepository->findByUid($input->getOption('doc'));
166 166
 
167 167
             if ($document === null) {
168
-                $io->error('ERROR: Document with UID "' . $input->getOption('doc') . '" could not be found on PID ' . $this->storagePid . ' .');
168
+                $io->error('ERROR: Document with UID "'.$input->getOption('doc').'" could not be found on PID '.$this->storagePid.' .');
169 169
                 return BaseCommand::FAILURE;
170 170
             } else {
171 171
                 $doc = AbstractDocument::getInstance($document->getLocation(), ['storagePid' => $this->storagePid], true);
@@ -178,31 +178,31 @@  discard block
 block discarded – undo
178 178
         }
179 179
 
180 180
         if ($doc === null) {
181
-            $io->error('ERROR: Document "' . $input->getOption('doc') . '" could not be loaded.');
181
+            $io->error('ERROR: Document "'.$input->getOption('doc').'" could not be loaded.');
182 182
             return BaseCommand::FAILURE;
183 183
         }
184 184
 
185 185
         $document->setSolrcore($solrCoreUid);
186 186
 
187 187
         if ($dryRun) {
188
-            $io->section('DRY RUN: Would index ' . $document->getUid() . ' ("' . $document->getLocation() . '") on PID ' . $this->storagePid . ' and Solr core ' . $solrCoreUid . '.');
188
+            $io->section('DRY RUN: Would index '.$document->getUid().' ("'.$document->getLocation().'") on PID '.$this->storagePid.' and Solr core '.$solrCoreUid.'.');
189 189
             $io->success('All done!');
190 190
             return BaseCommand::SUCCESS;
191 191
         } else {
192 192
             $document->setCurrentDocument($doc);
193 193
 
194 194
             if ($io->isVerbose()) {
195
-                $io->section('Indexing ' . $document->getUid() . ' ("' . $document->getLocation() . '") on PID ' . $this->storagePid . '.');
195
+                $io->section('Indexing '.$document->getUid().' ("'.$document->getLocation().'") on PID '.$this->storagePid.'.');
196 196
             }
197 197
             $isSaved = $this->saveToDatabase($document, $input->getOption('softCommit'));
198 198
 
199 199
             if ($isSaved) {
200 200
                 if ($io->isVerbose()) {
201
-                    $io->section('Indexing ' . $document->getUid() . ' ("' . $document->getLocation() . '") on Solr core ' . $solrCoreUid . '.');
201
+                    $io->section('Indexing '.$document->getUid().' ("'.$document->getLocation().'") on Solr core '.$solrCoreUid.'.');
202 202
                 }
203 203
                 $isSaved = Indexer::add($document, $this->documentRepository, $input->getOption('softCommit'));
204 204
             } else {
205
-                $io->error('ERROR: Document with UID "' . $document->getUid() . '" could not be indexed on PID ' . $this->storagePid . ' . There are missing mandatory fields (at least one of those: ' . $this->extConf['general']['requiredMetadataFields'] . ') in this document.');
205
+                $io->error('ERROR: Document with UID "'.$document->getUid().'" could not be indexed on PID '.$this->storagePid.' . There are missing mandatory fields (at least one of those: '.$this->extConf['general']['requiredMetadataFields'].') in this document.');
206 206
                 return BaseCommand::FAILURE;
207 207
             }
208 208
 
@@ -211,8 +211,8 @@  discard block
 block discarded – undo
211 211
                 return BaseCommand::SUCCESS;
212 212
             }
213 213
 
214
-            $io->error('ERROR: Document with UID "' . $document->getUid() . '" could not be indexed on Solr core ' . $solrCoreUid . ' . There are missing mandatory fields (at least one of those: ' . $this->extConf['general']['requiredMetadataFields'] . ') in this document.');
215
-            $io->info('INFO: Document with UID "' . $document->getUid() . '" is already in database. If you want to keep the database and index consistent you need to remove it.');
214
+            $io->error('ERROR: Document with UID "'.$document->getUid().'" could not be indexed on Solr core '.$solrCoreUid.' . There are missing mandatory fields (at least one of those: '.$this->extConf['general']['requiredMetadataFields'].') in this document.');
215
+            $io->info('INFO: Document with UID "'.$document->getUid().'" is already in database. If you want to keep the database and index consistent you need to remove it.');
216 216
             return BaseCommand::FAILURE;
217 217
         }
218 218
     }
Please login to merge, or discard this patch.
Classes/Controller/PageViewController.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -181,18 +181,18 @@  discard block
 block discarded – undo
181 181
             }
182 182
 
183 183
             $navigationArray[$i]['next'] = [
184
-                'tx_dlf[docPage][' . $i . ']' =>
184
+                'tx_dlf[docPage]['.$i.']' =>
185 185
                     MathUtility::forceIntegerInRange((int) $this->requestData['docPage'][$i] + 1, 1, $document->numPages, 1)
186 186
             ];
187 187
             $navigationArray[$i]['prev'] = [
188
-                'tx_dlf[docPage][' . $i . ']' =>
188
+                'tx_dlf[docPage]['.$i.']' =>
189 189
                     MathUtility::forceIntegerInRange((int) $this->requestData['docPage'][$i] - 1, 1, $document->numPages, 1)
190 190
             ];
191 191
 
192 192
             $navigateAllPageNext = array_merge(
193 193
                 $navigateAllPageNext,
194 194
                 [
195
-                    'tx_dlf[docPage][' . $i . ']' =>
195
+                    'tx_dlf[docPage]['.$i.']' =>
196 196
                         MathUtility::forceIntegerInRange((int) $this->requestData['docPage'][$i] + 1, 1, $document->numPages, 1)
197 197
                 ]
198 198
             );
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
             $navigateAllPagePrev = array_merge(
201 201
                 $navigateAllPagePrev,
202 202
                 [
203
-                    'tx_dlf[docPage][' . $i . ']' =>
203
+                    'tx_dlf[docPage]['.$i.']' =>
204 204
                         MathUtility::forceIntegerInRange((int) $this->requestData['docPage'][$i] - 1, 1, $document->numPages, 1)
205 205
                 ]
206 206
             );
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
             $navigateAllMeasureNext = array_merge(
209 209
                 $navigateAllMeasureNext,
210 210
                 [
211
-                    'tx_dlf[docMeasure][' . $i . ']' =>
211
+                    'tx_dlf[docMeasure]['.$i.']' =>
212 212
                         MathUtility::forceIntegerInRange((int) $this->requestData['docMeasure'][$i] + 1, 1, $document->numMeasures, 1)
213 213
                 ]
214 214
             );
@@ -216,19 +216,19 @@  discard block
 block discarded – undo
216 216
             $navigateAllMeasurePrev = array_merge(
217 217
                 $navigateAllMeasurePrev,
218 218
                 [
219
-                    'tx_dlf[docMeasure][' . $i . ']' =>
219
+                    'tx_dlf[docMeasure]['.$i.']' =>
220 220
                         MathUtility::forceIntegerInRange((int) $this->requestData['docMeasure'][$i] - 1, 1, $document->numMeasures, 1)
221 221
                 ]
222 222
             );
223 223
 
224 224
             if ($document->numMeasures > 0) {
225 225
                 $navigationMeasureArray[$i]['next'] = [
226
-                    'tx_dlf[docMeasure][' . $i . ']' =>
226
+                    'tx_dlf[docMeasure]['.$i.']' =>
227 227
                         MathUtility::forceIntegerInRange((int) $this->requestData['docMeasure'][$i] + 1, 1, $document->numMeasures, 1)
228 228
                 ];
229 229
 
230 230
                 $navigationMeasureArray[$i]['prev'] = [
231
-                    'tx_dlf[docMeasure][' . $i . ']' =>
231
+                    'tx_dlf[docMeasure]['.$i.']' =>
232 232
                         MathUtility::forceIntegerInRange((int) $this->requestData['docMeasure'][$i] - 1, 1, $document->numMeasures, 1)
233 233
                 ];
234 234
             }
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
             }
283 283
             $params = array_merge(
284 284
                 ['tx_dlf' => $this->requestData],
285
-                ['tx_dlf[multipleSource][' . $nextMultipleSourceKey . ']' => $formAddDocument->getLocation()],
285
+                ['tx_dlf[multipleSource]['.$nextMultipleSourceKey.']' => $formAddDocument->getLocation()],
286 286
                 ['tx_dlf[multiview]' => 1]
287 287
             );
288 288
             $uriBuilder = $this->uriBuilder;
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
                             // build link for each measure
330 330
                             $params = [
331 331
                                 'tx_dlf' => $this->requestData,
332
-                                'tx_dlf[docMeasure][' . $docNumber . ']' => $i
332
+                                'tx_dlf[docMeasure]['.$docNumber.']' => $i
333 333
                             ];
334 334
                         } else {
335 335
                             // build link for each measure
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
         }
414 414
 
415 415
         if (empty($score)) {
416
-            $this->logger->notice('No score file found for page "' . $page . '" in fileGrps "' . $this->settings['fileGrpScore'] . '"');
416
+            $this->logger->notice('No score file found for page "'.$page.'" in fileGrps "'.$this->settings['fileGrpScore'].'"');
417 417
         }
418 418
         return $score;
419 419
     }
@@ -444,11 +444,11 @@  discard block
 block discarded – undo
444 444
                 $fulltext['mimetype'] = $file['mimeType'];
445 445
                 break;
446 446
             } else {
447
-                $this->logger->notice('No full-text file found for page "' . $page . '" in fileGrp "' . $fileGrpFulltext . '"');
447
+                $this->logger->notice('No full-text file found for page "'.$page.'" in fileGrp "'.$fileGrpFulltext.'"');
448 448
             }
449 449
         }
450 450
         if (empty($fulltext)) {
451
-            $this->logger->notice('No full-text file found for page "' . $page . '" in fileGrps "' . $this->extConf['files']['fileGrpFulltext'] . '"');
451
+            $this->logger->notice('No full-text file found for page "'.$page.'" in fileGrps "'.$this->extConf['files']['fileGrpFulltext'].'"');
452 452
         }
453 453
         return $fulltext;
454 454
     }
@@ -508,7 +508,7 @@  discard block
 block discarded – undo
508 508
                         'measureIdLinks' => $docMeasures['measureLinks']
509 509
                     ];
510 510
 
511
-                    $jsViewer .= 'tx_dlf_viewer[' . $i . '] = new dlfViewer(' . json_encode($viewer) . ');
511
+                    $jsViewer .= 'tx_dlf_viewer['.$i.'] = new dlfViewer('.json_encode($viewer).');
512 512
                             ';
513 513
                     $i++;
514 514
                 }
@@ -517,8 +517,8 @@  discard block
 block discarded – undo
517 517
             // Viewer configuration.
518 518
             $viewerConfiguration = '$(document).ready(function() {
519 519
                     if (dlfUtils.exists(dlfViewer)) {
520
-                        ' . $jsViewer . '
521
-                        viewerCount = ' . ($i - 1) . ';
520
+                        ' . $jsViewer.'
521
+                        viewerCount = ' . ($i - 1).';
522 522
                     }
523 523
                 });';
524 524
         } else {
@@ -548,7 +548,7 @@  discard block
 block discarded – undo
548 548
             // Viewer configuration.
549 549
             $viewerConfiguration = '$(document).ready(function() {
550 550
                     if (dlfUtils.exists(dlfViewer)) {
551
-                        tx_dlf_viewer = new dlfViewer(' . json_encode($viewer) . ');
551
+                        tx_dlf_viewer = new dlfViewer(' . json_encode($viewer).');
552 552
                     }
553 553
                 });';
554 554
         }
@@ -644,7 +644,7 @@  discard block
 block discarded – undo
644 644
                     }
645 645
                     break;
646 646
                 } else {
647
-                    $this->logger->notice('No image file found for page "' . $page . '" in fileGrp "' . $fileGrpImages . '"');
647
+                    $this->logger->notice('No image file found for page "'.$page.'" in fileGrp "'.$fileGrpImages.'"');
648 648
                 }
649 649
 
650 650
             } else {
@@ -664,12 +664,12 @@  discard block
 block discarded – undo
664 664
                     }
665 665
                     break;
666 666
                 } else {
667
-                    $this->logger->notice('No image file found for page "' . $page . '" in fileGrp "' . $fileGrpImages . '"');
667
+                    $this->logger->notice('No image file found for page "'.$page.'" in fileGrp "'.$fileGrpImages.'"');
668 668
                 }
669 669
             }
670 670
         }
671 671
         if (empty($image)) {
672
-            $this->logger->warning('No image file found for page "' . $page . '" in fileGrps "' . $this->extConf['files']['fileGrpImages'] . '"');
672
+            $this->logger->warning('No image file found for page "'.$page.'" in fileGrps "'.$this->extConf['files']['fileGrpImages'].'"');
673 673
         }
674 674
         return $image;
675 675
     }
Please login to merge, or discard this patch.
Classes/Controller/ListViewController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         // extract collection(s) from collection parameter
83 83
         $collections = [];
84 84
         if (is_array($this->searchParams) && array_key_exists('collection', $this->searchParams)) {
85
-            foreach(explode(',', $this->searchParams['collection']) as $collectionEntry) {
85
+            foreach (explode(',', $this->searchParams['collection']) as $collectionEntry) {
86 86
                 $collections[] = $this->collectionRepository->findByUid((int) $collectionEntry);
87 87
             }
88 88
         }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             $simplePagination = new SimplePagination($solrPaginator);
114 114
 
115 115
             $pagination = $this->buildSimplePagination($simplePagination, $solrPaginator);
116
-            $this->view->assignMultiple([ 'pagination' => $pagination, 'paginator' => $solrPaginator ]);
116
+            $this->view->assignMultiple(['pagination' => $pagination, 'paginator' => $solrPaginator]);
117 117
         }
118 118
 
119 119
         $this->view->assign('viewData', $this->viewData);
Please login to merge, or discard this patch.
Classes/Controller/AbstractController.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -158,11 +158,11 @@  discard block
 block discarded – undo
158 158
                 if ($doc !== null) {
159 159
                     $this->document->setCurrentDocument($doc);
160 160
                 } else {
161
-                    $this->logger->error('Failed to load document with record ID "' . $this->requestData['recordId'] . '"');
161
+                    $this->logger->error('Failed to load document with record ID "'.$this->requestData['recordId'].'"');
162 162
                 }
163 163
             }
164 164
         } else {
165
-            $this->logger->error('Invalid ID "' . $documentId . '" or PID "' . $this->settings['storagePid'] . '" for document loading');
165
+            $this->logger->error('Invalid ID "'.$documentId.'" or PID "'.$this->settings['storagePid'].'" for document loading');
166 166
         }
167 167
     }
168 168
 
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
             && !MathUtility::canBeInterpretedAsInteger($this->requestData['id'])
260 260
             && !GeneralUtility::isValidUrl($this->requestData['id'])
261 261
         ) {
262
-            $this->logger->warning('Invalid ID or URI "' . $this->requestData['id'] . '" for document loading');
262
+            $this->logger->warning('Invalid ID or URI "'.$this->requestData['id'].'" for document loading');
263 263
             unset($this->requestData['id']);
264 264
         }
265 265
 
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
     {
320 320
         if (empty($this->settings[$setting])) {
321 321
             $this->settings[$setting] = $value;
322
-            $this->logger->warning('Setting "' . $setting . '" not set, using default value "' . $value . '". Probably FlexForm for controller "' . get_class($this) . '" is not read.');
322
+            $this->logger->warning('Setting "'.$setting.'" not set, using default value "'.$value.'". Probably FlexForm for controller "'.get_class($this).'" is not read.');
323 323
         } else {
324 324
             $this->settings[$setting] = (int) $this->settings[$setting];
325 325
         }
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
         $pages = [];
405 405
         $pagesSect = [];
406 406
         $aRange = [];
407
-        $nRange = 5;    // ToDo: should be made configurable
407
+        $nRange = 5; // ToDo: should be made configurable
408 408
 
409 409
         // lower limit of the range
410 410
         $nBottom = $currentPageNumber - $nRange;
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
 
420 420
         // check whether the first screen page is > 1, if yes then points must be added
421 421
         if ($aRange[0] > 1) {
422
-            array_push($pagesSect, ['label' => '...','startRecordNumber' => '...']);
422
+            array_push($pagesSect, ['label' => '...', 'startRecordNumber' => '...']);
423 423
         };
424 424
         $lastStartRecordNumberGrid = 0; // due to validity outside the loop
425 425
         foreach (range($firstPage, $lastPage) as $i) {
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
 
463 463
                 // Check if screen page is in range
464 464
                 if (in_array($i, $aRange)) {
465
-                    array_push($pagesSect, ['label' => $i,'startRecordNumber' => $startRecordNumber]);
465
+                    array_push($pagesSect, ['label' => $i, 'startRecordNumber' => $startRecordNumber]);
466 466
                 };
467 467
             };
468 468
         };
@@ -525,7 +525,7 @@  discard block
 block discarded – undo
525 525
         if ($this->document) {
526 526
             $doc = AbstractDocument::getInstance($this->document->getLocation(), $this->settings, true);
527 527
         } else {
528
-            $this->logger->error('Invalid UID "' . $documentId . '" or PID "' . $this->settings['storagePid'] . '" for document loading');
528
+            $this->logger->error('Invalid UID "'.$documentId.'" or PID "'.$this->settings['storagePid'].'" for document loading');
529 529
         }
530 530
 
531 531
         return $doc;
@@ -563,7 +563,7 @@  discard block
 block discarded – undo
563 563
             foreach ($this->requestData['multipleSource'] as $location) {
564 564
                 $document = AbstractDocument::getInstance($location, $this->settings, true);
565 565
                 if ($document !== null) {
566
-                    $this->documentArray['extra_' . $i] = $document;
566
+                    $this->documentArray['extra_'.$i] = $document;
567 567
                 }
568 568
                 $i++;
569 569
             }
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
 
588 588
             $this->document->setLocation($documentId);
589 589
         } else {
590
-            $this->logger->error('Invalid location given "' . $documentId . '" for document loading');
590
+            $this->logger->error('Invalid location given "'.$documentId.'" for document loading');
591 591
         }
592 592
 
593 593
         return $doc;
Please login to merge, or discard this patch.