Passed
Pull Request — master (#85)
by Alexander
03:00
created
Classes/Common/AbstractModule.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -100,9 +100,9 @@  discard block
 block discarded – undo
100 100
     protected function printContent()
101 101
     {
102 102
         $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
103
-        $this->doc->setModuleTemplate('EXT:' . $this->extKey . '/Resources/Private/Templates/' . Helper::getUnqualifiedClassName(get_class($this)) . '.tmpl');
103
+        $this->doc->setModuleTemplate('EXT:'.$this->extKey.'/Resources/Private/Templates/'.Helper::getUnqualifiedClassName(get_class($this)).'.tmpl');
104 104
         $this->doc->backPath = $GLOBALS['BACK_PATH'];
105
-        $this->doc->bodyTagAdditions = 'class="ext-' . $this->extKey . '-modules"';
105
+        $this->doc->bodyTagAdditions = 'class="ext-'.$this->extKey.'-modules"';
106 106
         $this->doc->form = '<form action="" method="post" enctype="multipart/form-data">';
107 107
         // Add Javascript for function menu.
108 108
         $this->doc->JScode .= '<script type="text/javascript">script_ended = 0;function jumpToUrl(URL) { document.location = URL; }</script>';
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         $this->content .= $this->doc->startPage($GLOBALS['LANG']->getLL('title'));
113 113
         // Set defaults for menu.
114 114
         if (empty($this->markerArray['CSH'])) {
115
-            $this->markerArray['CSH'] = \TYPO3\CMS\Backend\Utility\BackendUtility::cshItem('_MOD_' . $GLOBALS['MCONF']['name'], 'csh');
115
+            $this->markerArray['CSH'] = \TYPO3\CMS\Backend\Utility\BackendUtility::cshItem('_MOD_'.$GLOBALS['MCONF']['name'], 'csh');
116 116
         }
117 117
         if (empty($this->markerArray['MOD_MENU'])) {
118 118
             $this->markerArray['MOD_MENU'] = \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncMenu($this->id, 'SET[function]', $this->MOD_SETTINGS['function'], $this->MOD_MENU['function']);
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      */
132 132
     public function __construct()
133 133
     {
134
-        $GLOBALS['LANG']->includeLLFile('EXT:' . $this->extKey . '/Resources/Private/Language/' . Helper::getUnqualifiedClassName(get_class($this)) . '.xml');
134
+        $GLOBALS['LANG']->includeLLFile('EXT:'.$this->extKey.'/Resources/Private/Language/'.Helper::getUnqualifiedClassName(get_class($this)).'.xml');
135 135
         // Read extension configuration.
136 136
         if (isset($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS'][$this->extKey]) && is_array($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS'][$this->extKey])) {
137 137
             $this->conf = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get($this->extKey);
Please login to merge, or discard this patch.
Classes/Hooks/DataHandler.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -123,10 +123,10 @@  discard block
 block discarded – undo
123 123
                     ) {
124 124
                         // Get current configuration.
125 125
                         $result = $queryBuilder
126
-                            ->select($table . '.is_listed AS is_listed')
126
+                            ->select($table.'.is_listed AS is_listed')
127 127
                             ->from($table)
128 128
                             ->where(
129
-                                $queryBuilder->expr()->eq($table . '.uid', intval($id)),
129
+                                $queryBuilder->expr()->eq($table.'.uid', intval($id)),
130 130
                                 Helper::whereExpression($table)
131 131
                             )
132 132
                             ->setMaxResults(1)
@@ -148,10 +148,10 @@  discard block
 block discarded – undo
148 148
                     ) {
149 149
                         // Get current configuration.
150 150
                         $result = $queryBuilder
151
-                            ->select($table . '.index_autocomplete AS index_autocomplete')
151
+                            ->select($table.'.index_autocomplete AS index_autocomplete')
152 152
                             ->from($table)
153 153
                             ->where(
154
-                                $queryBuilder->expr()->eq($table . '.uid', intval($id)),
154
+                                $queryBuilder->expr()->eq($table.'.uid', intval($id)),
155 155
                                 Helper::whereExpression($table)
156 156
                             )
157 157
                             ->setMaxResults(1)
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
                                 if ($solr->ready) {
230 230
                                     // Delete Solr document.
231 231
                                     $updateQuery = $solr->service->createUpdate();
232
-                                    $updateQuery->addDeleteQuery('uid:' . $id);
232
+                                    $updateQuery->addDeleteQuery('uid:'.$id);
233 233
                                     $updateQuery->addCommit();
234 234
                                     $solr->service->update($updateQuery);
235 235
                                 }
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
                                 if ($doc->ready) {
240 240
                                     Indexer::add($doc, $resArray['core']);
241 241
                                 } else {
242
-                                    $this->logger->error('Failed to re-index document with UID ' . $id);
242
+                                    $this->logger->error('Failed to re-index document with UID '.$id);
243 243
                                 }
244 244
                             }
245 245
                         }
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
                         if ($solr->ready) {
310 310
                             // Delete Solr document.
311 311
                             $updateQuery = $solr->service->createUpdate();
312
-                            $updateQuery->addDeleteQuery('uid:' . $id);
312
+                            $updateQuery->addDeleteQuery('uid:'.$id);
313 313
                             $updateQuery->addCommit();
314 314
                             $solr->service->update($updateQuery);
315 315
                             if ($command == 'delete') {
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
                         if ($doc->ready) {
323 323
                             Indexer::add($doc, $resArray['core']);
324 324
                         } else {
325
-                            $this->logger->error('Failed to re-index document with UID ' . $id);
325
+                            $this->logger->error('Failed to re-index document with UID '.$id);
326 326
                         }
327 327
                         break;
328 328
                 }
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
                             // Nothing to do here.
377 377
                         }
378 378
                     }
379
-                    $this->logger->warning('Core ' . $resArray['core'] . ' could not be deleted from Apache Solr');
379
+                    $this->logger->warning('Core '.$resArray['core'].' could not be deleted from Apache Solr');
380 380
                 }
381 381
             }
382 382
         }
Please login to merge, or discard this patch.
Classes/Plugin/Tools/PdfDownloadTool.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             empty($page1Link)
116 116
             && empty($page2Link)
117 117
         ) {
118
-            $this->logger->warning('File not found in fileGrps "' . $this->conf['fileGrpDownload'] . '"');
118
+            $this->logger->warning('File not found in fileGrps "'.$this->conf['fileGrpDownload'].'"');
119 119
         }
120 120
         // Wrap URLs with HTML.
121 121
         $linkConf = [
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             $linkConf['title'] = $this->pi_getLL('rightPage', '');
138 138
             $page2Link = $this->cObj->typoLink($this->pi_getLL('rightPage', ''), $linkConf);
139 139
         }
140
-        return $page1Link . $page2Link;
140
+        return $page1Link.$page2Link;
141 141
     }
142 142
 
143 143
     /**
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
             ];
175 175
             $workLink = $this->cObj->typoLink($this->pi_getLL('work', ''), $linkConf);
176 176
         } else {
177
-            $this->logger->warning('File not found in fileGrp "' . $this->conf['fileGrpDownload'] . '"');
177
+            $this->logger->warning('File not found in fileGrp "'.$this->conf['fileGrpDownload'].'"');
178 178
         }
179 179
         return $workLink;
180 180
     }
Please login to merge, or discard this patch.
Classes/Plugin/Calendar.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                 $_day = date('j', $dateTimestamp);
158 158
                 $calendarIssuesByYear[$_year][$_month][$_day][] = $issue;
159 159
             } else {
160
-                $this->logger->warning('Document with UID ' . $issue['uid'] . 'has no valid date of publication');
160
+                $this->logger->warning('Document with UID '.$issue['uid'].'has no valid date of publication');
161 161
             }
162 162
         }
163 163
         // Sort by years.
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
             'parameter' => $GLOBALS['TSFE']->id,
207 207
             'forceAbsoluteUrl' => !empty($this->conf['forceAbsoluteUrl']) ? 1 : 0,
208 208
             'forceAbsoluteUrl.' => ['scheme' => !empty($this->conf['forceAbsoluteUrl']) && !empty($this->conf['forceAbsoluteUrlHttps']) ? 'https' : 'http'],
209
-            'additionalParams' => '&' . $this->prefixId . '[id]=' . urlencode($this->doc->uid),
209
+            'additionalParams' => '&'.$this->prefixId.'[id]='.urlencode($this->doc->uid),
210 210
         ];
211 211
         $linkTitleData = $this->doc->getTitledata();
212 212
         $linkTitle = !empty($linkTitleData['mets_orderlabel'][0]) ? $linkTitleData['mets_orderlabel'][0] : $linkTitleData['mets_label'][0];
@@ -217,9 +217,9 @@  discard block
 block discarded – undo
217 217
             'parameter' => $GLOBALS['TSFE']->id,
218 218
             'forceAbsoluteUrl' => !empty($this->conf['forceAbsoluteUrl']) ? 1 : 0,
219 219
             'forceAbsoluteUrl.' => ['scheme' => !empty($this->conf['forceAbsoluteUrl']) && !empty($this->conf['forceAbsoluteUrlHttps']) ? 'https' : 'http'],
220
-            'additionalParams' => '&' . $this->prefixId . '[id]=' . urlencode($this->doc->parentId),
220
+            'additionalParams' => '&'.$this->prefixId.'[id]='.urlencode($this->doc->parentId),
221 221
         ];
222
-        $allYearsLink = $this->cObj->typoLink(htmlspecialchars($this->pi_getLL('allYears', '')) . ' ' . $this->doc->getTitle($this->doc->parentId), $linkConf);
222
+        $allYearsLink = $this->cObj->typoLink(htmlspecialchars($this->pi_getLL('allYears', '')).' '.$this->doc->getTitle($this->doc->parentId), $linkConf);
223 223
         // Fill marker array.
224 224
         $markerArray = [
225 225
             '###CALENDARVIEWACTIVE###' => count($this->allIssues) > 5 ? 'active' : '',
@@ -260,19 +260,19 @@  discard block
 block discarded – undo
260 260
                 '###DAYFRI_NAME###' => strftime('%a', strtotime('last Friday')),
261 261
                 '###DAYSAT_NAME###' => strftime('%a', strtotime('last Saturday')),
262 262
                 '###DAYSUN_NAME###' => strftime('%a', strtotime('last Sunday')),
263
-                '###MONTHNAME###'  => strftime('%B', strtotime($year . '-' . $i . '-1')) . ' ' . $year,
264
-                '###CALYEAR###' => ($i == $firstMonth) ? '<div class="year">' . $year . '</div>' : ''
263
+                '###MONTHNAME###'  => strftime('%B', strtotime($year.'-'.$i.'-1')).' '.$year,
264
+                '###CALYEAR###' => ($i == $firstMonth) ? '<div class="year">'.$year.'</div>' : ''
265 265
             ];
266 266
             // Fill the month markers.
267 267
             $subPartContentMonth = $this->templateService->substituteMarkerArray($subParts['month'], $markerArray);
268 268
             // Reset week content of new month.
269 269
             $subPartContentWeek = '';
270
-            $firstOfMonth = strtotime($year . '-' . $i . '-1');
270
+            $firstOfMonth = strtotime($year.'-'.$i.'-1');
271 271
             $lastOfMonth = strtotime('last day of', ($firstOfMonth));
272 272
             $firstOfMonthStart = strtotime('last Monday', $firstOfMonth);
273 273
             // There are never more than 6 weeks in a month.
274 274
             for ($j = 0; $j <= 5; $j++) {
275
-                $firstDayOfWeek = strtotime('+ ' . $j . ' Week', $firstOfMonthStart);
275
+                $firstDayOfWeek = strtotime('+ '.$j.' Week', $firstOfMonthStart);
276 276
                 $weekArray = [
277 277
                     '###DAYMON###' => '&nbsp;',
278 278
                     '###DAYTUE###' => '&nbsp;',
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
                 ];
285 285
                 // Every week has seven days. ;-)
286 286
                 for ($k = 0; $k <= 6; $k++) {
287
-                    $currentDayTime = strtotime('+ ' . $k . ' Day', $firstDayOfWeek);
287
+                    $currentDayTime = strtotime('+ '.$k.' Day', $firstDayOfWeek);
288 288
                     if (
289 289
                         $currentDayTime >= $firstOfMonth
290 290
                         && $currentDayTime <= $lastOfMonth
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
                                             'parameter' => $this->conf['targetPid'],
305 305
                                             'forceAbsoluteUrl' => !empty($this->conf['forceAbsoluteUrl']) ? 1 : 0,
306 306
                                             'forceAbsoluteUrl.' => ['scheme' => !empty($this->conf['forceAbsoluteUrl']) && !empty($this->conf['forceAbsoluteUrlHttps']) ? 'https' : 'http'],
307
-                                            'additionalParams' => '&' . $this->prefixId . '[id]=' . urlencode($issue['uid']),
307
+                                            'additionalParams' => '&'.$this->prefixId.'[id]='.urlencode($issue['uid']),
308 308
                                             'ATagParams' => ' class="title"',
309 309
                                         ];
310 310
                                         $dayLinksText[] = $this->cObj->typoLink($dayLinkLabel, $linkConf);
@@ -316,13 +316,13 @@  discard block
 block discarded – undo
316 316
                             if (!empty($dayLinksText)) {
317 317
                                 $dayLinksList = '<ul>';
318 318
                                 foreach ($dayLinksText as $link) {
319
-                                    $dayLinksList .= '<li>' . $link . '</li>';
319
+                                    $dayLinksList .= '<li>'.$link.'</li>';
320 320
                                 }
321 321
                                 $dayLinksList .= '</ul>';
322 322
                             }
323
-                            $dayLinkDiv = '<div class="issues"><h4>' . strftime('%d', $currentDayTime) . '</h4><div>' . $dayLinksList . '</div></div>';
323
+                            $dayLinkDiv = '<div class="issues"><h4>'.strftime('%d', $currentDayTime).'</h4><div>'.$dayLinksList.'</div></div>';
324 324
                         }
325
-                        switch (strftime('%w', strtotime('+ ' . $k . ' Day', $firstDayOfWeek))) {
325
+                        switch (strftime('%w', strtotime('+ '.$k.' Day', $firstDayOfWeek))) {
326 326
                             case '0':
327 327
                                 $weekArray['###DAYSUN###'] = ((int) $dayLinks === (int) date('j', $currentDayTime)) ? $dayLinkDiv : strftime('%d', $currentDayTime);
328 328
                                 break;
@@ -418,8 +418,8 @@  discard block
 block discarded – undo
418 418
                     'parameter' => $GLOBALS['TSFE']->id,
419 419
                     'forceAbsoluteUrl' => !empty($this->conf['forceAbsoluteUrl']) ? 1 : 0,
420 420
                     'forceAbsoluteUrl.' => ['scheme' => !empty($this->conf['forceAbsoluteUrl']) && !empty($this->conf['forceAbsoluteUrlHttps']) ? 'https' : 'http'],
421
-                    'additionalParams' => '&' . $this->prefixId . '[id]=' . urlencode($year['uid']),
422
-                    'title' => $titleAnchor . ': ' . $year['title']
421
+                    'additionalParams' => '&'.$this->prefixId.'[id]='.urlencode($year['uid']),
422
+                    'title' => $titleAnchor.': '.$year['title']
423 423
                 ];
424 424
                 $yearArray = [
425 425
                     '###YEARNAME###' => $this->cObj->typoLink($year['title'], $linkConf),
@@ -433,9 +433,9 @@  discard block
 block discarded – undo
433 433
             'parameter' => $GLOBALS['TSFE']->id,
434 434
             'forceAbsoluteUrl' => !empty($this->conf['forceAbsoluteUrl']) ? 1 : 0,
435 435
             'forceAbsoluteUrl.' => ['scheme' => !empty($this->conf['forceAbsoluteUrl']) && !empty($this->conf['forceAbsoluteUrlHttps']) ? 'https' : 'http'],
436
-            'additionalParams' => '&' . $this->prefixId . '[id]=' . $this->doc->uid,
436
+            'additionalParams' => '&'.$this->prefixId.'[id]='.$this->doc->uid,
437 437
         ];
438
-        $allYearsLink = $this->cObj->typoLink(htmlspecialchars($this->pi_getLL('allYears', '')) . ' ' . $this->doc->getTitle($this->doc->uid), $linkConf);
438
+        $allYearsLink = $this->cObj->typoLink(htmlspecialchars($this->pi_getLL('allYears', '')).' '.$this->doc->getTitle($this->doc->uid), $linkConf);
439 439
         // Fill markers.
440 440
         $markerArray = [
441 441
             '###LABEL_CHOOSE_YEAR###' => htmlspecialchars($this->pi_getLL('label.please_choose_year')),
Please login to merge, or discard this patch.
Classes/Plugin/Metadata.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
             array_unshift($metadata, $data);
131 131
         }
132 132
         if (empty($metadata)) {
133
-            $this->logger->warning('No metadata found for document with UID ' . $this->doc->uid);
133
+            $this->logger->warning('No metadata found for document with UID '.$this->doc->uid);
134 134
             return $content;
135 135
         }
136 136
         ksort($metadata);
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
             $iiifLink['value.']['wrap'] = '<dd>|</dd>';
185 185
             foreach ($metadataArray as $metadata) {
186 186
                 foreach ($metadata as $key => $group) {
187
-                    $markerArray['###METADATA###'] = '<span class="tx-dlf-metadata-group">' . $this->pi_getLL($key) . '</span>';
187
+                    $markerArray['###METADATA###'] = '<span class="tx-dlf-metadata-group">'.$this->pi_getLL($key).'</span>';
188 188
                     // Reset content object's data array.
189 189
                     $this->cObj->data = $cObjData;
190 190
                     if (!is_array($group)) {
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
                             if (empty($value) && $this->conf['getTitle'] && $this->doc->parentId) {
303 303
                                 $superiorTitle = Document::getTitle($this->doc->parentId, true);
304 304
                                 if (!empty($superiorTitle)) {
305
-                                    $value = '[' . $superiorTitle . ']';
305
+                                    $value = '['.$superiorTitle.']';
306 306
                                 }
307 307
                             }
308 308
                             if (!empty($value)) {
Please login to merge, or discard this patch.
Classes/Common/Document.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -693,14 +693,14 @@  discard block
 block discarded – undo
693 693
                         // Get the root element's name as text format.
694 694
                         $textFormat = strtoupper($rawTextXml->getName());
695 695
                     } else {
696
-                        $this->logger->warning('Couldn\'t load fulltext file for structure node @ID "' . $id . '"');
696
+                        $this->logger->warning('Couldn\'t load fulltext file for structure node @ID "'.$id.'"');
697 697
                         return $rawText;
698 698
                     }
699 699
                     break;
700 700
                 }
701 701
             }
702 702
         } else {
703
-            $this->logger->warning('Invalid structure node @ID "' . $id . '"');
703
+            $this->logger->warning('Invalid structure node @ID "'.$id.'"');
704 704
             return $rawText;
705 705
         }
706 706
         // Is this text format supported?
@@ -718,11 +718,11 @@  discard block
 block discarded – undo
718 718
                     $rawText = $obj->getRawText($rawTextXml);
719 719
                     $this->rawTextArray[$id] = $rawText;
720 720
                 } else {
721
-                    $this->logger->warning('Invalid class/method "' . $class . '->getRawText()" for text format "' . $textFormat . '"');
721
+                    $this->logger->warning('Invalid class/method "'.$class.'->getRawText()" for text format "'.$textFormat.'"');
722 722
                 }
723 723
             }
724 724
         } else {
725
-            $this->logger->warning('Unsupported text format "' . $textFormat . '" in physical node with @ID "' . $id . '"');
725
+            $this->logger->warning('Unsupported text format "'.$textFormat.'" in physical node with @ID "'.$id.'"');
726 726
         }
727 727
         return $rawText;
728 728
     }
@@ -777,10 +777,10 @@  discard block
 block discarded – undo
777 777
                     $title = self::getTitle($partof, true);
778 778
                 }
779 779
             } else {
780
-                $logger->warning('No document with UID ' . $uid . ' found or document not accessible');
780
+                $logger->warning('No document with UID '.$uid.' found or document not accessible');
781 781
             }
782 782
         } else {
783
-            $logger->error('Invalid UID ' . $uid . ' for document');
783
+            $logger->error('Invalid UID '.$uid.' for document');
784 784
         }
785 785
         return $title;
786 786
     }
@@ -915,7 +915,7 @@  discard block
 block discarded – undo
915 915
             // the actual loading is format specific
916 916
             return $this->loadLocation($location);
917 917
         } else {
918
-            $this->logger->error('Invalid file location "' . $location . '" for document loading');
918
+            $this->logger->error('Invalid file location "'.$location.'" for document loading');
919 919
         }
920 920
         return false;
921 921
     }
@@ -1024,7 +1024,7 @@  discard block
 block discarded – undo
1024 1024
             // Retain current PID.
1025 1025
             $pid = $this->pid;
1026 1026
         } elseif (!$pid) {
1027
-            $this->logger->error('Invalid PID ' . $pid . ' for document saving');
1027
+            $this->logger->error('Invalid PID '.$pid.' for document saving');
1028 1028
             return false;
1029 1029
         }
1030 1030
         // Set PID for metadata definitions.
@@ -1061,7 +1061,7 @@  discard block
 block discarded – undo
1061 1061
         if ($resArray = $result->fetch()) {
1062 1062
             $structure = $resArray['uid'];
1063 1063
         } else {
1064
-            $this->logger->error('Could not identify document/structure type "' . $queryBuilder->expr()->literal($metadata['type'][0]) . '"');
1064
+            $this->logger->error('Could not identify document/structure type "'.$queryBuilder->expr()->literal($metadata['type'][0]).'"');
1065 1065
             return false;
1066 1066
         }
1067 1067
         $metadata['type'][0] = $structure;
@@ -1303,7 +1303,7 @@  discard block
 block discarded – undo
1303 1303
         if ($core) {
1304 1304
             Indexer::add($this, $core);
1305 1305
         } else {
1306
-            $this->logger->notice('Invalid UID "' . $core . '" for Solr core');
1306
+            $this->logger->notice('Invalid UID "'.$core.'" for Solr core');
1307 1307
         }
1308 1308
         return true;
1309 1309
     }
@@ -1369,7 +1369,7 @@  discard block
 block discarded – undo
1369 1369
         // Set metadata definitions' PID.
1370 1370
         $cPid = ($this->cPid ? $this->cPid : $this->pid);
1371 1371
         if (!$cPid) {
1372
-            $this->logger->error('Invalid PID ' . $cPid . ' for metadata definitions');
1372
+            $this->logger->error('Invalid PID '.$cPid.' for metadata definitions');
1373 1373
             return [];
1374 1374
         }
1375 1375
         if (
@@ -1697,7 +1697,7 @@  discard block
 block discarded – undo
1697 1697
             // Document ready!
1698 1698
             $this->ready = true;
1699 1699
         } else {
1700
-            $this->logger->error('No document with UID ' . $uid . ' found or document not accessible');
1700
+            $this->logger->error('No document with UID '.$uid.' found or document not accessible');
1701 1701
         }
1702 1702
     }
1703 1703
 
@@ -1712,12 +1712,12 @@  discard block
 block discarded – undo
1712 1712
      */
1713 1713
     public function __get($var)
1714 1714
     {
1715
-        $method = '_get' . ucfirst($var);
1715
+        $method = '_get'.ucfirst($var);
1716 1716
         if (
1717 1717
             !property_exists($this, $var)
1718 1718
             || !method_exists($this, $method)
1719 1719
         ) {
1720
-            $this->logger->warning('There is no getter function for property "' . $var . '"');
1720
+            $this->logger->warning('There is no getter function for property "'.$var.'"');
1721 1721
             return;
1722 1722
         } else {
1723 1723
             return $this->$method();
@@ -1750,12 +1750,12 @@  discard block
 block discarded – undo
1750 1750
      */
1751 1751
     public function __set($var, $value)
1752 1752
     {
1753
-        $method = '_set' . ucfirst($var);
1753
+        $method = '_set'.ucfirst($var);
1754 1754
         if (
1755 1755
             !property_exists($this, $var)
1756 1756
             || !method_exists($this, $method)
1757 1757
         ) {
1758
-            $this->logger->warning('There is no setter function for property "' . $var . '"');
1758
+            $this->logger->warning('There is no setter function for property "'.$var.'"');
1759 1759
         } else {
1760 1760
             $this->$method($value);
1761 1761
         }
Please login to merge, or discard this patch.
Classes/Common/Indexer.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
                 if ($parent->ready) {
106 106
                     $errors = self::add($parent, $core);
107 107
                 } else {
108
-                    $logger->error('Could not load parent document with UID ' . $doc->parentId);
108
+                    $logger->error('Could not load parent document with UID '.$doc->parentId);
109 109
                     return 1;
110 110
                 }
111 111
             }
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
                 self::$processedDocs[] = $doc->uid;
115 115
                 // Delete old Solr documents.
116 116
                 $updateQuery = self::$solr->service->createUpdate();
117
-                $updateQuery->addDeleteQuery('uid:' . $doc->uid);
117
+                $updateQuery->addDeleteQuery('uid:'.$doc->uid);
118 118
                 self::$solr->service->update($updateQuery);
119 119
                 // Index every logical unit as separate Solr document.
120 120
                 foreach ($doc->tableOfContents as $logicalUnit) {
@@ -178,14 +178,14 @@  discard block
 block discarded – undo
178 178
             } catch (\Exception $e) {
179 179
                 if (!(\TYPO3_REQUESTTYPE & \TYPO3_REQUESTTYPE_CLI)) {
180 180
                     Helper::addMessage(
181
-                        Helper::getMessage('flash.solrException', true) . '<br />' . htmlspecialchars($e->getMessage()),
181
+                        Helper::getMessage('flash.solrException', true).'<br />'.htmlspecialchars($e->getMessage()),
182 182
                         Helper::getMessage('flash.error', true),
183 183
                         FlashMessage::ERROR,
184 184
                         true,
185 185
                         'core.template.flashMessages'
186 186
                     );
187 187
                 }
188
-                $logger->error('Apache Solr threw exception: "' . $e->getMessage() . '"');
188
+                $logger->error('Apache Solr threw exception: "'.$e->getMessage().'"');
189 189
                 return 1;
190 190
             }
191 191
         } else {
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
         // Sanitize input.
221 221
         $pid = max(intval($pid), 0);
222 222
         if (!$pid) {
223
-            $logger->error('Invalid PID ' . $pid . ' for metadata configuration');
223
+            $logger->error('Invalid PID '.$pid.' for metadata configuration');
224 224
             return '';
225 225
         }
226 226
         // Load metadata configuration.
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
         $suffix = (in_array($index_name, self::$fields['tokenized']) ? 't' : 'u');
230 230
         $suffix .= (in_array($index_name, self::$fields['stored']) ? 's' : 'u');
231 231
         $suffix .= (in_array($index_name, self::$fields['indexed']) ? 'i' : 'u');
232
-        $index_name .= '_' . $suffix;
232
+        $index_name .= '_'.$suffix;
233 233
         return $index_name;
234 234
     }
235 235
 
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
             $updateQuery = self::$solr->service->createUpdate();
331 331
             $solrDoc = $updateQuery->createDocument();
332 332
             // Create unique identifier from document's UID and unit's XML ID.
333
-            $solrDoc->setField('id', $doc->uid . $logicalUnit['id']);
333
+            $solrDoc->setField('id', $doc->uid.$logicalUnit['id']);
334 334
             $solrDoc->setField('uid', $doc->uid);
335 335
             $solrDoc->setField('pid', $doc->pid);
336 336
             if (MathUtility::canBeInterpretedAsInteger($logicalUnit['points'])) {
@@ -370,11 +370,11 @@  discard block
 block discarded – undo
370 370
                     $solrDoc->setField(self::getIndexFieldName($index_name, $doc->pid), $data, self::$fields['fieldboost'][$index_name]);
371 371
                     if (in_array($index_name, self::$fields['sortables'])) {
372 372
                         // Add sortable fields to index.
373
-                        $solrDoc->setField($index_name . '_sorting', $metadata[$index_name . '_sorting'][0]);
373
+                        $solrDoc->setField($index_name.'_sorting', $metadata[$index_name.'_sorting'][0]);
374 374
                     }
375 375
                     if (in_array($index_name, self::$fields['facets'])) {
376 376
                         // Add facets to index.
377
-                        $solrDoc->setField($index_name . '_faceting', $data);
377
+                        $solrDoc->setField($index_name.'_faceting', $data);
378 378
                     }
379 379
                     if (in_array($index_name, self::$fields['autocomplete'])) {
380 380
                         $autocomplete = array_merge($autocomplete, $data);
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
             } catch (\Exception $e) {
400 400
                 if (!(\TYPO3_REQUESTTYPE & \TYPO3_REQUESTTYPE_CLI)) {
401 401
                     Helper::addMessage(
402
-                        Helper::getMessage('flash.solrException', true) . '<br />' . htmlspecialchars($e->getMessage()),
402
+                        Helper::getMessage('flash.solrException', true).'<br />'.htmlspecialchars($e->getMessage()),
403 403
                         Helper::getMessage('flash.error', true),
404 404
                         FlashMessage::ERROR,
405 405
                         true,
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
             $updateQuery = self::$solr->service->createUpdate();
447 447
             $solrDoc = $updateQuery->createDocument();
448 448
             // Create unique identifier from document's UID and unit's XML ID.
449
-            $solrDoc->setField('id', $doc->uid . $physicalUnit['id']);
449
+            $solrDoc->setField('id', $doc->uid.$physicalUnit['id']);
450 450
             $solrDoc->setField('uid', $doc->uid);
451 451
             $solrDoc->setField('pid', $doc->pid);
452 452
             $solrDoc->setField('page', $page);
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
                             }
481 481
                         }
482 482
                         // Add facets to index.
483
-                        $solrDoc->setField($index_name . '_faceting', $data);
483
+                        $solrDoc->setField($index_name.'_faceting', $data);
484 484
                     }
485 485
                 }
486 486
             }
@@ -497,7 +497,7 @@  discard block
 block discarded – undo
497 497
             } catch (\Exception $e) {
498 498
                 if (!(\TYPO3_REQUESTTYPE & \TYPO3_REQUESTTYPE_CLI)) {
499 499
                     Helper::addMessage(
500
-                        Helper::getMessage('flash.solrException', true) . '<br />' . htmlspecialchars($e->getMessage()),
500
+                        Helper::getMessage('flash.solrException', true).'<br />'.htmlspecialchars($e->getMessage()),
501 501
                         Helper::getMessage('flash.error', true),
502 502
                         FlashMessage::ERROR,
503 503
                         true,
Please login to merge, or discard this patch.
Classes/Common/MetsDocument.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         $fileMimeType = $this->getFileMimeType($id);
170 170
         $fileLocation = $this->getFileLocation($id);
171 171
         if ($fileMimeType === 'application/vnd.kitodo.iiif') {
172
-            $fileLocation = (strrpos($fileLocation, 'info.json') === strlen($fileLocation) - 9) ? $fileLocation : (strrpos($fileLocation, '/') === strlen($fileLocation) ? $fileLocation . 'info.json' : $fileLocation . '/info.json');
172
+            $fileLocation = (strrpos($fileLocation, 'info.json') === strlen($fileLocation) - 9) ? $fileLocation : (strrpos($fileLocation, '/') === strlen($fileLocation) ? $fileLocation.'info.json' : $fileLocation.'/info.json');
173 173
             $conf = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get(self::$extKey);
174 174
             IiifHelper::setUrlReader(IiifUrlReader::getInstance());
175 175
             IiifHelper::setMaxThumbnailHeight($conf['iiifThumbnailHeight']);
@@ -179,9 +179,9 @@  discard block
 block discarded – undo
179 179
                 return $service->getImageUrl();
180 180
             }
181 181
         } elseif ($fileMimeType === 'application/vnd.netfpx') {
182
-            $baseURL = $fileLocation . (strpos($fileLocation, '?') === false ? '?' : '');
182
+            $baseURL = $fileLocation.(strpos($fileLocation, '?') === false ? '?' : '');
183 183
             // TODO CVT is an optional IIP server capability; in theory, capabilities should be determined in the object request with '&obj=IIP-server'
184
-            return $baseURL . '&CVT=jpeg';
184
+            return $baseURL.'&CVT=jpeg';
185 185
         }
186 186
         return $fileLocation;
187 187
     }
@@ -192,14 +192,14 @@  discard block
 block discarded – undo
192 192
      */
193 193
     public function getFileLocation($id)
194 194
     {
195
-        $location = $this->mets->xpath('./mets:fileSec/mets:fileGrp/mets:file[@ID="' . $id . '"]/mets:FLocat[@LOCTYPE="URL"]');
195
+        $location = $this->mets->xpath('./mets:fileSec/mets:fileGrp/mets:file[@ID="'.$id.'"]/mets:FLocat[@LOCTYPE="URL"]');
196 196
         if (
197 197
             !empty($id)
198 198
             && !empty($location)
199 199
         ) {
200 200
             return (string) $location[0]->attributes('http://www.w3.org/1999/xlink')->href;
201 201
         } else {
202
-            $this->logger->warning('There is no file node with @ID "' . $id . '"');
202
+            $this->logger->warning('There is no file node with @ID "'.$id.'"');
203 203
             return '';
204 204
         }
205 205
     }
@@ -210,14 +210,14 @@  discard block
 block discarded – undo
210 210
      */
211 211
     public function getFileMimeType($id)
212 212
     {
213
-        $mimetype = $this->mets->xpath('./mets:fileSec/mets:fileGrp/mets:file[@ID="' . $id . '"]/@MIMETYPE');
213
+        $mimetype = $this->mets->xpath('./mets:fileSec/mets:fileGrp/mets:file[@ID="'.$id.'"]/@MIMETYPE');
214 214
         if (
215 215
             !empty($id)
216 216
             && !empty($mimetype)
217 217
         ) {
218 218
             return (string) $mimetype[0];
219 219
         } else {
220
-            $this->logger->warning('There is no file node with @ID "' . $id . '" or no MIME type specified');
220
+            $this->logger->warning('There is no file node with @ID "'.$id.'" or no MIME type specified');
221 221
             return '';
222 222
         }
223 223
     }
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
             return $this->logicalUnits[$id];
239 239
         } elseif (!empty($id)) {
240 240
             // Get specified logical unit.
241
-            $divs = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="' . $id . '"]');
241
+            $divs = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="'.$id.'"]');
242 242
         } else {
243 243
             // Get all logical units at top level.
244 244
             $divs = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]/mets:div');
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
             // Retain current PID.
379 379
             $cPid = ($this->cPid ? $this->cPid : $this->pid);
380 380
         } elseif (!$cPid) {
381
-            $this->logger->warning('Invalid PID ' . $cPid . ' for metadata definitions');
381
+            $this->logger->warning('Invalid PID '.$cPid.' for metadata definitions');
382 382
             return [];
383 383
         }
384 384
         // Get metadata from parsed metadata array if available.
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
         if (!empty($this->logicalUnits[$id])) {
420 420
             $dmdIds = $this->logicalUnits[$id]['dmdId'];
421 421
         } else {
422
-            $dmdIds = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="' . $id . '"]/@DMDID');
422
+            $dmdIds = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="'.$id.'"]/@DMDID');
423 423
             $dmdIds = (string) $dmdIds[0];
424 424
         }
425 425
         if (!empty($dmdIds)) {
@@ -445,11 +445,11 @@  discard block
 block discarded – undo
445 445
                     ) {
446 446
                         $obj->extractMetadata($this->dmdSec[$dmdId]['xml'], $metadata);
447 447
                     } else {
448
-                        $this->logger->warning('Invalid class/method "' . $class . '->extractMetadata()" for metadata format "' . $this->dmdSec[$dmdId]['type'] . '"');
448
+                        $this->logger->warning('Invalid class/method "'.$class.'->extractMetadata()" for metadata format "'.$this->dmdSec[$dmdId]['type'].'"');
449 449
                     }
450 450
                 }
451 451
             } else {
452
-                $this->logger->notice('Unsupported metadata format "' . $this->dmdSec[$dmdId]['type'] . '" in dmdSec with @ID "' . $dmdId . '"');
452
+                $this->logger->notice('Unsupported metadata format "'.$this->dmdSec[$dmdId]['type'].'" in dmdSec with @ID "'.$dmdId.'"');
453 453
                 // Continue searching for supported metadata with next @DMDID.
454 454
                 continue;
455 455
             }
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
             if (!empty($this->logicalUnits[$id])) {
458 458
                 $metadata['type'] = [$this->logicalUnits[$id]['type']];
459 459
             } else {
460
-                $struct = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="' . $id . '"]/@TYPE');
460
+                $struct = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="'.$id.'"]/@TYPE');
461 461
                 if (!empty($struct)) {
462 462
                     $metadata['type'] = [(string) $struct[0]];
463 463
                 }
@@ -574,13 +574,13 @@  discard block
 block discarded – undo
574 574
                             $values instanceof \DOMNodeList
575 575
                             && $values->length > 0
576 576
                         ) {
577
-                            $metadata[$resArray['index_name'] . '_sorting'][0] = trim((string) $values->item(0)->nodeValue);
577
+                            $metadata[$resArray['index_name'].'_sorting'][0] = trim((string) $values->item(0)->nodeValue);
578 578
                         } elseif (!($values instanceof \DOMNodeList)) {
579
-                            $metadata[$resArray['index_name'] . '_sorting'][0] = trim((string) $values);
579
+                            $metadata[$resArray['index_name'].'_sorting'][0] = trim((string) $values);
580 580
                         }
581 581
                     }
582
-                    if (empty($metadata[$resArray['index_name'] . '_sorting'][0])) {
583
-                        $metadata[$resArray['index_name'] . '_sorting'][0] = $metadata[$resArray['index_name']][0];
582
+                    if (empty($metadata[$resArray['index_name'].'_sorting'][0])) {
583
+                        $metadata[$resArray['index_name'].'_sorting'][0] = $metadata[$resArray['index_name']][0];
584 584
                     }
585 585
                 }
586 586
             }
@@ -642,7 +642,7 @@  discard block
 block discarded – undo
642 642
         if ($hasSupportedMetadata) {
643 643
             return $metadata;
644 644
         } else {
645
-            $this->logger->warning('No supported metadata found for logical structure with @ID "' . $id . '"');
645
+            $this->logger->warning('No supported metadata found for logical structure with @ID "'.$id.'"');
646 646
             return [];
647 647
         }
648 648
     }
@@ -672,7 +672,7 @@  discard block
 block discarded – undo
672 672
      */
673 673
     public function getStructureDepth($logId)
674 674
     {
675
-        $ancestors = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="' . $logId . '"]/ancestor::*');
675
+        $ancestors = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="'.$logId.'"]/ancestor::*');
676 676
         if (!empty($ancestors)) {
677 677
             return count($ancestors);
678 678
         } else {
@@ -694,7 +694,7 @@  discard block
 block discarded – undo
694 694
             // Register namespaces.
695 695
             $this->registerNamespaces($this->mets);
696 696
         } else {
697
-            $this->logger->error('No METS part found in document with UID ' . $this->uid);
697
+            $this->logger->error('No METS part found in document with UID '.$this->uid);
698 698
         }
699 699
     }
700 700
 
@@ -722,7 +722,7 @@  discard block
 block discarded – undo
722 722
                 return true;
723 723
             }
724 724
         }
725
-        $this->logger->error('Could not load XML file from "' . $location . '"');
725
+        $this->logger->error('Could not load XML file from "'.$location.'"');
726 726
         return false;
727 727
     }
728 728
 
@@ -746,7 +746,7 @@  discard block
 block discarded – undo
746 746
     {
747 747
         $partof = 0;
748 748
         // Get the closest ancestor of the current document which has a MPTR child.
749
-        $parentMptr = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="' . $this->_getToplevelId() . '"]/ancestor::mets:div[./mets:mptr][1]/mets:mptr');
749
+        $parentMptr = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="'.$this->_getToplevelId().'"]/ancestor::mets:div[./mets:mptr][1]/mets:mptr');
750 750
         if (!empty($parentMptr)) {
751 751
             $parentLocation = (string) $parentMptr[0]->attributes('http://www.w3.org/1999/xlink')->href;
752 752
             if ($parentLocation != $this->location) {
@@ -813,15 +813,15 @@  discard block
 block discarded – undo
813 813
             $dmdIds = $this->mets->xpath('./mets:dmdSec/@ID');
814 814
             if (!empty($dmdIds)) {
815 815
                 foreach ($dmdIds as $dmdId) {
816
-                    if ($type = $this->mets->xpath('./mets:dmdSec[@ID="' . (string) $dmdId . '"]/mets:mdWrap[not(@MDTYPE="OTHER")]/@MDTYPE')) {
816
+                    if ($type = $this->mets->xpath('./mets:dmdSec[@ID="'.(string) $dmdId.'"]/mets:mdWrap[not(@MDTYPE="OTHER")]/@MDTYPE')) {
817 817
                         if (!empty($this->formats[(string) $type[0]])) {
818 818
                             $type = (string) $type[0];
819
-                            $xml = $this->mets->xpath('./mets:dmdSec[@ID="' . (string) $dmdId . '"]/mets:mdWrap[@MDTYPE="' . $type . '"]/mets:xmlData/' . strtolower($type) . ':' . $this->formats[$type]['rootElement']);
819
+                            $xml = $this->mets->xpath('./mets:dmdSec[@ID="'.(string) $dmdId.'"]/mets:mdWrap[@MDTYPE="'.$type.'"]/mets:xmlData/'.strtolower($type).':'.$this->formats[$type]['rootElement']);
820 820
                         }
821
-                    } elseif ($type = $this->mets->xpath('./mets:dmdSec[@ID="' . (string) $dmdId . '"]/mets:mdWrap[@MDTYPE="OTHER"]/@OTHERMDTYPE')) {
821
+                    } elseif ($type = $this->mets->xpath('./mets:dmdSec[@ID="'.(string) $dmdId.'"]/mets:mdWrap[@MDTYPE="OTHER"]/@OTHERMDTYPE')) {
822 822
                         if (!empty($this->formats[(string) $type[0]])) {
823 823
                             $type = (string) $type[0];
824
-                            $xml = $this->mets->xpath('./mets:dmdSec[@ID="' . (string) $dmdId . '"]/mets:mdWrap[@MDTYPE="OTHER"][@OTHERMDTYPE="' . $type . '"]/mets:xmlData/' . strtolower($type) . ':' . $this->formats[$type]['rootElement']);
824
+                            $xml = $this->mets->xpath('./mets:dmdSec[@ID="'.(string) $dmdId.'"]/mets:mdWrap[@MDTYPE="OTHER"][@OTHERMDTYPE="'.$type.'"]/mets:xmlData/'.strtolower($type).':'.$this->formats[$type]['rootElement']);
825 825
                         }
826 826
                     }
827 827
                     if (!empty($xml)) {
@@ -1006,7 +1006,7 @@  discard block
 block discarded – undo
1006 1006
             // Retain current PID.
1007 1007
             $cPid = ($this->cPid ? $this->cPid : $this->pid);
1008 1008
             if (!$cPid) {
1009
-                $this->logger->error('Invalid PID ' . $cPid . ' for structure definitions');
1009
+                $this->logger->error('Invalid PID '.$cPid.' for structure definitions');
1010 1010
                 $this->thumbnailLoaded = true;
1011 1011
                 return $this->thumbnail;
1012 1012
             }
@@ -1043,7 +1043,7 @@  discard block
 block discarded – undo
1043 1043
                 if (!empty($resArray['thumbnail'])) {
1044 1044
                     $strctType = Helper::getIndexNameFromUid($resArray['thumbnail'], 'tx_dlf_structures', $cPid);
1045 1045
                     // Check if this document has a structure element of the desired type.
1046
-                    $strctIds = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@TYPE="' . $strctType . '"]/@ID');
1046
+                    $strctIds = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@TYPE="'.$strctType.'"]/@ID');
1047 1047
                     if (!empty($strctIds)) {
1048 1048
                         $strctId = (string) $strctIds[0];
1049 1049
                     }
@@ -1066,7 +1066,7 @@  discard block
 block discarded – undo
1066 1066
                     }
1067 1067
                 }
1068 1068
             } else {
1069
-                $this->logger->error('No structure of type "' . $metadata['type'][0] . '" found in database');
1069
+                $this->logger->error('No structure of type "'.$metadata['type'][0].'" found in database');
1070 1070
             }
1071 1071
             $this->thumbnailLoaded = true;
1072 1072
         }
Please login to merge, or discard this patch.
Classes/Common/IiifManifest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -694,16 +694,16 @@  discard block
 block discarded – undo
694 694
                     && ($values = $iiifResource->jsonPath($resArray['xpath_sorting']) != null)
695 695
                 ) {
696 696
                     if (is_string($values)) {
697
-                        $metadata[$resArray['index_name'] . '_sorting'][0] = [trim((string) $values)];
697
+                        $metadata[$resArray['index_name'].'_sorting'][0] = [trim((string) $values)];
698 698
                     } elseif ($values instanceof JSONPath && is_array($values->data()) && count($values->data()) > 1) {
699 699
                         $metadata[$resArray['index_name']] = [];
700 700
                         foreach ($values->data() as $value) {
701
-                            $metadata[$resArray['index_name'] . '_sorting'][0] = trim((string) $value);
701
+                            $metadata[$resArray['index_name'].'_sorting'][0] = trim((string) $value);
702 702
                         }
703 703
                     }
704 704
                 }
705
-                if (empty($metadata[$resArray['index_name'] . '_sorting'][0])) {
706
-                    $metadata[$resArray['index_name'] . '_sorting'][0] = $metadata[$resArray['index_name']][0];
705
+                if (empty($metadata[$resArray['index_name'].'_sorting'][0])) {
706
+                    $metadata[$resArray['index_name'].'_sorting'][0] = $metadata[$resArray['index_name']][0];
707 707
                 }
708 708
             }
709 709
         }
@@ -831,7 +831,7 @@  discard block
 block discarded – undo
831 831
                     }
832 832
                 }
833 833
             } else {
834
-                $this->logger->warning('Invalid structure resource @id "' . $id . '"');
834
+                $this->logger->warning('Invalid structure resource @id "'.$id.'"');
835 835
                 return $rawText;
836 836
             }
837 837
             $this->rawTextArray[$id] = $rawText;
@@ -880,7 +880,7 @@  discard block
 block discarded – undo
880 880
                 }
881 881
             }
882 882
         }
883
-        $this->logger->error('Could not load IIIF manifest from "' . $location . '"');
883
+        $this->logger->error('Could not load IIIF manifest from "'.$location.'"');
884 884
         return false;
885 885
     }
886 886
 
Please login to merge, or discard this patch.