Passed
Pull Request — master (#91)
by Alexander
02:40
created
Classes/Command/IndexCommand.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         $startingPoint = $this->getStartingPoint($input->getOption('pid'));
96 96
 
97 97
         if ($startingPoint == 0) {
98
-            $io->error('ERROR: No valid PID (' . $startingPoint . ') given.');
98
+            $io->error('ERROR: No valid PID ('.$startingPoint.') given.');
99 99
             exit(1);
100 100
         }
101 101
 
@@ -110,13 +110,13 @@  discard block
 block discarded – undo
110 110
             if (empty($solrCoreUid) || !in_array($solrCoreUid, $allSolrCores)) {
111 111
                 $output_solrCores = [];
112 112
                 foreach ($allSolrCores as $index_name => $uid) {
113
-                    $output_solrCores[] = $uid . ' : ' . $index_name;
113
+                    $output_solrCores[] = $uid.' : '.$index_name;
114 114
                 }
115 115
                 if (empty($output_solrCores)) {
116
-                    $io->error('ERROR: No valid Solr core ("' . $input->getOption('solr') . '") given. No valid cores found on PID ' . $startingPoint . ".\n");
116
+                    $io->error('ERROR: No valid Solr core ("'.$input->getOption('solr').'") given. No valid cores found on PID '.$startingPoint.".\n");
117 117
                     exit(1);
118 118
                 } else {
119
-                    $io->error('ERROR: No valid Solr core ("' . $input->getOption('solr') . '") given. ' . "Valid cores are (<uid>:<index_name>):\n" . implode("\n", $output_solrCores) . "\n");
119
+                    $io->error('ERROR: No valid Solr core ("'.$input->getOption('solr').'") given. '."Valid cores are (<uid>:<index_name>):\n".implode("\n", $output_solrCores)."\n");
120 120
                     exit(1);
121 121
                 }
122 122
             }
@@ -151,19 +151,19 @@  discard block
 block discarded – undo
151 151
         $doc = Document::getInstance($input->getOption('doc'), $startingPoint, true);
152 152
         if ($doc->ready) {
153 153
             if ($dryRun) {
154
-                $io->section('DRY RUN: Would index ' . $doc->uid . ' ("' . $doc->location . '") on PID ' . $startingPoint . ' and Solr core ' . $solrCoreUid . '.');
154
+                $io->section('DRY RUN: Would index '.$doc->uid.' ("'.$doc->location.'") on PID '.$startingPoint.' and Solr core '.$solrCoreUid.'.');
155 155
             } else {
156 156
                 if ($io->isVerbose()) {
157
-                    $io->section('Indexing ' . $doc->uid . ' ("' . $doc->location . '") on PID ' . $startingPoint . ' and Solr core ' . $solrCoreUid . '.');
157
+                    $io->section('Indexing '.$doc->uid.' ("'.$doc->location.'") on PID '.$startingPoint.' and Solr core '.$solrCoreUid.'.');
158 158
                 }
159 159
                 // ...and save it to the database...
160 160
                 if (!$doc->save($startingPoint, $solrCoreUid, $owner)) {
161
-                    $io->error('ERROR: Document "' . $input->getOption('doc') . '" not saved and indexed.');
161
+                    $io->error('ERROR: Document "'.$input->getOption('doc').'" not saved and indexed.');
162 162
                     exit(1);
163 163
                 }
164 164
             }
165 165
         } else {
166
-            $io->error('ERROR: Document "' . $input->getOption('doc') . '" could not be loaded.');
166
+            $io->error('ERROR: Document "'.$input->getOption('doc').'" could not be loaded.');
167 167
             exit(1);
168 168
         }
169 169
 
Please login to merge, or discard this patch.
Classes/Command/HarvestCommand.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             $startingPoint = MathUtility::forceIntegerInRange((int) $input->getOption('pid'), 0);
114 114
         }
115 115
         if ($startingPoint == 0) {
116
-            $io->error('ERROR: No valid PID (' . $startingPoint . ') given.');
116
+            $io->error('ERROR: No valid PID ('.$startingPoint.') given.');
117 117
             exit(1);
118 118
         }
119 119
 
@@ -131,13 +131,13 @@  discard block
 block discarded – undo
131 131
             if (empty($solrCoreUid) || !in_array($solrCoreUid, $allSolrCores)) {
132 132
                 $output_solrCores = [];
133 133
                 foreach ($allSolrCores as $index_name => $uid) {
134
-                    $output_solrCores[] = $uid . ' : ' . $index_name;
134
+                    $output_solrCores[] = $uid.' : '.$index_name;
135 135
                 }
136 136
                 if (empty($output_solrCores)) {
137
-                    $io->error('ERROR: No valid Solr core ("' . $input->getOption('solr') . '") given. No valid cores found on PID ' . $startingPoint . ".\n");
137
+                    $io->error('ERROR: No valid Solr core ("'.$input->getOption('solr').'") given. No valid cores found on PID '.$startingPoint.".\n");
138 138
                     exit(1);
139 139
                 } else {
140
-                    $io->error('ERROR: No valid Solr core ("' . $input->getOption('solr') . '") given. ' . "Valid cores are (<uid>:<index_name>):\n" . implode("\n", $output_solrCores) . "\n");
140
+                    $io->error('ERROR: No valid Solr core ("'.$input->getOption('solr').'") given. '."Valid cores are (<uid>:<index_name>):\n".implode("\n", $output_solrCores)."\n");
141 141
                     exit(1);
142 142
                 }
143 143
             }
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
             exit(1);
174 174
         }
175 175
         if (!GeneralUtility::isValidUrl($baseUrl)) {
176
-            $io->error('ERROR: No valid OAI Base URL set for library with given UID ("' . $input->getOption('lib') . '").');
176
+            $io->error('ERROR: No valid OAI Base URL set for library with given UID ("'.$input->getOption('lib').'").');
177 177
             exit(1);
178 178
         } else {
179 179
             try {
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
                 }
215 215
             }
216 216
             if (empty($set)) {
217
-                $io->error('ERROR: OAI interface does not provide a set with given setSpec ("' . $input->getOption('set') . '").');
217
+                $io->error('ERROR: OAI interface does not provide a set with given setSpec ("'.$input->getOption('set').'").');
218 218
                 exit(1);
219 219
             }
220 220
         }
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
         }
228 228
 
229 229
         // Process all identifiers.
230
-        $baseLocation = $baseUrl . (parse_url($baseUrl, PHP_URL_QUERY) ? '&' : '?');
230
+        $baseLocation = $baseUrl.(parse_url($baseUrl, PHP_URL_QUERY) ? '&' : '?');
231 231
         foreach ($identifiers as $identifier) {
232 232
             // Build OAI GetRecord URL...
233 233
             $params = [
@@ -235,23 +235,23 @@  discard block
 block discarded – undo
235 235
                 'metadataPrefix' => 'mets',
236 236
                 'identifier' => (string) $identifier->identifier
237 237
             ];
238
-            $docLocation = $baseLocation . http_build_query($params);
238
+            $docLocation = $baseLocation.http_build_query($params);
239 239
             // ...index the document...
240 240
             $doc = Document::getInstance($docLocation, $startingPoint, true);
241 241
             if ($doc->ready) {
242 242
                 if ($dryRun) {
243
-                    $io->writeln('DRY RUN: Would index ' . $doc->uid . ' ("' . $doc->location . '") on PID ' . $startingPoint . ' and Solr core ' . $solrCoreUid . '.');
243
+                    $io->writeln('DRY RUN: Would index '.$doc->uid.' ("'.$doc->location.'") on PID '.$startingPoint.' and Solr core '.$solrCoreUid.'.');
244 244
                 } else {
245 245
                     if ($io->isVerbose()) {
246
-                        $io->writeln(date('Y-m-d H:i:s') . ' Indexing ' . $doc->uid . ' ("' . $doc->location . '") on PID ' . $startingPoint . ' and Solr core ' . $solrCoreUid . '.');
246
+                        $io->writeln(date('Y-m-d H:i:s').' Indexing '.$doc->uid.' ("'.$doc->location.'") on PID '.$startingPoint.' and Solr core '.$solrCoreUid.'.');
247 247
                     }
248 248
                     // ...and save it to the database...
249 249
                     if (!$doc->save($startingPoint, $solrCoreUid, (int) $input->getOption('lib'))) {
250
-                        $io->error('ERROR: Document "' . $doc->location . '" not saved and indexed.');
250
+                        $io->error('ERROR: Document "'.$doc->location.'" not saved and indexed.');
251 251
                     }
252 252
                 }
253 253
             } else {
254
-                $io->error('ERROR: Document "' . $docLocation . '" could not be loaded.');
254
+                $io->error('ERROR: Document "'.$docLocation.'" could not be loaded.');
255 255
             }
256 256
             // Clear document registry to prevent memory exhaustion.
257 257
             Document::clearRegistry();
@@ -270,6 +270,6 @@  discard block
 block discarded – undo
270 270
      */
271 271
     protected function handleOaiError(BaseoaipmhException $exception, SymfonyStyle $io)
272 272
     {
273
-        $io->error('ERROR: Trying to retrieve data from OAI interface resulted in error:' . "\n    " . $exception->getMessage());
273
+        $io->error('ERROR: Trying to retrieve data from OAI interface resulted in error:'."\n    ".$exception->getMessage());
274 274
     }
275 275
 }
Please login to merge, or discard this patch.
Classes/Common/Helper.php 1 patch
Spacing   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
                 if (!preg_match('/[0-9]{8}-[0-9]{1}/i', $id)) {
137 137
                     return false;
138 138
                 } elseif ($checksum == 10) {
139
-                    return self::checkIdentifier(($digits + 1) . substr($id, -2, 2), 'SWD');
139
+                    return self::checkIdentifier(($digits + 1).substr($id, -2, 2), 'SWD');
140 140
                 } elseif (substr($id, -1, 1) != $checksum) {
141 141
                     return false;
142 142
                 }
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
         $encrypted = openssl_encrypt($string, self::$cipherAlgorithm, $key, OPENSSL_RAW_DATA, $iv);
279 279
         // Merge initialisation vector and encrypted data.
280 280
         if ($encrypted !== false) {
281
-            $encrypted = base64_encode($iv . $encrypted);
281
+            $encrypted = base64_encode($iv.$encrypted);
282 282
         }
283 283
         return $encrypted;
284 284
     }
@@ -332,8 +332,8 @@  discard block
 block discarded – undo
332 332
     public static function getHookObjects($scriptRelPath)
333 333
     {
334 334
         $hookObjects = [];
335
-        if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][self::$extKey . '/' . $scriptRelPath]['hookClass'])) {
336
-            foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][self::$extKey . '/' . $scriptRelPath]['hookClass'] as $classRef) {
335
+        if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][self::$extKey.'/'.$scriptRelPath]['hookClass'])) {
336
+            foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][self::$extKey.'/'.$scriptRelPath]['hookClass'] as $classRef) {
337 337
                 $hookObjects[] = GeneralUtility::makeInstance($classRef);
338 338
             }
339 339
         }
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
             !$uid
360 360
             || !in_array($table, ['tx_dlf_collections', 'tx_dlf_libraries', 'tx_dlf_metadata', 'tx_dlf_structures', 'tx_dlf_solrcores'])
361 361
         ) {
362
-            self::log('Invalid UID "' . $uid . '" or table "' . $table . '"', LOG_SEVERITY_ERROR);
362
+            self::log('Invalid UID "'.$uid.'" or table "'.$table.'"', LOG_SEVERITY_ERROR);
363 363
             return '';
364 364
         }
365 365
 
@@ -370,15 +370,15 @@  discard block
 block discarded – undo
370 370
         // Should we check for a specific PID, too?
371 371
         if ($pid !== -1) {
372 372
             $pid = max(intval($pid), 0);
373
-            $where = $queryBuilder->expr()->eq($table . '.pid', $pid);
373
+            $where = $queryBuilder->expr()->eq($table.'.pid', $pid);
374 374
         }
375 375
 
376 376
         // Get index_name from database.
377 377
         $result = $queryBuilder
378
-            ->select($table . '.index_name AS index_name')
378
+            ->select($table.'.index_name AS index_name')
379 379
             ->from($table)
380 380
             ->where(
381
-                $queryBuilder->expr()->eq($table . '.uid', $uid),
381
+                $queryBuilder->expr()->eq($table.'.uid', $uid),
382 382
                 $where,
383 383
                 self::whereExpression($table)
384 384
             )
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
         if ($resArray = $result->fetch()) {
389 389
             return $resArray['index_name'];
390 390
         } else {
391
-            self::log('No "index_name" with UID ' . $uid . ' and PID ' . $pid . ' found in table "' . $table . '"', LOG_SEVERITY_WARNING);
391
+            self::log('No "index_name" with UID '.$uid.' and PID '.$pid.' found in table "'.$table.'"', LOG_SEVERITY_WARNING);
392 392
             return '';
393 393
         }
394 394
     }
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
             !$uid
413 413
             || !in_array($table, ['tx_dlf_collections', 'tx_dlf_libraries', 'tx_dlf_metadata', 'tx_dlf_structures', 'tx_dlf_solrcores'])
414 414
         ) {
415
-            self::log('Invalid UID "' . $uid . '" or table "' . $table . '"', LOG_SEVERITY_ERROR);
415
+            self::log('Invalid UID "'.$uid.'" or table "'.$table.'"', LOG_SEVERITY_ERROR);
416 416
             return '';
417 417
         }
418 418
 
@@ -423,15 +423,15 @@  discard block
 block discarded – undo
423 423
         // Should we check for a specific PID, too?
424 424
         if ($pid !== -1) {
425 425
             $pid = max(intval($pid), 0);
426
-            $where = $queryBuilder->expr()->eq($table . '.pid', $pid);
426
+            $where = $queryBuilder->expr()->eq($table.'.pid', $pid);
427 427
         }
428 428
 
429 429
         // Get label from database.
430 430
         $result = $queryBuilder
431
-            ->select($table . '.label AS label')
431
+            ->select($table.'.label AS label')
432 432
             ->from($table)
433 433
             ->where(
434
-                $queryBuilder->expr()->eq($table . '.uid', $uid),
434
+                $queryBuilder->expr()->eq($table.'.uid', $uid),
435 435
                 $where,
436 436
                 self::whereExpression($table)
437 437
             )
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
         if ($resArray = $result->fetch()) {
442 442
             return $resArray['label'];
443 443
         } else {
444
-            self::log('No "label" with UID ' . $uid . ' and PID ' . $pid . ' found in table "' . $table . '"', LOG_SEVERITY_WARNING);
444
+            self::log('No "label" with UID '.$uid.' and PID '.$pid.' found in table "'.$table.'"', LOG_SEVERITY_WARNING);
445 445
             return '';
446 446
         }
447 447
     }
@@ -460,9 +460,9 @@  discard block
 block discarded – undo
460 460
         // Analyze code and set appropriate ISO table.
461 461
         $isoCode = strtolower(trim($code));
462 462
         if (preg_match('/^[a-z]{3}$/', $isoCode)) {
463
-            $file = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(self::$extKey) . 'Resources/Private/Data/iso-639-2b.xml';
463
+            $file = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(self::$extKey).'Resources/Private/Data/iso-639-2b.xml';
464 464
         } elseif (preg_match('/^[a-z]{2}$/', $isoCode)) {
465
-            $file = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(self::$extKey) . 'Resources/Private/Data/iso-639-1.xml';
465
+            $file = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(self::$extKey).'Resources/Private/Data/iso-639-1.xml';
466 466
         } else {
467 467
             // No ISO code, return unchanged.
468 468
             return $code;
@@ -479,13 +479,13 @@  discard block
 block discarded – undo
479 479
                 $lang = $GLOBALS['LANG']->getLLL($isoCode, $iso639);
480 480
             }
481 481
         } else {
482
-            self::log('Unexpected TYPO3_MODE "' . \TYPO3_MODE . '"', LOG_SEVERITY_ERROR);
482
+            self::log('Unexpected TYPO3_MODE "'.\TYPO3_MODE.'"', LOG_SEVERITY_ERROR);
483 483
             return $code;
484 484
         }
485 485
         if (!empty($lang)) {
486 486
             return $lang;
487 487
         } else {
488
-            self::log('Language code "' . $code . '" not found in ISO-639 table', LOG_SEVERITY_NOTICE);
488
+            self::log('Language code "'.$code.'" not found in ISO-639 table', LOG_SEVERITY_NOTICE);
489 489
             return $code;
490 490
         }
491 491
     }
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
             } elseif (\TYPO3_MODE === 'BE') {
514 514
                 self::$messages = $GLOBALS['LANG']->includeLLFile($file, false, true);
515 515
             } else {
516
-                self::log('Unexpected TYPO3_MODE "' . \TYPO3_MODE . '"', LOG_SEVERITY_ERROR);
516
+                self::log('Unexpected TYPO3_MODE "'.\TYPO3_MODE.'"', LOG_SEVERITY_ERROR);
517 517
             }
518 518
         }
519 519
         // Get translation.
@@ -523,7 +523,7 @@  discard block
 block discarded – undo
523 523
             } elseif (\TYPO3_MODE === 'BE') {
524 524
                 $translated = $GLOBALS['LANG']->getLLL($key, self::$messages);
525 525
             } else {
526
-                self::log('Unexpected TYPO3_MODE "' . \TYPO3_MODE . '"', LOG_SEVERITY_ERROR);
526
+                self::log('Unexpected TYPO3_MODE "'.\TYPO3_MODE.'"', LOG_SEVERITY_ERROR);
527 527
             }
528 528
         }
529 529
         // Escape HTML characters if applicable.
@@ -550,7 +550,7 @@  discard block
 block discarded – undo
550 550
             !$index_name
551 551
             || !in_array($table, ['tx_dlf_collections', 'tx_dlf_libraries', 'tx_dlf_metadata', 'tx_dlf_structures', 'tx_dlf_solrcores'])
552 552
         ) {
553
-            self::log('Invalid UID ' . $index_name . ' or table "' . $table . '"', LOG_SEVERITY_ERROR);
553
+            self::log('Invalid UID '.$index_name.' or table "'.$table.'"', LOG_SEVERITY_ERROR);
554 554
             return '';
555 555
         }
556 556
 
@@ -561,14 +561,14 @@  discard block
 block discarded – undo
561 561
         // Should we check for a specific PID, too?
562 562
         if ($pid !== -1) {
563 563
             $pid = max(intval($pid), 0);
564
-            $where = $queryBuilder->expr()->eq($table . '.pid', $pid);
564
+            $where = $queryBuilder->expr()->eq($table.'.pid', $pid);
565 565
         }
566 566
         // Get index_name from database.
567 567
         $result = $queryBuilder
568
-            ->select($table . '.uid AS uid')
568
+            ->select($table.'.uid AS uid')
569 569
             ->from($table)
570 570
             ->where(
571
-                $queryBuilder->expr()->eq($table . '.index_name', $queryBuilder->expr()->literal($index_name)),
571
+                $queryBuilder->expr()->eq($table.'.index_name', $queryBuilder->expr()->literal($index_name)),
572 572
                 $where,
573 573
                 self::whereExpression($table)
574 574
             )
@@ -580,7 +580,7 @@  discard block
 block discarded – undo
580 580
         if (count($allResults) == 1) {
581 581
             return $allResults[0]['uid'];
582 582
         } else {
583
-            self::log('No UID for given index_name "' . $index_name . '" and PID ' . $pid . ' found in table "' . $table . '"', LOG_SEVERITY_WARNING);
583
+            self::log('No UID for given index_name "'.$index_name.'" and PID '.$pid.' found in table "'.$table.'"', LOG_SEVERITY_WARNING);
584 584
             return '';
585 585
         }
586 586
     }
@@ -638,7 +638,7 @@  discard block
 block discarded – undo
638 638
             '-' => 39,
639 639
             ':' => 17,
640 640
         ];
641
-        $urn = strtolower($base . $id);
641
+        $urn = strtolower($base.$id);
642 642
         if (preg_match('/[^a-z0-9:-]/', $urn)) {
643 643
             self::log('Invalid chars in given parameters', LOG_SEVERITY_WARNING);
644 644
             return '';
@@ -652,7 +652,7 @@  discard block
 block discarded – undo
652 652
             $checksum += ($i + 1) * intval(substr($digits, $i, 1));
653 653
         }
654 654
         $checksum = substr(intval($checksum / intval(substr($digits, -1, 1))), -1, 1);
655
-        return $base . $id . $checksum;
655
+        return $base.$id.$checksum;
656 656
     }
657 657
 
658 658
     /**
@@ -683,7 +683,7 @@  discard block
 block discarded – undo
683 683
         // Cast to string for security reasons.
684 684
         $key = (string) $key;
685 685
         if (!$key) {
686
-            self::log('Invalid key "' . $key . '" for session data retrieval', LOG_SEVERITY_WARNING);
686
+            self::log('Invalid key "'.$key.'" for session data retrieval', LOG_SEVERITY_WARNING);
687 687
             return;
688 688
         }
689 689
         // Get the session data.
@@ -692,7 +692,7 @@  discard block
 block discarded – undo
692 692
         } elseif (\TYPO3_MODE === 'BE') {
693 693
             return $GLOBALS['BE_USER']->getSessionData($key);
694 694
         } else {
695
-            self::log('Unexpected TYPO3_MODE "' . \TYPO3_MODE . '"', LOG_SEVERITY_ERROR);
695
+            self::log('Unexpected TYPO3_MODE "'.\TYPO3_MODE.'"', LOG_SEVERITY_ERROR);
696 696
             return;
697 697
         }
698 698
     }
@@ -801,7 +801,7 @@  discard block
 block discarded – undo
801 801
         // Cast to string for security reasons.
802 802
         $key = (string) $key;
803 803
         if (!$key) {
804
-            self::log('Invalid key "' . $key . '" for session data saving', LOG_SEVERITY_WARNING);
804
+            self::log('Invalid key "'.$key.'" for session data saving', LOG_SEVERITY_WARNING);
805 805
             return false;
806 806
         }
807 807
         // Save value in session data.
@@ -813,7 +813,7 @@  discard block
 block discarded – undo
813 813
             $GLOBALS['BE_USER']->setAndSaveSessionData($key, $value);
814 814
             return true;
815 815
         } else {
816
-            self::log('Unexpected TYPO3_MODE "' . \TYPO3_MODE . '"', LOG_SEVERITY_ERROR);
816
+            self::log('Unexpected TYPO3_MODE "'.\TYPO3_MODE.'"', LOG_SEVERITY_ERROR);
817 817
             return false;
818 818
         }
819 819
     }
@@ -836,7 +836,7 @@  discard block
 block discarded – undo
836 836
         // Sanitize input.
837 837
         $pid = max(intval($pid), 0);
838 838
         if (!$pid) {
839
-            self::log('Invalid PID ' . $pid . ' for translation', LOG_SEVERITY_WARNING);
839
+            self::log('Invalid PID '.$pid.' for translation', LOG_SEVERITY_WARNING);
840 840
             return $index_name;
841 841
         }
842 842
         // Check if "index_name" is an UID.
@@ -853,13 +853,13 @@  discard block
 block discarded – undo
853 853
         // First fetch the uid of the received index_name
854 854
         $result = $queryBuilder
855 855
             ->select(
856
-                $table . '.uid AS uid',
857
-                $table . '.l18n_parent AS l18n_parent'
856
+                $table.'.uid AS uid',
857
+                $table.'.l18n_parent AS l18n_parent'
858 858
             )
859 859
             ->from($table)
860 860
             ->where(
861
-                $queryBuilder->expr()->eq($table . '.pid', $pid),
862
-                $queryBuilder->expr()->eq($table . '.index_name', $queryBuilder->expr()->literal($index_name)),
861
+                $queryBuilder->expr()->eq($table.'.pid', $pid),
862
+                $queryBuilder->expr()->eq($table.'.index_name', $queryBuilder->expr()->literal($index_name)),
863 863
                 self::whereExpression($table, true)
864 864
             )
865 865
             ->setMaxResults(1)
@@ -872,12 +872,12 @@  discard block
 block discarded – undo
872 872
             $resArray = $allResults[0];
873 873
 
874 874
             $result = $queryBuilder
875
-                ->select($table . '.index_name AS index_name')
875
+                ->select($table.'.index_name AS index_name')
876 876
                 ->from($table)
877 877
                 ->where(
878
-                    $queryBuilder->expr()->eq($table . '.pid', $pid),
879
-                    $queryBuilder->expr()->eq($table . '.uid', $resArray['l18n_parent']),
880
-                    $queryBuilder->expr()->eq($table . '.sys_language_uid', intval($GLOBALS['TSFE']->sys_language_content)),
878
+                    $queryBuilder->expr()->eq($table.'.pid', $pid),
879
+                    $queryBuilder->expr()->eq($table.'.uid', $resArray['l18n_parent']),
880
+                    $queryBuilder->expr()->eq($table.'.sys_language_uid', intval($GLOBALS['TSFE']->sys_language_content)),
881 881
                     self::whereExpression($table, true)
882 882
                 )
883 883
                 ->setMaxResults(1)
@@ -895,14 +895,14 @@  discard block
 block discarded – undo
895 895
         if (empty($labels[$table][$pid][$GLOBALS['TSFE']->sys_language_content][$index_name])) {
896 896
             // Check if this table is allowed for translation.
897 897
             if (in_array($table, ['tx_dlf_collections', 'tx_dlf_libraries', 'tx_dlf_metadata', 'tx_dlf_structures'])) {
898
-                $additionalWhere = $queryBuilder->expr()->in($table . '.sys_language_uid', [-1, 0]);
898
+                $additionalWhere = $queryBuilder->expr()->in($table.'.sys_language_uid', [-1, 0]);
899 899
                 if ($GLOBALS['TSFE']->sys_language_content > 0) {
900 900
                     $additionalWhere = $queryBuilder->expr()->andX(
901 901
                         $queryBuilder->expr()->orX(
902
-                            $queryBuilder->expr()->in($table . '.sys_language_uid', [-1, 0]),
903
-                            $queryBuilder->expr()->eq($table . '.sys_language_uid', intval($GLOBALS['TSFE']->sys_language_content))
902
+                            $queryBuilder->expr()->in($table.'.sys_language_uid', [-1, 0]),
903
+                            $queryBuilder->expr()->eq($table.'.sys_language_uid', intval($GLOBALS['TSFE']->sys_language_content))
904 904
                         ),
905
-                        $queryBuilder->expr()->eq($table . '.l18n_parent', 0)
905
+                        $queryBuilder->expr()->eq($table.'.l18n_parent', 0)
906 906
                     );
907 907
                 }
908 908
 
@@ -911,7 +911,7 @@  discard block
 block discarded – undo
911 911
                     ->select('*')
912 912
                     ->from($table)
913 913
                     ->where(
914
-                        $queryBuilder->expr()->eq($table . '.pid', $pid),
914
+                        $queryBuilder->expr()->eq($table.'.pid', $pid),
915 915
                         $additionalWhere,
916 916
                         self::whereExpression($table, true)
917 917
                     )
@@ -929,10 +929,10 @@  discard block
 block discarded – undo
929 929
                         }
930 930
                     }
931 931
                 } else {
932
-                    self::log('No translation with PID ' . $pid . ' available in table "' . $table . '" or translation not accessible', LOG_SEVERITY_NOTICE);
932
+                    self::log('No translation with PID '.$pid.' available in table "'.$table.'" or translation not accessible', LOG_SEVERITY_NOTICE);
933 933
                 }
934 934
             } else {
935
-                self::log('No translations available for table "' . $table . '"', LOG_SEVERITY_WARNING);
935
+                self::log('No translations available for table "'.$table.'"', LOG_SEVERITY_WARNING);
936 936
             }
937 937
         }
938 938
 
@@ -971,9 +971,9 @@  discard block
 block discarded – undo
971 971
             return GeneralUtility::makeInstance(ConnectionPool::class)
972 972
                 ->getQueryBuilderForTable($table)
973 973
                 ->expr()
974
-                ->eq($table . '.' . $GLOBALS['TCA'][$table]['ctrl']['delete'], 0);
974
+                ->eq($table.'.'.$GLOBALS['TCA'][$table]['ctrl']['delete'], 0);
975 975
         } else {
976
-            self::log('Unexpected TYPO3_MODE "' . \TYPO3_MODE . '"', LOG_SEVERITY_ERROR);
976
+            self::log('Unexpected TYPO3_MODE "'.\TYPO3_MODE.'"', LOG_SEVERITY_ERROR);
977 977
             return '1=-1';
978 978
         }
979 979
     }
Please login to merge, or discard this patch.
Classes/Plugin/Tools/FulltextTool.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -84,14 +84,14 @@
 block discarded – undo
84 84
         }
85 85
         if (!empty($fullTextFile)) {
86 86
             $markerArray['###FULLTEXT_SELECT###'] = '<a class="select switchoff" id="tx-dlf-tools-fulltext" title="" data-dic="'
87
-            . 'fulltext:' . htmlspecialchars($this->pi_getLL('fulltext', ''))
88
-            . ';fulltext-on:' . htmlspecialchars($this->pi_getLL('fulltext-on', ''))
89
-            . ';fulltext-off:' . htmlspecialchars($this->pi_getLL('fulltext-off', ''))
90
-            . ';activate-full-text-initially:' . MathUtility::forceIntegerInRange($this->conf['activateFullTextInitially'], 0, 1, 0)
91
-            . ';full-text-scroll-element:' . $this->conf['fullTextScrollElement']
87
+            . 'fulltext:'.htmlspecialchars($this->pi_getLL('fulltext', ''))
88
+            . ';fulltext-on:'.htmlspecialchars($this->pi_getLL('fulltext-on', ''))
89
+            . ';fulltext-off:'.htmlspecialchars($this->pi_getLL('fulltext-off', ''))
90
+            . ';activate-full-text-initially:'.MathUtility::forceIntegerInRange($this->conf['activateFullTextInitially'], 0, 1, 0)
91
+            . ';full-text-scroll-element:'.$this->conf['fullTextScrollElement']
92 92
             . '">&nbsp;</a>';
93 93
         } else {
94
-            $markerArray['###FULLTEXT_SELECT###'] = '<span class="no-fulltext">' . htmlspecialchars($this->pi_getLL('fulltext-not-available', '')) . '</span>';
94
+            $markerArray['###FULLTEXT_SELECT###'] = '<span class="no-fulltext">'.htmlspecialchars($this->pi_getLL('fulltext-not-available', '')).'</span>';
95 95
         }
96 96
         $content .= $this->templateService->substituteMarkerArray($this->template, $markerArray);
97 97
         return $this->pi_wrapInBaseClass($content);
Please login to merge, or discard this patch.
Classes/Plugin/Eid/SearchInDocument.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
      */
121 121
     private function getQuery($fields, $parameters)
122 122
     {
123
-        return $fields['fulltext'] . ':(' . Solr::escapeQuery((string) $parameters['q']) . ') AND ' . $fields['uid'] . ':' . $this->getUid($parameters['uid']);
123
+        return $fields['fulltext'].':('.Solr::escapeQuery((string) $parameters['q']).') AND '.$fields['uid'].':'.$this->getUid($parameters['uid']);
124 124
     }
125 125
 
126 126
     /**
Please login to merge, or discard this patch.
Classes/Common/DocumentList.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
         if ($this->valid()) {
140 140
             return $this->getRecord($this->elements[$this->position]);
141 141
         } else {
142
-            $this->logger->notice('Invalid position "' . $this->position . '" for list element');
142
+            $this->logger->notice('Invalid position "'.$this->position.'" for list element');
143 143
             return;
144 144
         }
145 145
     }
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 
268 268
         $query = $this->solr->service->createSelect();
269 269
         // Restrict the fields to the required ones
270
-        $query->setFields($fields['uid'] . ',' . $fields['id'] . ',' . $fields['toplevel'] . ',' . $fields['thumbnail'] . ',' . $fields['page']);
270
+        $query->setFields($fields['uid'].','.$fields['id'].','.$fields['toplevel'].','.$fields['thumbnail'].','.$fields['page']);
271 271
         foreach ($this->solrConfig as $solr_name) {
272 272
             $query->addField($solr_name);
273 273
         }
@@ -280,16 +280,16 @@  discard block
 block discarded – undo
280 280
         // Extend filter query to get all documents with the same UID.
281 281
         foreach ($filterQueries as $key => $value) {
282 282
             if (isset($value['query'])) {
283
-                $filterQuery[$key] = $value['query'] . ' OR ' . $fields['toplevel'] . ':true';
283
+                $filterQuery[$key] = $value['query'].' OR '.$fields['toplevel'].':true';
284 284
                 $filterQuery = [
285 285
                     'key' => $key,
286
-                    'query' => $value['query'] . ' OR ' . $fields['toplevel'] . ':true'
286
+                    'query' => $value['query'].' OR '.$fields['toplevel'].':true'
287 287
                 ];
288 288
                 $query->addFilterQuery($filterQuery);
289 289
             }
290 290
         }
291 291
         // Add filter query to get all documents with the required uid.
292
-        $query->createFilterQuery('uid')->setQuery($fields['uid'] . ':' . Solr::escapeQuery($record['uid']));
292
+        $query->createFilterQuery('uid')->setQuery($fields['uid'].':'.Solr::escapeQuery($record['uid']));
293 293
         // Add sorting.
294 294
         if (is_array($this->metadata['options']['params']['sort'])) {
295 295
             foreach ($this->metadata['options']['params']['sort'] as $key => $direction) {
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
             }
298 298
         }
299 299
         // Set query.
300
-        $query->setQuery($this->metadata['options']['select'] . ' OR ' . $fields['toplevel'] . ':true');
300
+        $query->setQuery($this->metadata['options']['select'].' OR '.$fields['toplevel'].':true');
301 301
 
302 302
         // If it is a fulltext search, enable highlighting.
303 303
         if ($this->metadata['fulltextSearch']) {
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
             $position < 0
406 406
             || $position >= $this->count
407 407
         ) {
408
-            $this->logger->warning('Invalid position "' . $position . '" for element moving');
408
+            $this->logger->warning('Invalid position "'.$position.'" for element moving');
409 409
             return;
410 410
         }
411 411
         $steps = intval($steps);
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
         if (($position + $steps) < 0
414 414
             || ($position + $steps) >= $this->count
415 415
         ) {
416
-            $this->logger->warning('Invalid steps "' . $steps . '" for moving element at position "' . $position . '"');
416
+            $this->logger->warning('Invalid steps "'.$steps.'" for moving element at position "'.$position.'"');
417 417
             return;
418 418
         }
419 419
         $element = $this->remove($position);
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
         if ($this->offsetExists($offset)) {
492 492
             return $this->getRecord($this->elements[$offset]);
493 493
         } else {
494
-            $this->logger->notice('Invalid offset "' . $offset . '" for list element');
494
+            $this->logger->notice('Invalid offset "'.$offset.'" for list element');
495 495
             return;
496 496
         }
497 497
     }
@@ -535,7 +535,7 @@  discard block
 block discarded – undo
535 535
             $position < 0
536 536
             || $position >= $this->count
537 537
         ) {
538
-            $this->logger->warning('Invalid position "' . $position . '" for element removing');
538
+            $this->logger->warning('Invalid position "'.$position.'" for element removing');
539 539
             return;
540 540
         }
541 541
         $removed = array_splice($this->elements, $position, 1);
@@ -560,7 +560,7 @@  discard block
 block discarded – undo
560 560
             $position < 0
561 561
             || $position >= $this->count
562 562
         ) {
563
-            $this->logger->warning('Invalid position "' . $position . '" for element removing');
563
+            $this->logger->warning('Invalid position "'.$position.'" for element removing');
564 564
             return;
565 565
         }
566 566
         $removed = array_splice($this->elements, $position, $length);
@@ -653,7 +653,7 @@  discard block
 block discarded – undo
653 653
                     ->execute();
654 654
 
655 655
                 while ($resArray = $result->fetch()) {
656
-                    $this->solrConfig[$resArray['index_name']] = $resArray['index_name'] . '_' . ($resArray['index_tokenized'] ? 't' : 'u') . 's' . ($resArray['index_indexed'] ? 'i' : 'u');
656
+                    $this->solrConfig[$resArray['index_name']] = $resArray['index_name'].'_'.($resArray['index_tokenized'] ? 't' : 'u').'s'.($resArray['index_indexed'] ? 'i' : 'u');
657 657
                 }
658 658
                 // Add static fields.
659 659
                 $this->solrConfig['type'] = 'type';
@@ -681,7 +681,7 @@  discard block
 block discarded – undo
681 681
         foreach ($this->elements as $num => $element) {
682 682
             // Is this element sortable?
683 683
             if (!empty($element['s'][$by])) {
684
-                $newOrder[$element['s'][$by] . str_pad($num, 6, '0', STR_PAD_LEFT)] = $element;
684
+                $newOrder[$element['s'][$by].str_pad($num, 6, '0', STR_PAD_LEFT)] = $element;
685 685
             } else {
686 686
                 $nonSortable[] = $element;
687 687
             }
@@ -819,12 +819,12 @@  discard block
 block discarded – undo
819 819
      */
820 820
     public function __get($var)
821 821
     {
822
-        $method = '_get' . ucfirst($var);
822
+        $method = '_get'.ucfirst($var);
823 823
         if (
824 824
             !property_exists($this, $var)
825 825
             || !method_exists($this, $method)
826 826
         ) {
827
-            $this->logger->warning('There is no getter function for property "' . $var . '"');
827
+            $this->logger->warning('There is no getter function for property "'.$var.'"');
828 828
             return;
829 829
         } else {
830 830
             return $this->$method();
@@ -857,12 +857,12 @@  discard block
 block discarded – undo
857 857
      */
858 858
     public function __set($var, $value)
859 859
     {
860
-        $method = '_set' . ucfirst($var);
860
+        $method = '_set'.ucfirst($var);
861 861
         if (
862 862
             !property_exists($this, $var)
863 863
             || !method_exists($this, $method)
864 864
         ) {
865
-            $this->logger->warning('There is no setter function for property "' . $var . '"');
865
+            $this->logger->warning('There is no setter function for property "'.$var.'"');
866 866
         } else {
867 867
             $this->$method($value);
868 868
         }
Please login to merge, or discard this patch.
Classes/Common/SolrSearchResult/Highlight.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
         $this->xEndPosition = $highlight['lrx'];
88 88
         $this->yBeginPosition = $highlight['uly'];
89 89
         $this->yEndPosition = $highlight['lry'];
90
-        $this->id = $this->xBeginPosition . '_' . $this->yBeginPosition;
90
+        $this->id = $this->xBeginPosition.'_'.$this->yBeginPosition;
91 91
     }
92 92
 
93 93
     /**
Please login to merge, or discard this patch.
Classes/Format/Alto.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     private function getWord($attributes)
103 103
     {
104
-        return htmlspecialchars((string) $attributes['CONTENT']) . ' ';
104
+        return htmlspecialchars((string) $attributes['CONTENT']).' ';
105 105
     }
106 106
 
107 107
     /**
@@ -115,6 +115,6 @@  discard block
 block discarded – undo
115 115
      */
116 116
     private function getCoordinates($attributes)
117 117
     {
118
-        return (string) $attributes['HPOS'] . ' ' . (string) $attributes['VPOS'] . ' ' . (string) $attributes['WIDTH'] . ' ' . (string) $attributes['HEIGHT'];
118
+        return (string) $attributes['HPOS'].' '.(string) $attributes['VPOS'].' '.(string) $attributes['WIDTH'].' '.(string) $attributes['HEIGHT'];
119 119
     }
120 120
 }
Please login to merge, or discard this patch.
Classes/Common/Indexer.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
                 if ($parent->ready) {
103 103
                     $success = self::add($parent, $core);
104 104
                 } else {
105
-                    Helper::log('Could not load parent document with UID ' . $doc->parentId, LOG_SEVERITY_ERROR);
105
+                    Helper::log('Could not load parent document with UID '.$doc->parentId, LOG_SEVERITY_ERROR);
106 106
                     return false;
107 107
                 }
108 108
             }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                 self::$processedDocs[] = $doc->uid;
112 112
                 // Delete old Solr documents.
113 113
                 $updateQuery = self::$solr->service->createUpdate();
114
-                $updateQuery->addDeleteQuery('uid:' . $doc->uid);
114
+                $updateQuery->addDeleteQuery('uid:'.$doc->uid);
115 115
                 self::$solr->service->update($updateQuery);
116 116
 
117 117
                 // Index every logical unit as separate Solr document.
@@ -176,14 +176,14 @@  discard block
 block discarded – undo
176 176
             } catch (\Exception $e) {
177 177
                 if (!(\TYPO3_REQUESTTYPE & \TYPO3_REQUESTTYPE_CLI)) {
178 178
                     Helper::addMessage(
179
-                        Helper::getMessage('flash.solrException', true) . '<br />' . htmlspecialchars($e->getMessage()),
179
+                        Helper::getMessage('flash.solrException', true).'<br />'.htmlspecialchars($e->getMessage()),
180 180
                         Helper::getMessage('flash.error', true),
181 181
                         FlashMessage::ERROR,
182 182
                         true,
183 183
                         'core.template.flashMessages'
184 184
                     );
185 185
                 }
186
-                Helper::log('Apache Solr threw exception: "' . $e->getMessage() . '"', LOG_SEVERITY_ERROR);
186
+                Helper::log('Apache Solr threw exception: "'.$e->getMessage().'"', LOG_SEVERITY_ERROR);
187 187
                 return false;
188 188
             }
189 189
         } else {
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
         // Sanitize input.
217 217
         $pid = max(intval($pid), 0);
218 218
         if (!$pid) {
219
-            Helper::log('Invalid PID ' . $pid . ' for metadata configuration', LOG_SEVERITY_ERROR);
219
+            Helper::log('Invalid PID '.$pid.' for metadata configuration', LOG_SEVERITY_ERROR);
220 220
             return '';
221 221
         }
222 222
         // Load metadata configuration.
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
         $suffix = (in_array($index_name, self::$fields['tokenized']) ? 't' : 'u');
226 226
         $suffix .= (in_array($index_name, self::$fields['stored']) ? 's' : 'u');
227 227
         $suffix .= (in_array($index_name, self::$fields['indexed']) ? 'i' : 'u');
228
-        $index_name .= '_' . $suffix;
228
+        $index_name .= '_'.$suffix;
229 229
         return $index_name;
230 230
     }
231 231
 
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
             $updateQuery = self::$solr->service->createUpdate();
334 334
             $solrDoc = $updateQuery->createDocument();
335 335
             // Create unique identifier from document's UID and unit's XML ID.
336
-            $solrDoc->setField('id', $doc->uid . $logicalUnit['id']);
336
+            $solrDoc->setField('id', $doc->uid.$logicalUnit['id']);
337 337
             $solrDoc->setField('uid', $doc->uid);
338 338
             $solrDoc->setField('pid', $doc->pid);
339 339
             if (MathUtility::canBeInterpretedAsInteger($logicalUnit['points'])) {
@@ -374,11 +374,11 @@  discard block
 block discarded – undo
374 374
                     $solrDoc->setField(self::getIndexFieldName($index_name, $doc->pid), $data, self::$fields['fieldboost'][$index_name]);
375 375
                     if (in_array($index_name, self::$fields['sortables'])) {
376 376
                         // Add sortable fields to index.
377
-                        $solrDoc->setField($index_name . '_sorting', $metadata[$index_name . '_sorting'][0]);
377
+                        $solrDoc->setField($index_name.'_sorting', $metadata[$index_name.'_sorting'][0]);
378 378
                     }
379 379
                     if (in_array($index_name, self::$fields['facets'])) {
380 380
                         // Add facets to index.
381
-                        $solrDoc->setField($index_name . '_faceting', $data);
381
+                        $solrDoc->setField($index_name.'_faceting', $data);
382 382
                     }
383 383
                     if (in_array($index_name, self::$fields['autocomplete'])) {
384 384
                         $autocomplete = array_merge($autocomplete, $data);
@@ -403,14 +403,14 @@  discard block
 block discarded – undo
403 403
             } catch (\Exception $e) {
404 404
                 if (!(\TYPO3_REQUESTTYPE & \TYPO3_REQUESTTYPE_CLI)) {
405 405
                     Helper::addMessage(
406
-                        Helper::getMessage('flash.solrException', true) . '<br />' . htmlspecialchars($e->getMessage()),
406
+                        Helper::getMessage('flash.solrException', true).'<br />'.htmlspecialchars($e->getMessage()),
407 407
                         Helper::getMessage('flash.error', true),
408 408
                         FlashMessage::ERROR,
409 409
                         true,
410 410
                         'core.template.flashMessages'
411 411
                     );
412 412
                 }
413
-                Helper::log('Apache Solr threw exception: "' . $e->getMessage() . '"', LOG_SEVERITY_ERROR);
413
+                Helper::log('Apache Solr threw exception: "'.$e->getMessage().'"', LOG_SEVERITY_ERROR);
414 414
                 return false;
415 415
             }
416 416
         }
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
             $updateQuery = self::$solr->service->createUpdate();
449 449
             $solrDoc = $updateQuery->createDocument();
450 450
             // Create unique identifier from document's UID and unit's XML ID.
451
-            $solrDoc->setField('id', $doc->uid . $physicalUnit['id']);
451
+            $solrDoc->setField('id', $doc->uid.$physicalUnit['id']);
452 452
             $solrDoc->setField('uid', $doc->uid);
453 453
             $solrDoc->setField('pid', $doc->pid);
454 454
             $solrDoc->setField('page', $page);
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
                             }
484 484
                         }
485 485
                         // Add facets to index.
486
-                        $solrDoc->setField($index_name . '_faceting', $data);
486
+                        $solrDoc->setField($index_name.'_faceting', $data);
487 487
                     }
488 488
                 }
489 489
             }
@@ -500,14 +500,14 @@  discard block
 block discarded – undo
500 500
             } catch (\Exception $e) {
501 501
                 if (!(\TYPO3_REQUESTTYPE & \TYPO3_REQUESTTYPE_CLI)) {
502 502
                     Helper::addMessage(
503
-                        Helper::getMessage('flash.solrException', true) . '<br />' . htmlspecialchars($e->getMessage()),
503
+                        Helper::getMessage('flash.solrException', true).'<br />'.htmlspecialchars($e->getMessage()),
504 504
                         Helper::getMessage('flash.error', true),
505 505
                         FlashMessage::ERROR,
506 506
                         true,
507 507
                         'core.template.flashMessages'
508 508
                     );
509 509
                 }
510
-                Helper::log('Apache Solr threw exception: "' . $e->getMessage() . '"', LOG_SEVERITY_ERROR);
510
+                Helper::log('Apache Solr threw exception: "'.$e->getMessage().'"', LOG_SEVERITY_ERROR);
511 511
                 return false;
512 512
             }
513 513
         }
Please login to merge, or discard this patch.