| @@ -269,10 +269,10 @@ | ||
| 269 | 269 | 'readOnly' => 1, | 
| 270 | 270 | 'fieldControl' => [ | 
| 271 | 271 | 'elementBrowser' => [ | 
| 272 | - 'disabled' => true | |
| 272 | + 'disabled' => TRUE | |
| 273 | 273 | ] | 
| 274 | 274 | ], | 
| 275 | - 'hideDeleteIcon' => true | |
| 275 | + 'hideDeleteIcon' => TRUE | |
| 276 | 276 | ], | 
| 277 | 277 | ], | 
| 278 | 278 | 'volume' => [ | 
| @@ -144,7 +144,7 @@ discard block | ||
| 144 | 144 | 'label' => 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_metadata.wrap', | 
| 145 | 145 | 'config' => [ | 
| 146 | 146 | 'behaviour' => [ | 
| 147 | - 'allowLanguageSynchronization' => true | |
| 147 | + 'allowLanguageSynchronization' => TRUE | |
| 148 | 148 | ], | 
| 149 | 149 | 'type' => 'text', | 
| 150 | 150 | 'cols' => 48, | 
| @@ -152,8 +152,8 @@ discard block | ||
| 152 | 152 | 'wrap' => 'off', | 
| 153 | 153 | 'eval' => 'trim', | 
| 154 | 154 | 'default' => "key.wrap = <dt>|</dt>\nvalue.required = 1\nvalue.wrap = <dd>|</dd>", | 
| 155 | - 'fixedFont' => true, | |
| 156 | - 'enableTabulator' => true | |
| 155 | + 'fixedFont' => TRUE, | |
| 156 | + 'enableTabulator' => TRUE | |
| 157 | 157 | ], | 
| 158 | 158 | ], | 
| 159 | 159 | 'index_tokenized' => [ | 
| @@ -157,14 +157,14 @@ | ||
| 157 | 157 | 'label' => 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_collections.description', | 
| 158 | 158 | 'config' => [ | 
| 159 | 159 | 'behaviour' => [ | 
| 160 | - 'allowLanguageSynchronization' => true | |
| 160 | + 'allowLanguageSynchronization' => TRUE | |
| 161 | 161 | ], | 
| 162 | 162 | 'type' => 'text', | 
| 163 | 163 | 'cols' => 30, | 
| 164 | 164 | 'rows' => 10, | 
| 165 | 165 | 'wrap' => 'virtual', | 
| 166 | 166 | 'default' => '', | 
| 167 | - 'enableRichtext' => true, | |
| 167 | + 'enableRichtext' => TRUE, | |
| 168 | 168 | ], | 
| 169 | 169 | ], | 
| 170 | 170 | 'thumbnail' => [ | 
| @@ -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; | 
| @@ -20,8 +20,7 @@ discard block | ||
| 20 | 20 | * @subpackage dlf | 
| 21 | 21 | * @access public | 
| 22 | 22 | */ | 
| 23 | -class KitodoProductionHacks | |
| 24 | -{ | |
| 23 | +class KitodoProductionHacks { | |
| 25 | 24 | /** | 
| 26 | 25 | * Hook for \Kitodo\Dlf\Common\MetsDocument::establishRecordId() | 
| 27 | 26 | * When using Kitodo.Production the record identifier is saved only in MODS, but not | 
| @@ -34,8 +33,7 @@ discard block | ||
| 34 | 33 | * | 
| 35 | 34 | * @return void | 
| 36 | 35 | */ | 
| 37 | - public function construct_postProcessRecordId(\SimpleXMLElement &$xml, &$record_id) | |
| 38 | -    { | |
| 36 | +    public function construct_postProcessRecordId(\SimpleXMLElement &$xml, &$record_id) { | |
| 39 | 37 |          if (!$record_id) { | 
| 40 | 38 |              $xml->registerXPathNamespace('mods', 'http://www.loc.gov/mods/v3'); | 
| 41 | 39 | // Get all logical structure nodes with metadata, but without associated METS-Pointers. | 
| @@ -82,7 +82,7 @@ | ||
| 82 | 82 | } | 
| 83 | 83 | // Append "valueURI" to name using Unicode unit separator. | 
| 84 | 84 |                  if (isset($authors[$i]['valueURI'])) { | 
| 85 | - $metadata['author'][$i] .= chr(31) . (string) $authors[$i]['valueURI']; | |
| 85 | + $metadata['author'][$i] .= chr(31).(string) $authors[$i]['valueURI']; | |
| 86 | 86 | } | 
| 87 | 87 | } | 
| 88 | 88 | } | 
| @@ -32,8 +32,7 @@ | ||
| 32 | 32 | * | 
| 33 | 33 | * @return void | 
| 34 | 34 | */ | 
| 35 | - public function extractMetadata(\SimpleXMLElement $xml, array &$metadata) | |
| 36 | -    { | |
| 35 | +    public function extractMetadata(\SimpleXMLElement $xml, array &$metadata) { | |
| 37 | 36 |          $xml->registerXPathNamespace('mods', 'http://www.loc.gov/mods/v3'); | 
| 38 | 37 | // Get "author" and "author_sorting". | 
| 39 | 38 |          $authors = $xml->xpath('./mods:name[./mods:role/mods:roleTerm[@type="code" and @authority="marcrelator"]="aut"]'); | 
| @@ -21,8 +21,7 @@ | ||
| 21 | 21 | * @access public | 
| 22 | 22 | * @abstract | 
| 23 | 23 | */ | 
| 24 | -interface FulltextInterface | |
| 25 | -{ | |
| 24 | +interface FulltextInterface { | |
| 26 | 25 | /** | 
| 27 | 26 | * This extracts raw fulltext data from XML | 
| 28 | 27 | * | 
| @@ -21,8 +21,7 @@ | ||
| 21 | 21 | * @access public | 
| 22 | 22 | * @abstract | 
| 23 | 23 | */ | 
| 24 | -interface MetadataInterface | |
| 25 | -{ | |
| 24 | +interface MetadataInterface { | |
| 26 | 25 | /** | 
| 27 | 26 | * This extracts metadata from XML | 
| 28 | 27 | * | 
| @@ -25,8 +25,7 @@ discard block | ||
| 25 | 25 | * @subpackage dlf | 
| 26 | 26 | * @access public | 
| 27 | 27 | */ | 
| 28 | -class IiifUrlReader implements UrlReaderInterface | |
| 29 | -{ | |
| 28 | +class IiifUrlReader implements UrlReaderInterface { | |
| 30 | 29 | /** | 
| 31 | 30 | * Singleton instance of the class | 
| 32 | 31 | * | 
| @@ -40,8 +39,7 @@ discard block | ||
| 40 | 39 |       * {@inheritDoc} | 
| 41 | 40 | * @see \Ubl\Iiif\Tools\UrlReaderInterface::getContent() | 
| 42 | 41 | */ | 
| 43 | - public function getContent($url) | |
| 44 | -    { | |
| 42 | +    public function getContent($url) { | |
| 45 | 43 | $fileContents = GeneralUtility::getUrl($url); | 
| 46 | 44 |          if ($fileContents !== false) { | 
| 47 | 45 | return $fileContents; | 
| @@ -57,8 +55,7 @@ discard block | ||
| 57 | 55 | * | 
| 58 | 56 | * @return IiifUrlReader | 
| 59 | 57 | */ | 
| 60 | - public static function getInstance() | |
| 61 | -    { | |
| 58 | +    public static function getInstance() { | |
| 62 | 59 |          if (!isset(self::$instance)) { | 
| 63 | 60 | self::$instance = new IiifUrlReader(); | 
| 64 | 61 | } | 
| @@ -43,7 +43,7 @@ | ||
| 43 | 43 | public function getContent($url) | 
| 44 | 44 |      { | 
| 45 | 45 | $fileContents = GeneralUtility::getUrl($url); | 
| 46 | -        if ($fileContents !== false) { | |
| 46 | +        if ($fileContents !== FALSE) { | |
| 47 | 47 | return $fileContents; | 
| 48 | 48 |          } else { | 
| 49 | 49 | return ''; | 
| @@ -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>'; |