@@ -57,7 +57,7 @@ |
||
| 57 | 57 | } |
| 58 | 58 | $dmdIds = explode(' ', $id); |
| 59 | 59 | foreach ($dmdIds as $dmdId) { |
| 60 | - $recordIds = $xml->xpath('//mets:dmdSec[@ID="' . $dmdId . '"]//mods:mods/mods:recordInfo/mods:recordIdentifier'); |
|
| 60 | + $recordIds = $xml->xpath('//mets:dmdSec[@ID="'.$dmdId.'"]//mods:mods/mods:recordInfo/mods:recordIdentifier'); |
|
| 61 | 61 | if (!empty($recordIds)) { |
| 62 | 62 | $record_id = (string) $recordIds[0]; |
| 63 | 63 | break; |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | protected function getClass(FlashMessage $flashMessage): string |
| 67 | 67 | { |
| 68 | - return 'alert-' . self::$classes[$flashMessage->getSeverity()]; |
|
| 68 | + return 'alert-'.self::$classes[$flashMessage->getSeverity()]; |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
@@ -95,19 +95,19 @@ discard block |
||
| 95 | 95 | $markup[] = '<div class="typo3-messages">'; |
| 96 | 96 | foreach ($flashMessages as $flashMessage) { |
| 97 | 97 | $messageTitle = $flashMessage->getTitle(); |
| 98 | - $markup[] = '<div class="alert ' . htmlspecialchars($this->getClass($flashMessage)) . '">'; |
|
| 98 | + $markup[] = '<div class="alert '.htmlspecialchars($this->getClass($flashMessage)).'">'; |
|
| 99 | 99 | $markup[] = ' <div class="media">'; |
| 100 | 100 | $markup[] = ' <div class="media-left">'; |
| 101 | 101 | $markup[] = ' <span class="fa-stack fa-lg">'; |
| 102 | 102 | $markup[] = ' <i class="fa fa-circle fa-stack-2x"></i>'; |
| 103 | - $markup[] = ' <i class="fa fa-' . htmlspecialchars($this->getIconName($flashMessage)) . ' fa-stack-1x"></i>'; |
|
| 103 | + $markup[] = ' <i class="fa fa-'.htmlspecialchars($this->getIconName($flashMessage)).' fa-stack-1x"></i>'; |
|
| 104 | 104 | $markup[] = ' </span>'; |
| 105 | 105 | $markup[] = ' </div>'; |
| 106 | 106 | $markup[] = ' <div class="media-body">'; |
| 107 | 107 | if ($messageTitle !== '') { |
| 108 | - $markup[] = ' <h4 class="alert-title">' . htmlspecialchars($messageTitle) . '</h4>'; |
|
| 108 | + $markup[] = ' <h4 class="alert-title">'.htmlspecialchars($messageTitle).'</h4>'; |
|
| 109 | 109 | } |
| 110 | - $markup[] = ' <p class="alert-message">' . $flashMessage->getMessage() . '</p>'; |
|
| 110 | + $markup[] = ' <p class="alert-message">'.$flashMessage->getMessage().'</p>'; |
|
| 111 | 111 | $markup[] = ' </div>'; |
| 112 | 112 | $markup[] = ' </div>'; |
| 113 | 113 | $markup[] = '</div>'; |
@@ -694,16 +694,16 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | |
@@ -87,7 +87,7 @@ |
||
| 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 | /** |
@@ -101,7 +101,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | return [ |
| 5 | 5 | \Kitodo\Dlf\Domain\Model\ActionLog::class => [ |
@@ -35,9 +35,9 @@ discard block |
||
| 35 | 35 | { |
| 36 | 36 | if (!empty($text)) { |
| 37 | 37 | if ($format['bold'] ?? false) { |
| 38 | - $text = '**' . $text . '**'; |
|
| 38 | + $text = '**'.$text.'**'; |
|
| 39 | 39 | } elseif ($format['italic'] ?? false) { |
| 40 | - $text = '*' . $text . '*'; |
|
| 40 | + $text = '*'.$text.'*'; |
|
| 41 | 41 | } |
| 42 | 42 | } |
| 43 | 43 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | public static function paragraphs(array $paragraphs) |
| 48 | 48 | { |
| 49 | - $paragraphs = array_values(array_filter($paragraphs, function ($entry) { |
|
| 49 | + $paragraphs = array_values(array_filter($paragraphs, function($entry) { |
|
| 50 | 50 | return !empty($entry); |
| 51 | 51 | })); |
| 52 | 52 | |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | public function addText(string $text) |
| 69 | 69 | { |
| 70 | 70 | if (!empty($text)) { |
| 71 | - $this->text .= $text . "\n\n"; |
|
| 71 | + $this->text .= $text."\n\n"; |
|
| 72 | 72 | } |
| 73 | 73 | } |
| 74 | 74 | |
@@ -97,10 +97,10 @@ discard block |
||
| 97 | 97 | $numLines = count($valueLines); |
| 98 | 98 | for ($i = 0; $i < $numLines; $i++) { |
| 99 | 99 | $prefix = $i === 0 |
| 100 | - ? ' :' . $key . ':' |
|
| 100 | + ? ' :'.$key.':' |
|
| 101 | 101 | : ''; |
| 102 | 102 | |
| 103 | - $entry .= str_pad($prefix, 32) . trim($valueLines[$i]) . "\n"; |
|
| 103 | + $entry .= str_pad($prefix, 32).trim($valueLines[$i])."\n"; |
|
| 104 | 104 | } |
| 105 | 105 | } |
| 106 | 106 | |
@@ -138,10 +138,10 @@ discard block |
||
| 138 | 138 | $headerSep = str_repeat($headerChar, mb_strlen($this->header)); |
| 139 | 139 | |
| 140 | 140 | if ($level === 0) { |
| 141 | - $result .= $headerSep . "\n"; |
|
| 141 | + $result .= $headerSep."\n"; |
|
| 142 | 142 | } |
| 143 | 143 | |
| 144 | - $result .= $this->header . "\n" . $headerSep . "\n\n"; |
|
| 144 | + $result .= $this->header."\n".$headerSep."\n\n"; |
|
| 145 | 145 | |
| 146 | 146 | return $result; |
| 147 | 147 | } |
@@ -11,16 +11,16 @@ |
||
| 11 | 11 | * LICENSE.txt file that was distributed with this source code. |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | -$classLoader = require_once __DIR__ . '/../../../vendor/autoload.php'; |
|
| 14 | +$classLoader = require_once __DIR__.'/../../../vendor/autoload.php'; |
|
| 15 | 15 | |
| 16 | 16 | $outputPath = $argv[1] ?? null; |
| 17 | 17 | if (empty($outputPath) || !is_writable(($outputPath))) { |
| 18 | - echo 'Error: Output path not specified or not writable' . "\n"; |
|
| 18 | + echo 'Error: Output path not specified or not writable'."\n"; |
|
| 19 | 19 | exit(1); |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | -putenv('TYPO3_PATH_ROOT=' . __DIR__ . '/public'); |
|
| 23 | -putenv('TYPO3_PATH_APP=' . __DIR__); |
|
| 22 | +putenv('TYPO3_PATH_ROOT='.__DIR__.'/public'); |
|
| 23 | +putenv('TYPO3_PATH_APP='.__DIR__); |
|
| 24 | 24 | |
| 25 | 25 | // For compatibility with TYPO v9 |
| 26 | 26 | define('PATH_thisScript', __FILE__); |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | if ($library) { |
| 72 | 72 | $feedMeta['copyright'] = $library->getLabel(); |
| 73 | 73 | } else { |
| 74 | - $this->logger->error('Failed to fetch label of selected library with "' . $this->settings['library'] . '"'); |
|
| 74 | + $this->logger->error('Failed to fetch label of selected library with "'.$this->settings['library'].'"'); |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | if ( |
@@ -91,12 +91,12 @@ discard block |
||
| 91 | 91 | ) { |
| 92 | 92 | $superiorTitle = Doc::getTitle($document->getPartof(), true); |
| 93 | 93 | if (!empty($superiorTitle)) { |
| 94 | - $title .= '[' . $superiorTitle . ']'; |
|
| 94 | + $title .= '['.$superiorTitle.']'; |
|
| 95 | 95 | } |
| 96 | 96 | } |
| 97 | 97 | // Get title of document. |
| 98 | 98 | if (!empty($document->getTitle())) { |
| 99 | - $title .= ' ' . $document->getTitle(); |
|
| 99 | + $title .= ' '.$document->getTitle(); |
|
| 100 | 100 | } |
| 101 | 101 | // Set default title if empty. |
| 102 | 102 | if (empty($title)) { |
@@ -104,13 +104,13 @@ discard block |
||
| 104 | 104 | } |
| 105 | 105 | // Append volume information. |
| 106 | 106 | if (!empty($document->getVolume())) { |
| 107 | - $title .= ', ' . LocalizationUtility::translate('volume', 'dlf') . ' ' . $document->getVolume(); |
|
| 107 | + $title .= ', '.LocalizationUtility::translate('volume', 'dlf').' '.$document->getVolume(); |
|
| 108 | 108 | } |
| 109 | 109 | // Is this document new or updated? |
| 110 | 110 | if ($document->getCrdate() == $document->getTstamp()) { |
| 111 | - $title = LocalizationUtility::translate('plugins.feeds.new', 'dlf') . ' ' . trim($title); |
|
| 111 | + $title = LocalizationUtility::translate('plugins.feeds.new', 'dlf').' '.trim($title); |
|
| 112 | 112 | } else { |
| 113 | - $title = LocalizationUtility::translate('plugins.feeds.update', 'dlf') . ' ' . trim($title); |
|
| 113 | + $title = LocalizationUtility::translate('plugins.feeds.update', 'dlf').' '.trim($title); |
|
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | $document->setTitle($title); |