Scrutinizer GitHub App not installed

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

Install GitHub App

GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Branch master (585b6c)
by Sebastian
06:27
created
Classes/Plugin/Metadata.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
             array_unshift($metadata, $data);
132 132
         }
133 133
         if (empty($metadata)) {
134
-            Helper::devLog('No metadata found for document with UID ' . $this->doc->uid, DEVLOG_SEVERITY_WARNING);
134
+            Helper::devLog('No metadata found for document with UID '.$this->doc->uid, DEVLOG_SEVERITY_WARNING);
135 135
             return $content;
136 136
         }
137 137
         ksort($metadata);
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
             $cObjData = $this->cObj->data;
184 184
             foreach ($metadataArray as $metadata) {
185 185
                 foreach ($metadata as $key => $group) {
186
-                    $markerArray['###METADATA###'] = '<span class="tx-dlf-metadata-group">' . $this->pi_getLL($key) . '</span>';
186
+                    $markerArray['###METADATA###'] = '<span class="tx-dlf-metadata-group">'.$this->pi_getLL($key).'</span>';
187 187
                     // Reset content object's data array.
188 188
                     $this->cObj->data = $cObjData;
189 189
                     if (!is_array($group)) {
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
                                 if (empty($value) && $this->conf['getTitle'] && $this->doc->parentId) {
313 313
                                     $superiorTitle = Document::getTitle($this->doc->parentId, TRUE);
314 314
                                     if (!empty($superiorTitle)) {
315
-                                        $value = '[' . $superiorTitle . ']';
315
+                                        $value = '['.$superiorTitle.']';
316 316
                                     }
317 317
                                 }
318 318
                                 if (!empty($value)) {
Please login to merge, or discard this patch.
Classes/Plugin/TableOfContents.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
             $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(['page' => $entry['points']], TRUE, FALSE, $this->conf['targetPid']);
65 65
             $entryArray['doNotLinkIt'] = 0;
66 66
             if ($this->conf['basketButton']) {
67
-                $entryArray['basketButtonHref'] = '<a href="' . $this->pi_linkTP_keepPIvars_url(['addToBasket' => 'toc', 'logId' => $entry['id'], 'startpage' => $entry['points']], TRUE, FALSE, $this->conf['targetBasket']) . '">' . $this->pi_getLL('basketButton', '', TRUE) . '</a>';
67
+                $entryArray['basketButtonHref'] = '<a href="'.$this->pi_linkTP_keepPIvars_url(['addToBasket' => 'toc', 'logId' => $entry['id'], 'startpage' => $entry['points']], TRUE, FALSE, $this->conf['targetBasket']).'">'.$this->pi_getLL('basketButton', '', TRUE).'</a>';
68 68
             }
69 69
         } elseif (
70 70
             !empty($entry['points'])
@@ -73,13 +73,13 @@  discard block
 block discarded – undo
73 73
             $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(['id' => $entry['points'], 'page' => 1], TRUE, FALSE, $this->conf['targetPid']);
74 74
             $entryArray['doNotLinkIt'] = 0;
75 75
             if ($this->conf['basketButton']) {
76
-                $entryArray['basketButtonHref'] = '<a href="' . $this->pi_linkTP_keepPIvars_url(['addToBasket' => 'toc', 'logId' => $entry['id'], 'startpage' => $entry['points']], TRUE, FALSE, $this->conf['targetBasket']) . '">' . $this->pi_getLL('basketButton', '', TRUE) . '</a>';
76
+                $entryArray['basketButtonHref'] = '<a href="'.$this->pi_linkTP_keepPIvars_url(['addToBasket' => 'toc', 'logId' => $entry['id'], 'startpage' => $entry['points']], TRUE, FALSE, $this->conf['targetBasket']).'">'.$this->pi_getLL('basketButton', '', TRUE).'</a>';
77 77
             }
78 78
         } elseif (!empty($entry['targetUid'])) {
79 79
             $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(['id' => $entry['targetUid'], 'page' => 1], TRUE, FALSE, $this->conf['targetPid']);
80 80
             $entryArray['doNotLinkIt'] = 0;
81 81
             if ($this->conf['basketButton']) {
82
-                $entryArray['basketButtonHref'] = '<a href="' . $this->pi_linkTP_keepPIvars_url(['addToBasket' => 'toc', 'logId' => $entry['id'], 'startpage' => $entry['targetUid']], TRUE, FALSE, $this->conf['targetBasket']) . '">' . $this->pi_getLL('basketButton', '', TRUE) . '</a>';
82
+                $entryArray['basketButtonHref'] = '<a href="'.$this->pi_linkTP_keepPIvars_url(['addToBasket' => 'toc', 'logId' => $entry['id'], 'startpage' => $entry['targetUid']], TRUE, FALSE, $this->conf['targetBasket']).'">'.$this->pi_getLL('basketButton', '', TRUE).'</a>';
83 83
             }
84 84
         }
85 85
         // Set "ITEM_STATE" to "CUR" if this entry points to current page.
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
                 }
113 113
             }
114 114
             // Append "IFSUB" to "ITEM_STATE" if this entry has sub-entries.
115
-            $entryArray['ITEM_STATE'] = ($entryArray['ITEM_STATE'] == 'NO' ? 'IFSUB' : $entryArray['ITEM_STATE'] . 'IFSUB');
115
+            $entryArray['ITEM_STATE'] = ($entryArray['ITEM_STATE'] == 'NO' ? 'IFSUB' : $entryArray['ITEM_STATE'].'IFSUB');
116 116
         }
117 117
         return $entryArray;
118 118
     }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
         $this->getTemplate();
140 140
         $TSconfig = [];
141 141
         $TSconfig['special'] = 'userfunction';
142
-        $TSconfig['special.']['userFunc'] = \Kitodo\Dlf\Plugin\TableOfContents::class . '->makeMenuArray';
142
+        $TSconfig['special.']['userFunc'] = \Kitodo\Dlf\Plugin\TableOfContents::class.'->makeMenuArray';
143 143
         $TSconfig = Helper::mergeRecursiveWithOverrule($this->conf['menuConf.'], $TSconfig);
144 144
         $markerArray['###TOCMENU###'] = $this->cObj->cObjGetSingle('HMENU', $TSconfig);
145 145
         $content .= $this->templateService->substituteMarkerArray($this->template, $markerArray);
@@ -211,9 +211,9 @@  discard block
 block discarded – undo
211 211
                 $menuArray[] = $this->getMenuEntry($entry, FALSE);
212 212
             }
213 213
             // Get all child documents from database.
214
-            $whereClause = 'tx_dlf_documents.partof=' . intval($this->doc->uid) . ' AND tx_dlf_documents.structure=tx_dlf_structures.uid AND tx_dlf_structures.pid=' . $this->doc->pid . Helper::whereClause('tx_dlf_documents') . Helper::whereClause('tx_dlf_structures');
214
+            $whereClause = 'tx_dlf_documents.partof='.intval($this->doc->uid).' AND tx_dlf_documents.structure=tx_dlf_structures.uid AND tx_dlf_structures.pid='.$this->doc->pid.Helper::whereClause('tx_dlf_documents').Helper::whereClause('tx_dlf_structures');
215 215
             if ($this->conf['excludeOther']) {
216
-                $whereClause .= ' AND tx_dlf_documents.pid=' . intval($this->conf['pages']);
216
+                $whereClause .= ' AND tx_dlf_documents.pid='.intval($this->conf['pages']);
217 217
             }
218 218
             // Build table of contents from database.
219 219
             $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
Please login to merge, or discard this patch.
Classes/Plugin/Search.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
         if ($result->rowCount() == 1) {
64 64
             $pageRenderer = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class);
65
-            $pageRenderer->addJsFooterFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'Resources/Public/Javascript/Search/Suggester.js');
65
+            $pageRenderer->addJsFooterFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'Resources/Public/Javascript/Search/Suggester.js');
66 66
         } else {
67 67
             Helper::devLog('No metadata fields configured for search suggestions', DEVLOG_SEVERITY_WARNING);
68 68
         }
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             && $list->metadata['options']['source'] == 'collection'
85 85
         ) {
86 86
             // Get collection's UID.
87
-            return '<input type="hidden" name="' . $this->prefixId . '[collection]" value="' . $list->metadata['options']['select'] . '" />';
87
+            return '<input type="hidden" name="'.$this->prefixId.'[collection]" value="'.$list->metadata['options']['select'].'" />';
88 88
         } elseif (!empty($list->metadata['options']['params']['filterquery'])) {
89 89
             // Get collection's UID from search metadata.
90 90
             foreach ($list->metadata['options']['params']['filterquery'] as $facet) {
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
                     $collectionId = Helper::getUidFromIndexName(trim($facetKeyVal[1], '(")'), 'tx_dlf_collections');
97 97
                 }
98 98
             }
99
-            return '<input type="hidden" name="' . $this->prefixId . '[collection]" value="' . $collectionId . '" />';
99
+            return '<input type="hidden" name="'.$this->prefixId.'[collection]" value="'.$collectionId.'" />';
100 100
         }
101 101
         return '';
102 102
     }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             $this->loadDocument();
121 121
             // Get document's UID or parent ID.
122 122
             if ($this->doc->ready) {
123
-                return '<input type="hidden" name="' . $this->prefixId . '[id]" value="' . ($this->doc->parentId > 0 ? $this->doc->parentId : $this->doc->uid) . '" />';
123
+                return '<input type="hidden" name="'.$this->prefixId.'[id]" value="'.($this->doc->parentId > 0 ? $this->doc->parentId : $this->doc->uid).'" />';
124 124
             }
125 125
         } elseif (!empty($list->metadata['options']['params']['filterquery'])) {
126 126
             // Get document's UID from search metadata.
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                     $documentId = (int) substr($facetKeyVal[1], 1, strpos($facetKeyVal[1], ')'));
131 131
                 }
132 132
             }
133
-            return '<input type="hidden" name="' . $this->prefixId . '[id]" value="' . $documentId . '" />';
133
+            return '<input type="hidden" name="'.$this->prefixId.'[id]" value="'.$documentId.'" />';
134 134
         }
135 135
         return '';
136 136
     }
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
         }
153 153
         // Add encrypted fields to search form.
154 154
         if (is_array($name)) {
155
-            return '<input type="hidden" name="' . $this->prefixId . '[encrypted]" value="' . $name['encrypted'] . '" /><input type="hidden" name="' . $this->prefixId . '[hashed]" value="' . $name['hash'] . '" />';
155
+            return '<input type="hidden" name="'.$this->prefixId.'[encrypted]" value="'.$name['encrypted'].'" /><input type="hidden" name="'.$this->prefixId.'[hashed]" value="'.$name['hash'].'" />';
156 156
         } else {
157 157
             return '';
158 158
         }
@@ -178,19 +178,19 @@  discard block
 block discarded – undo
178 178
         // Get operator options.
179 179
         $operatorOptions = '';
180 180
         foreach (['AND', 'OR', 'NOT'] as $operator) {
181
-            $operatorOptions .= '<option class="tx-dlf-search-operator-option tx-dlf-search-operator-' . $operator . '" value="' . $operator . '">' . $this->pi_getLL($operator, '', TRUE) . '</option>';
181
+            $operatorOptions .= '<option class="tx-dlf-search-operator-option tx-dlf-search-operator-'.$operator.'" value="'.$operator.'">'.$this->pi_getLL($operator, '', TRUE).'</option>';
182 182
         }
183 183
         // Get field selector options.
184 184
         $fieldSelectorOptions = '';
185 185
         $searchFields = GeneralUtility::trimExplode(',', $this->conf['extendedFields'], TRUE);
186 186
         foreach ($searchFields as $searchField) {
187
-            $fieldSelectorOptions .= '<option class="tx-dlf-search-field-option tx-dlf-search-field-' . $searchField . '" value="' . $searchField . '">' . Helper::translate($searchField, 'tx_dlf_metadata', $this->conf['pages']) . '</option>';
187
+            $fieldSelectorOptions .= '<option class="tx-dlf-search-field-option tx-dlf-search-field-'.$searchField.'" value="'.$searchField.'">'.Helper::translate($searchField, 'tx_dlf_metadata', $this->conf['pages']).'</option>';
188 188
         }
189 189
         for ($i = 0; $i < $this->conf['extendedSlotCount']; $i++) {
190 190
             $markerArray = [
191
-                '###EXT_SEARCH_OPERATOR###' => '<select class="tx-dlf-search-operator tx-dlf-search-operator-' . $i . '" name="' . $this->prefixId . '[extOperator][' . $i . ']">' . $operatorOptions . '</select>',
192
-                '###EXT_SEARCH_FIELDSELECTOR###' => '<select class="tx-dlf-search-field tx-dlf-search-field-' . $i . '" name="' . $this->prefixId . '[extField][' . $i . ']">' . $fieldSelectorOptions . '</select>',
193
-                '###EXT_SEARCH_FIELDQUERY###' => '<input class="tx-dlf-search-query tx-dlf-search-query-' . $i . '" type="text" name="' . $this->prefixId . '[extQuery][' . $i . ']" />'
191
+                '###EXT_SEARCH_OPERATOR###' => '<select class="tx-dlf-search-operator tx-dlf-search-operator-'.$i.'" name="'.$this->prefixId.'[extOperator]['.$i.']">'.$operatorOptions.'</select>',
192
+                '###EXT_SEARCH_FIELDSELECTOR###' => '<select class="tx-dlf-search-field tx-dlf-search-field-'.$i.'" name="'.$this->prefixId.'[extField]['.$i.']">'.$fieldSelectorOptions.'</select>',
193
+                '###EXT_SEARCH_FIELDQUERY###' => '<input class="tx-dlf-search-query tx-dlf-search-query-'.$i.'" type="text" name="'.$this->prefixId.'[extQuery]['.$i.']" />'
194 194
             ];
195 195
             $extendedSearch .= $this->templateService->substituteMarkerArray($this->templateService->getSubpart($this->template, '###EXT_SEARCH_ENTRY###'), $markerArray);
196 196
         }
@@ -218,12 +218,12 @@  discard block
 block discarded – undo
218 218
         // Get facets from plugin configuration.
219 219
         $facets = [];
220 220
         foreach (GeneralUtility::trimExplode(',', $this->conf['facets'], TRUE) as $facet) {
221
-            $facets[$facet . '_faceting'] = Helper::translate($facet, 'tx_dlf_metadata', $this->conf['pages']);
221
+            $facets[$facet.'_faceting'] = Helper::translate($facet, 'tx_dlf_metadata', $this->conf['pages']);
222 222
         }
223 223
         // Render facets menu.
224 224
         $TSconfig = [];
225 225
         $TSconfig['special'] = 'userfunction';
226
-        $TSconfig['special.']['userFunc'] = \Kitodo\Dlf\Plugin\Search::class . '->makeFacetsMenuArray';
226
+        $TSconfig['special.']['userFunc'] = \Kitodo\Dlf\Plugin\Search::class.'->makeFacetsMenuArray';
227 227
         $TSconfig['special.']['facets'] = $facets;
228 228
         $TSconfig['special.']['limit'] = max(intval($this->conf['limitFacets']), 1);
229 229
         $TSconfig = Helper::mergeRecursiveWithOverrule($this->conf['facetsConf.'], $TSconfig);
@@ -244,10 +244,10 @@  discard block
 block discarded – undo
244 244
         $output = '';
245 245
         // Check for plugin configuration.
246 246
         if (!empty($this->conf['fulltext'])) {
247
-            $output .= ' <input class="tx-dlf-search-fulltext" id="tx-dlf-search-fulltext-no" type="radio" name="' . $this->prefixId . '[fulltext]" value="0" ' . ($isFulltextSearch == 0 ? 'checked="checked"' : '') . ' />';
248
-            $output .= ' <label for="tx-dlf-search-fulltext-no">' . $this->pi_getLL('label.inMetadata', '') . '</label>';
249
-            $output .= ' <input class="tx-dlf-search-fulltext" id="tx-dlf-search-fulltext-yes" type="radio" name="' . $this->prefixId . '[fulltext]" value="1" ' . ($isFulltextSearch == 1 ? 'checked="checked"' : '') . '/>';
250
-            $output .= ' <label for="tx-dlf-search-fulltext-yes">' . $this->pi_getLL('label.inFulltext', '') . '</label>';
247
+            $output .= ' <input class="tx-dlf-search-fulltext" id="tx-dlf-search-fulltext-no" type="radio" name="'.$this->prefixId.'[fulltext]" value="0" '.($isFulltextSearch == 0 ? 'checked="checked"' : '').' />';
248
+            $output .= ' <label for="tx-dlf-search-fulltext-no">'.$this->pi_getLL('label.inMetadata', '').'</label>';
249
+            $output .= ' <input class="tx-dlf-search-fulltext" id="tx-dlf-search-fulltext-yes" type="radio" name="'.$this->prefixId.'[fulltext]" value="1" '.($isFulltextSearch == 1 ? 'checked="checked"' : '').'/>';
250
+            $output .= ' <label for="tx-dlf-search-fulltext-yes">'.$this->pi_getLL('label.inFulltext', '').'</label>';
251 251
         }
252 252
         return $output;
253 253
     }
@@ -264,8 +264,8 @@  discard block
 block discarded – undo
264 264
         $output = '';
265 265
         // Check for plugin configuration.
266 266
         if (!empty($this->conf['showLogicalPageField'])) {
267
-            $output .= ' <label for="tx-dlf-search-logical-page">' . $this->pi_getLL('label.logicalPage', '') . ': </label>';
268
-            $output .= ' <input class="tx-dlf-search-logical-page" id="tx-dlf-search-logical-page" type="text" name="' . $this->prefixId . '[logicalPage]" />';
267
+            $output .= ' <label for="tx-dlf-search-logical-page">'.$this->pi_getLL('label.logicalPage', '').': </label>';
268
+            $output .= ' <input class="tx-dlf-search-logical-page" id="tx-dlf-search-logical-page" type="text" name="'.$this->prefixId.'[logicalPage]" />';
269 269
         }
270 270
         return $output;
271 271
     }
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
         $entryArray['doNotLinkIt'] = 0;
307 307
         // Check if facet is already selected.
308 308
         $queryColumn = array_column($search['params']['filterquery'], 'query');
309
-        $index = array_search($field . ':("' . Solr::escapeQuery($value) . '")', $queryColumn);
309
+        $index = array_search($field.':("'.Solr::escapeQuery($value).'")', $queryColumn);
310 310
         if ($index !== FALSE) {
311 311
             // Facet is selected, thus remove it from filter.
312 312
             unset($queryColumn[$index]);
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
             }
324 324
         } else {
325 325
             // Facet is not selected, thus add it to filter.
326
-            $queryColumn[] = $field . ':("' . Solr::escapeQuery($value) . '")';
326
+            $queryColumn[] = $field.':("'.Solr::escapeQuery($value).'")';
327 327
             $entryArray['ITEM_STATE'] = 'NO';
328 328
         }
329 329
         $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(['query' => $search['query'], 'fq' => $queryColumn]);
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
                 '###ACTION_URL###' => $this->cObj->typoLink_URL($linkConf),
378 378
                 '###LABEL_QUERY###' => (!empty($search['query']) ? htmlspecialchars($search['query']) : $this->pi_getLL('label.query')),
379 379
                 '###LABEL_SUBMIT###' => $this->pi_getLL('label.submit'),
380
-                '###FIELD_QUERY###' => $this->prefixId . '[query]',
380
+                '###FIELD_QUERY###' => $this->prefixId.'[query]',
381 381
                 '###QUERY###' => (!empty($search['query']) ? $search['query'] : ''),
382 382
                 '###FULLTEXTSWITCH###' => $this->addFulltextSwitch($list->metadata['fulltextSearch']),
383 383
                 '###FIELD_DOC###' => ($this->conf['searchIn'] == 'document' || $this->conf['searchIn'] == 'all' ? $this->addCurrentDocument() : ''),
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
                 $this->piVars['query'] = empty($matches[1]) ? $this->piVars['query'] : $matches[1];
409 409
                 // Search in fulltext field if applicable. query must not be empty!
410 410
                 if (!empty($this->piVars['query'])) {
411
-                    $query = 'fulltext:(' . Solr::escapeQuery(trim($this->piVars['query'])) . ')';
411
+                    $query = 'fulltext:('.Solr::escapeQuery(trim($this->piVars['query'])).')';
412 412
                 }
413 413
             } else {
414 414
                 // Retain given search field if valid.
@@ -428,9 +428,9 @@  discard block
 block discarded – undo
428 428
                             && in_array($this->piVars['extField'][$i], $allowedFields)
429 429
                         ) {
430 430
                             if (!empty($query)) {
431
-                                $query .= ' ' . $this->piVars['extOperator'][$i] . ' ';
431
+                                $query .= ' '.$this->piVars['extOperator'][$i].' ';
432 432
                             }
433
-                            $query .= Indexer::getIndexFieldName($this->piVars['extField'][$i], $this->conf['pages']) . ':(' . Solr::escapeQuery($this->piVars['extQuery'][$i]) . ')';
433
+                            $query .= Indexer::getIndexFieldName($this->piVars['extField'][$i], $this->conf['pages']).':('.Solr::escapeQuery($this->piVars['extQuery'][$i]).')';
434 434
                         }
435 435
                     }
436 436
                 }
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
                     !empty($this->piVars['id'])
451 451
                     && \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($this->piVars['id'])
452 452
                 ) {
453
-                    $params['filterquery'][]['query'] = 'uid:(' . $this->piVars['id'] . ') OR partof:(' . $this->piVars['id'] . ')';
453
+                    $params['filterquery'][]['query'] = 'uid:('.$this->piVars['id'].') OR partof:('.$this->piVars['id'].')';
454 454
                     $label .= htmlspecialchars(sprintf($this->pi_getLL('in', ''), Document::getTitle($this->piVars['id'])));
455 455
                 }
456 456
             }
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
                     && \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($this->piVars['collection'])
465 465
                 ) {
466 466
                     $index_name = Helper::getIndexNameFromUid($this->piVars['collection'], 'tx_dlf_collections', $this->conf['pages']);
467
-                    $params['filterquery'][]['query'] = 'collection_faceting:("' . Solr::escapeQuery($index_name) . '")';
467
+                    $params['filterquery'][]['query'] = 'collection_faceting:("'.Solr::escapeQuery($index_name).'")';
468 468
                     $label .= sprintf($this->pi_getLL('in', '', TRUE), Helper::translate($index_name, 'tx_dlf_collections', $this->conf['pages']));
469 469
                 }
470 470
             }
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
                     $collIndexNames[] = Solr::escapeQuery(Helper::getIndexNameFromUid(intval($collId), 'tx_dlf_collections', $this->conf['pages']));
477 477
                 }
478 478
                 // Last value is fake and used for distinction in $this->addCurrentCollection()
479
-                $params['filterquery'][]['query'] = 'collection_faceting:("' . implode('" OR "', $collIndexNames) . '" OR "FakeValueForDistinction")';
479
+                $params['filterquery'][]['query'] = 'collection_faceting:("'.implode('" OR "', $collIndexNames).'" OR "FakeValueForDistinction")';
480 480
             }
481 481
             // Set some query parameters.
482 482
             $params['query'] = $query;
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
             }
525 525
             $linkConf['additionalParams'] = GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE);
526 526
             // Send headers.
527
-            header('Location: ' . GeneralUtility::locationHeaderUrl($this->cObj->typoLink_URL($linkConf)));
527
+            header('Location: '.GeneralUtility::locationHeaderUrl($this->cObj->typoLink_URL($linkConf)));
528 528
             exit;
529 529
         }
530 530
     }
Please login to merge, or discard this patch.
Classes/Plugin/ListView.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -85,9 +85,9 @@  discard block
 block discarded – undo
85 85
         $separator = $this->pi_getLL('separator', ' - ', TRUE);
86 86
         // Add link to previous page.
87 87
         if ($this->piVars['pointer'] > 0) {
88
-            $output = $this->pi_linkTP_keepPIvars($this->pi_getLL('prevPage', '&lt;', TRUE), ['pointer' => $this->piVars['pointer'] - 1], TRUE) . $separator;
88
+            $output = $this->pi_linkTP_keepPIvars($this->pi_getLL('prevPage', '&lt;', TRUE), ['pointer' => $this->piVars['pointer'] - 1], TRUE).$separator;
89 89
         } else {
90
-            $output = $this->pi_getLL('prevPage', '&lt;', TRUE) . $separator;
90
+            $output = $this->pi_getLL('prevPage', '&lt;', TRUE).$separator;
91 91
         }
92 92
         $i = 0;
93 93
         $skip = NULL;
@@ -95,13 +95,13 @@  discard block
 block discarded – undo
95 95
         while ($i < $maxPages) {
96 96
             if ($i < 3 || ($i > $this->piVars['pointer'] - 3 && $i < $this->piVars['pointer'] + 3) || $i > $maxPages - 4) {
97 97
                 if ($this->piVars['pointer'] != $i) {
98
-                    $output .= $this->pi_linkTP_keepPIvars(sprintf($this->pi_getLL('page', '%d', TRUE), $i + 1), ['pointer' => $i], TRUE) . $separator;
98
+                    $output .= $this->pi_linkTP_keepPIvars(sprintf($this->pi_getLL('page', '%d', TRUE), $i + 1), ['pointer' => $i], TRUE).$separator;
99 99
                 } else {
100
-                    $output .= sprintf($this->pi_getLL('page', '%d', TRUE), $i + 1) . $separator;
100
+                    $output .= sprintf($this->pi_getLL('page', '%d', TRUE), $i + 1).$separator;
101 101
                 }
102 102
                 $skip = TRUE;
103 103
             } elseif ($skip === TRUE) {
104
-                $output .= $this->pi_getLL('skip', '...', TRUE) . $separator;
104
+                $output .= $this->pi_getLL('skip', '...', TRUE).$separator;
105 105
                 $skip = FALSE;
106 106
             }
107 107
             $i++;
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
                         if (empty($value) && $this->conf['getTitle']) {
148 148
                             $superiorTitle = Document::getTitle($this->list[$number]['uid'], TRUE);
149 149
                             if (!empty($superiorTitle)) {
150
-                                $value = '[' . $superiorTitle . ']';
150
+                                $value = '['.$superiorTitle.']';
151 151
                             }
152 152
                         }
153 153
                         // Set fake title if still not present.
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
         }
192 192
         // Add thumbnail.
193 193
         if (!empty($this->list[$number]['thumbnail'])) {
194
-            $markerArray['###THUMBNAIL###'] = '<img alt="' . $imgAlt . '" src="' . $this->list[$number]['thumbnail'] . '" />';
194
+            $markerArray['###THUMBNAIL###'] = '<img alt="'.$imgAlt.'" src="'.$this->list[$number]['thumbnail'].'" />';
195 195
         }
196 196
         // Add preview.
197 197
         if (!empty($this->list[$number]['preview'])) {
@@ -257,28 +257,28 @@  discard block
 block discarded – undo
257 257
             $linkConf['additionalParams'] = \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, ['logicalPage' => $this->piVars['logicalPage']], '', TRUE, FALSE);
258 258
         }
259 259
         // Build HTML form.
260
-        $sorting = '<form action="' . $this->cObj->typoLink_URL($linkConf) . '" method="get"><div><input type="hidden" name="id" value="' . $GLOBALS['TSFE']->id . '" />';
260
+        $sorting = '<form action="'.$this->cObj->typoLink_URL($linkConf).'" method="get"><div><input type="hidden" name="id" value="'.$GLOBALS['TSFE']->id.'" />';
261 261
         foreach ($this->piVars as $piVar => $value) {
262 262
             if ($piVar != 'order' && $piVar != 'DATA' && !empty($value)) {
263
-                $sorting .= '<input type="hidden" name="' . $this->prefixId . '[' . $piVar . ']" value="' . $value . '" />';
263
+                $sorting .= '<input type="hidden" name="'.$this->prefixId.'['.$piVar.']" value="'.$value.'" />';
264 264
             }
265 265
         }
266 266
         // Select sort field.
267
-        $uniqId = uniqid($prefix . '-');
268
-        $sorting .= '<label for="' . $uniqId . '">' . $this->pi_getLL('orderBy', '', TRUE) . '</label><select id="' . $uniqId . '" name="' . $this->prefixId . '[order]" onchange="javascript:this.form.submit();">';
267
+        $uniqId = uniqid($prefix.'-');
268
+        $sorting .= '<label for="'.$uniqId.'">'.$this->pi_getLL('orderBy', '', TRUE).'</label><select id="'.$uniqId.'" name="'.$this->prefixId.'[order]" onchange="javascript:this.form.submit();">';
269 269
         // Add relevance sorting if this is a search result list.
270 270
         if ($this->list->metadata['options']['source'] == 'search') {
271
-            $sorting .= '<option value="score"' . (($this->list->metadata['options']['order'] == 'score') ? ' selected="selected"' : '') . '>' . $this->pi_getLL('relevance', '', TRUE) . '</option>';
271
+            $sorting .= '<option value="score"'.(($this->list->metadata['options']['order'] == 'score') ? ' selected="selected"' : '').'>'.$this->pi_getLL('relevance', '', TRUE).'</option>';
272 272
         }
273 273
         foreach ($this->sortables as $index_name => $label) {
274
-            $sorting .= '<option value="' . $index_name . '"' . (($this->list->metadata['options']['order'] == $index_name) ? ' selected="selected"' : '') . '>' . htmlspecialchars($label) . '</option>';
274
+            $sorting .= '<option value="'.$index_name.'"'.(($this->list->metadata['options']['order'] == $index_name) ? ' selected="selected"' : '').'>'.htmlspecialchars($label).'</option>';
275 275
         }
276 276
         $sorting .= '</select>';
277 277
         // Select sort direction.
278
-        $uniqId = uniqid($prefix . '-');
279
-        $sorting .= '<label for="' . $uniqId . '">' . $this->pi_getLL('direction', '', TRUE) . '</label><select id="' . $uniqId . '" name="' . $this->prefixId . '[asc]" onchange="javascript:this.form.submit();">';
280
-        $sorting .= '<option value="1" ' . ($this->list->metadata['options']['order.asc'] ? ' selected="selected"' : '') . '>' . $this->pi_getLL('direction.asc', '', TRUE) . '</option>';
281
-        $sorting .= '<option value="0" ' . (!$this->list->metadata['options']['order.asc'] ? ' selected="selected"' : '') . '>' . $this->pi_getLL('direction.desc', '', TRUE) . '</option>';
278
+        $uniqId = uniqid($prefix.'-');
279
+        $sorting .= '<label for="'.$uniqId.'">'.$this->pi_getLL('direction', '', TRUE).'</label><select id="'.$uniqId.'" name="'.$this->prefixId.'[asc]" onchange="javascript:this.form.submit();">';
280
+        $sorting .= '<option value="1" '.($this->list->metadata['options']['order.asc'] ? ' selected="selected"' : '').'>'.$this->pi_getLL('direction.asc', '', TRUE).'</option>';
281
+        $sorting .= '<option value="0" '.(!$this->list->metadata['options']['order.asc'] ? ' selected="selected"' : '').'>'.$this->pi_getLL('direction.desc', '', TRUE).'</option>';
282 282
         $sorting .= '</select></div></form>';
283 283
         return $sorting;
284 284
     }
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
                         if (empty($value) && $this->conf['getTitle']) {
315 315
                             $superiorTitle = Document::getTitle($subpart['uid'], TRUE);
316 316
                             if (!empty($superiorTitle)) {
317
-                                $value = '[' . $superiorTitle . ']';
317
+                                $value = '['.$superiorTitle.']';
318 318
                             }
319 319
                         }
320 320
                         // Set fake title if still not present.
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
                         $value = htmlspecialchars(Helper::translate($value, 'tx_dlf_structures', $this->conf['pages']));
345 345
                         // Add page number for single pages.
346 346
                         if ($_value == 'page') {
347
-                            $value .= ' ' . intval($subpart['page']);
347
+                            $value .= ' '.intval($subpart['page']);
348 348
                         }
349 349
                     } elseif ($index_name == 'language' && !empty($value)) { // Translate ISO 639 language code.
350 350
                         $value = htmlspecialchars(Helper::getLanguageName($value));
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
             }
365 365
             // Add thumbnail.
366 366
             if (!empty($subpart['thumbnail'])) {
367
-                $markerArray['###SUBTHUMBNAIL###'] = '<img alt="' . $imgAlt . '" src="' . $subpart['thumbnail'] . '" />';
367
+                $markerArray['###SUBTHUMBNAIL###'] = '<img alt="'.$imgAlt.'" src="'.$subpart['thumbnail'].'" />';
368 368
             }
369 369
             // Add preview.
370 370
             if (!empty($subpart['preview'])) {
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
                 || (isset($this->piVars['asc']) && $this->piVars['asc'] != $listMetadata['options']['order.asc'])
478 478
             ) {
479 479
                 // Update list's metadata.
480
-                $listMetadata['options']['params']['sort'] = [$this->piVars['order'] . "_sorting" => (bool) $this->piVars['asc'] ? 'asc' : 'desc'];
480
+                $listMetadata['options']['params']['sort'] = [$this->piVars['order']."_sorting" => (bool) $this->piVars['asc'] ? 'asc' : 'desc'];
481 481
                 $listMetadata['options']['order'] = $this->piVars['order'];
482 482
                 $listMetadata['options']['order.asc'] = (bool) $this->piVars['asc'];
483 483
                 // Reset pointer.
@@ -495,13 +495,13 @@  discard block
 block discarded – undo
495 495
                     return $content;
496 496
                 }
497 497
                 // Set search parameters.
498
-                $solr->cPid =  $listMetadata['options']['pid'];
498
+                $solr->cPid = $listMetadata['options']['pid'];
499 499
                 $solr->params = $listMetadata['options']['params'];
500 500
                 // Perform search.
501 501
                 $this->list = $solr->search();
502 502
             }
503 503
             // Add list description
504
-            $listMetadata['description'] = '<p class="tx-dlf-search-numHits">' . htmlspecialchars(sprintf($this->pi_getLL('hits', ''), $this->list->metadata['options']['numberOfHits'], $this->list->metadata['options']['numberOfToplevelHits'])) . '</p>';
504
+            $listMetadata['description'] = '<p class="tx-dlf-search-numHits">'.htmlspecialchars(sprintf($this->pi_getLL('hits', ''), $this->list->metadata['options']['numberOfHits'], $this->list->metadata['options']['numberOfToplevelHits'])).'</p>';
505 505
             $this->list->metadata = $listMetadata;
506 506
             // Save updated list.
507 507
             $this->list->save();
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
         $markerArray['###LISTTITLE###'] = $this->list->metadata['label'];
531 531
         $markerArray['###LISTDESCRIPTION###'] = $this->list->metadata['description'];
532 532
         if (!empty($this->list->metadata['thumbnail'])) {
533
-            $markerArray['###LISTTHUMBNAIL###'] = '<img alt="" src="' . $this->list->metadata['thumbnail'] . '" />';
533
+            $markerArray['###LISTTHUMBNAIL###'] = '<img alt="" src="'.$this->list->metadata['thumbnail'].'" />';
534 534
         } else {
535 535
             $markerArray['###LISTTHUMBNAIL###'] = '';
536 536
         }
Please login to merge, or discard this patch.
Classes/Format/Mods.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
                 }
83 83
                 // Append "valueURI" to name using Unicode unit separator.
84 84
                 if (isset($authors[$i]['valueURI'])) {
85
-                    $metadata['author'][$i] .= chr(31) . (string) $authors[$i]['valueURI'];
85
+                    $metadata['author'][$i] .= chr(31).(string) $authors[$i]['valueURI'];
86 86
                 }
87 87
             }
88 88
         }
Please login to merge, or discard this patch.
Classes/Command/IndexCommand.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             $startingPoint = MathUtility::forceIntegerInRange((int) $input->getOption('pid'), 0);
84 84
         }
85 85
         if ($startingPoint == 0) {
86
-            $io->error('ERROR: No valid PID (' . $startingPoint . ') given.');
86
+            $io->error('ERROR: No valid PID ('.$startingPoint.') given.');
87 87
             exit(1);
88 88
         }
89 89
 
@@ -99,13 +99,13 @@  discard block
 block discarded – undo
99 99
             if (empty($solrCoreUid) || !in_array($solrCoreUid, $allSolrCores)) {
100 100
                 $output_solrCores = [];
101 101
                 foreach ($allSolrCores as $index_name => $uid) {
102
-                    $output_solrCores[] = $uid . ' : ' . $index_name;
102
+                    $output_solrCores[] = $uid.' : '.$index_name;
103 103
                 }
104 104
                 if (empty($output_solrCores)) {
105
-                    $io->error('ERROR: No valid Solr core ("' . $input->getOption('solr') . '") given. No valid cores found on PID ' . $startingPoint . ".\n");
105
+                    $io->error('ERROR: No valid Solr core ("'.$input->getOption('solr').'") given. No valid cores found on PID '.$startingPoint.".\n");
106 106
                     exit(1);
107 107
                 } else {
108
-                    $io->error('ERROR: No valid Solr core ("' . $input->getOption('solr') . '") given. ' . "Valid cores are (<uid>:<index_name>):\n" . implode("\n", $output_solrCores) . "\n");
108
+                    $io->error('ERROR: No valid Solr core ("'.$input->getOption('solr').'") given. '."Valid cores are (<uid>:<index_name>):\n".implode("\n", $output_solrCores)."\n");
109 109
                     exit(1);
110 110
                 }
111 111
             }
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             !MathUtility::canBeInterpretedAsInteger($input->getOption('doc'))
119 119
             && !GeneralUtility::isValidUrl($input->getOption('doc'))
120 120
         ) {
121
-            $io->error('ERROR: "' . $input->getOption('doc') . '" is not a valid document UID or URL for --doc|-d.');
121
+            $io->error('ERROR: "'.$input->getOption('doc').'" is not a valid document UID or URL for --doc|-d.');
122 122
             exit(1);
123 123
         }
124 124
 
@@ -126,19 +126,19 @@  discard block
 block discarded – undo
126 126
         $doc = Document::getInstance($input->getOption('doc'), $startingPoint, TRUE);
127 127
         if ($doc->ready) {
128 128
             if ($dryRun) {
129
-                $io->section('DRY RUN: Would index ' . $doc->uid . ' ("' . $doc->location . '") on UID ' . $startingPoint . ' and Solr core ' . $solrCoreUid . '.');
129
+                $io->section('DRY RUN: Would index '.$doc->uid.' ("'.$doc->location.'") on UID '.$startingPoint.' and Solr core '.$solrCoreUid.'.');
130 130
             } else {
131 131
                 if ($io->isVerbose()) {
132
-                    $io->section('Indexing ' . $doc->uid . ' ("' . $doc->location . '") on UID ' . $startingPoint . ' and Solr core ' . $solrCoreUid . '.');
132
+                    $io->section('Indexing '.$doc->uid.' ("'.$doc->location.'") on UID '.$startingPoint.' and Solr core '.$solrCoreUid.'.');
133 133
                 }
134 134
                 // ...and save it to the database...
135 135
                 if (!$doc->save($startingPoint, $solrCoreUid)) {
136
-                    $io->error('ERROR: Document "' . $input->getOption('doc') . '" not saved and indexed.');
136
+                    $io->error('ERROR: Document "'.$input->getOption('doc').'" not saved and indexed.');
137 137
                     exit(1);
138 138
                 }
139 139
             }
140 140
         } else {
141
-            $io->error('ERROR: Document "' . $input->getOption('doc') . '" could not be loaded.');
141
+            $io->error('ERROR: Document "'.$input->getOption('doc').'" could not be loaded.');
142 142
             exit(1);
143 143
         }
144 144
 
Please login to merge, or discard this patch.
Classes/Command/ReindexCommand.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
             $startingPoint = MathUtility::forceIntegerInRange((int) $input->getOption('pid'), 0);
91 91
         }
92 92
         if ($startingPoint == 0) {
93
-            $io->error('ERROR: No valid PID (' . $startingPoint . ') given.');
93
+            $io->error('ERROR: No valid PID ('.$startingPoint.') given.');
94 94
             exit(1);
95 95
         }
96 96
 
@@ -106,13 +106,13 @@  discard block
 block discarded – undo
106 106
             if (empty($solrCoreUid) || !in_array($solrCoreUid, $allSolrCores)) {
107 107
                 $output_solrCores = [];
108 108
                 foreach ($allSolrCores as $index_name => $uid) {
109
-                    $output_solrCores[] = $uid . ' : ' . $index_name;
109
+                    $output_solrCores[] = $uid.' : '.$index_name;
110 110
                 }
111 111
                 if (empty($output_solrCores)) {
112
-                    $io->error('ERROR: No valid Solr core ("' . $input->getOption('solr') . '") given. No valid cores found on PID ' . $startingPoint . ".\n");
112
+                    $io->error('ERROR: No valid Solr core ("'.$input->getOption('solr').'") given. No valid cores found on PID '.$startingPoint.".\n");
113 113
                     exit(1);
114 114
                 } else {
115
-                    $io->error('ERROR: No valid Solr core ("' . $input->getOption('solr') . '") given. ' . "Valid cores are (<uid>:<index_name>):\n" . implode("\n", $output_solrCores) . "\n");
115
+                    $io->error('ERROR: No valid Solr core ("'.$input->getOption('solr').'") given. '."Valid cores are (<uid>:<index_name>):\n".implode("\n", $output_solrCores)."\n");
116 116
                     exit(1);
117 117
                 }
118 118
             }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         } else {
128 128
             // coll may be a single integer, a list of integer
129 129
             if (empty(array_filter(GeneralUtility::intExplode(',', $input->getOption('coll'), TRUE)))) {
130
-                $io->error('ERROR: "' . $input->getOption('coll') . '" is not a valid list of collection UIDs for --coll|-c.');
130
+                $io->error('ERROR: "'.$input->getOption('coll').'" is not a valid list of collection UIDs for --coll|-c.');
131 131
                 exit(1);
132 132
             }
133 133
             $documents = $this->getDocumentsToProceed($input->getOption('coll'), $startingPoint);
@@ -137,18 +137,18 @@  discard block
 block discarded – undo
137 137
             $doc = Document::getInstance($document, $startingPoint, TRUE);
138 138
             if ($doc->ready) {
139 139
                 if ($dryRun) {
140
-                    $io->writeln('DRY RUN: Would index ' . $id . '/' . count($documents) . ' ' . $doc->uid . ' ("' . $doc->location . '") on UID ' . $startingPoint . ' and Solr core ' . $solrCoreUid . '.');
140
+                    $io->writeln('DRY RUN: Would index '.$id.'/'.count($documents).' '.$doc->uid.' ("'.$doc->location.'") on UID '.$startingPoint.' and Solr core '.$solrCoreUid.'.');
141 141
                 } else {
142 142
                     if ($io->isVerbose()) {
143
-                        $io->writeln(date('Y-m-d H:i:s') . ' Indexing ' . $id . '/' . count($documents) . ' ' . $doc->uid . ' ("' . $doc->location . '") on UID ' . $startingPoint . ' and Solr core ' . $solrCoreUid . '.');
143
+                        $io->writeln(date('Y-m-d H:i:s').' Indexing '.$id.'/'.count($documents).' '.$doc->uid.' ("'.$doc->location.'") on UID '.$startingPoint.' and Solr core '.$solrCoreUid.'.');
144 144
                     }
145 145
                     // ...and save it to the database...
146 146
                     if (!$doc->save($startingPoint, $solrCoreUid)) {
147
-                        $io->error('ERROR: Document "' . $id . '" not saved and indexed.');
147
+                        $io->error('ERROR: Document "'.$id.'" not saved and indexed.');
148 148
                     }
149 149
                 }
150 150
             } else {
151
-                $io->error('ERROR: Document "' . $id . '" could not be loaded.');
151
+                $io->error('ERROR: Document "'.$id.'" could not be loaded.');
152 152
             }
153 153
             // Clear document registry to prevent memory exhaustion.
154 154
             Document::clearRegistry();
Please login to merge, or discard this patch.
class.ext_update.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
             'TEIHDR' => 'Kitodo\\\\Dlf\\\\Format\\\\TeiHeader'
216 216
         ];
217 217
         foreach ($oldRecords as $uid => $type) {
218
-            $sqlQuery = 'UPDATE tx_dlf_formats SET class="' . $newValues[$type] . '" WHERE uid=' . $uid;
218
+            $sqlQuery = 'UPDATE tx_dlf_formats SET class="'.$newValues[$type].'" WHERE uid='.$uid;
219 219
             $GLOBALS['TYPO3_DB']->sql_query($sqlQuery);
220 220
         }
221 221
         Helper::addMessage(
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
             $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
243 243
                 'tx_dlf_metadata.uid AS uid,tx_dlf_metadata.pid AS pid,tx_dlf_metadata.cruser_id AS cruser_id,tx_dlf_metadata.encoded AS encoded,tx_dlf_metadata.xpath AS xpath,tx_dlf_metadata.xpath_sorting AS xpath_sorting',
244 244
                 'tx_dlf_metadata',
245
-                'tx_dlf_metadata.uid IN (' . implode(',', $metadataUids) . ')'
245
+                'tx_dlf_metadata.uid IN ('.implode(',', $metadataUids).')'
246 246
                     . Helper::whereClause('tx_dlf_metadata')
247 247
             );
248 248
             while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) {
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
                     $solrInfo['username']
335 335
                     && $solrInfo['password']
336 336
                 ) {
337
-                    $host = $solrInfo['username'] . ':' . $solrInfo['password'] . '@' . $solrInfo['host'];
337
+                    $host = $solrInfo['username'].':'.$solrInfo['password'].'@'.$solrInfo['host'];
338 338
                 } else {
339 339
                     $host = $solrInfo['host'];
340 340
                 }
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
                 ]);
347 347
                 // Build request for adding new Solr core.
348 348
                 // @see http://wiki.apache.org/solr/CoreAdmin
349
-                $url = $solrInfo['scheme'] . '://' . $host . ':' . $solrInfo['port'] . '/' . $solrInfo['path'] . '/admin/cores?wt=xml&action=CREATE&name=' . $resArray['index_name'] . '&instanceDir=' . $resArray['index_name'] . '&dataDir=data&configSet=dlf';
349
+                $url = $solrInfo['scheme'].'://'.$host.':'.$solrInfo['port'].'/'.$solrInfo['path'].'/admin/cores?wt=xml&action=CREATE&name='.$resArray['index_name'].'&instanceDir='.$resArray['index_name'].'&dataDir=data&configSet=dlf';
350 350
                 $response = @simplexml_load_string(file_get_contents($url, FALSE, $context));
351 351
                 // Process response.
352 352
                 if ($response) {
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
382 382
             'COLUMN_NAME',
383 383
             'INFORMATION_SCHEMA.COLUMNS',
384
-            'TABLE_NAME="tx_dlf_documents" AND TABLE_SCHEMA="' . $database . '" AND COLUMN_NAME="document_format"'
384
+            'TABLE_NAME="tx_dlf_documents" AND TABLE_SCHEMA="'.$database.'" AND COLUMN_NAME="document_format"'
385 385
         );
386 386
         while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) {
387 387
             if ($resArray['COLUMN_NAME'] == 'document_format') {
Please login to merge, or discard this patch.