@@ -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' => [  | 
                                                        
@@ -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 '';  | 
                                                        
@@ -25,8 +25,7 @@ discard block  | 
                                                    ||
| 25 | 25 | *  | 
                                                        
| 26 | 26 | * @access public  | 
                                                        
| 27 | 27 | */  | 
                                                        
| 28 | -class IiifUrlReader implements UrlReaderInterface  | 
                                                        |
| 29 | -{ | 
                                                        |
| 28 | +class IiifUrlReader implements UrlReaderInterface { | 
                                                        |
| 30 | 29 | /**  | 
                                                        
| 31 | 30 | * @access protected  | 
                                                        
| 32 | 31 | * @var IiifUrlReader Singleton instance of the class  | 
                                                        
@@ -36,8 +35,7 @@ discard block  | 
                                                    ||
| 36 | 35 | /**  | 
                                                        
| 37 | 36 | * @see UrlReaderInterface::getContent()  | 
                                                        
| 38 | 37 | */  | 
                                                        
| 39 | - public function getContent($url)  | 
                                                        |
| 40 | -    { | 
                                                        |
| 38 | +    public function getContent($url) { | 
                                                        |
| 41 | 39 | $fileContents = GeneralUtility::getUrl($url);  | 
                                                        
| 42 | 40 |          if ($fileContents !== false) { | 
                                                        
| 43 | 41 | return $fileContents;  | 
                                                        
@@ -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>';  | 
                                                        
@@ -27,8 +27,7 @@  | 
                                                    ||
| 27 | 27 | *  | 
                                                        
| 28 | 28 | * @access public  | 
                                                        
| 29 | 29 | */  | 
                                                        
| 30 | -class KitodoFlashMessageRenderer implements FlashMessageRendererInterface  | 
                                                        |
| 31 | -{ | 
                                                        |
| 30 | +class KitodoFlashMessageRenderer implements FlashMessageRendererInterface { | 
                                                        |
| 32 | 31 | /**  | 
                                                        
| 33 | 32 | * @var array The message severity class names  | 
                                                        
| 34 | 33 | */  | 
                                                        
@@ -24,8 +24,8 @@  | 
                                                    ||
| 24 | 24 | 'suggests' => []  | 
                                                        
| 25 | 25 | ],  | 
                                                        
| 26 | 26 | 'state' => 'stable',  | 
                                                        
| 27 | - 'uploadfolder' => false,  | 
                                                        |
| 28 | - 'clearCacheOnLoad' => false,  | 
                                                        |
| 27 | + 'uploadfolder' => FALSE,  | 
                                                        |
| 28 | + 'clearCacheOnLoad' => FALSE,  | 
                                                        |
| 29 | 29 | 'author' => 'Sebastian Meyer (Maintainer)',  | 
                                                        
| 30 | 30 | 'author_email' => '[email protected]',  | 
                                                        
| 31 | 31 | 'author_company' => 'Kitodo. Key to digital objects e. V.',  | 
                                                        
@@ -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 | }  | 
                                                        
@@ -20,8 +20,7 @@ discard block  | 
                                                    ||
| 20 | 20 | * @subpackage dlf  | 
                                                        
| 21 | 21 | * @access public  | 
                                                        
| 22 | 22 | */  | 
                                                        
| 23 | -class RstSection  | 
                                                        |
| 24 | -{ | 
                                                        |
| 23 | +class RstSection { | 
                                                        |
| 25 | 24 | /** @var string */  | 
                                                        
| 26 | 25 | protected $header = '';  | 
                                                        
| 27 | 26 | |
@@ -31,8 +30,7 @@ discard block  | 
                                                    ||
| 31 | 30 | /** @var RstSection[] */  | 
                                                        
| 32 | 31 | protected $subsections = [];  | 
                                                        
| 33 | 32 | |
| 34 | - public static function format(string $text, array $format = [])  | 
                                                        |
| 35 | -    { | 
                                                        |
| 33 | +    public static function format(string $text, array $format = []) { | 
                                                        |
| 36 | 34 |          if (!empty($text)) { | 
                                                        
| 37 | 35 |              if ($format['bold'] ?? false) { | 
                                                        
| 38 | 36 | $text = '**' . $text . '**';  | 
                                                        
@@ -44,8 +42,7 @@ discard block  | 
                                                    ||
| 44 | 42 | return $text;  | 
                                                        
| 45 | 43 | }  | 
                                                        
| 46 | 44 | |
| 47 | - public static function paragraphs(array $paragraphs)  | 
                                                        |
| 48 | -    { | 
                                                        |
| 45 | +    public static function paragraphs(array $paragraphs) { | 
                                                        |
| 49 | 46 |          $paragraphs = array_values(array_filter($paragraphs, function ($entry) { | 
                                                        
| 50 | 47 | return !empty($entry);  | 
                                                        
| 51 | 48 | }));  | 
                                                        
@@ -53,27 +50,23 @@ discard block  | 
                                                    ||
| 53 | 50 |          return implode("\n\n", $paragraphs); | 
                                                        
| 54 | 51 | }  | 
                                                        
| 55 | 52 | |
| 56 | - public function subsection()  | 
                                                        |
| 57 | -    { | 
                                                        |
| 53 | +    public function subsection() { | 
                                                        |
| 58 | 54 | $section = new static();  | 
                                                        
| 59 | 55 | $this->subsections[] = $section;  | 
                                                        
| 60 | 56 | return $section;  | 
                                                        
| 61 | 57 | }  | 
                                                        
| 62 | 58 | |
| 63 | - public function setHeader(string $text)  | 
                                                        |
| 64 | -    { | 
                                                        |
| 59 | +    public function setHeader(string $text) { | 
                                                        |
| 65 | 60 | $this->header = $text;  | 
                                                        
| 66 | 61 | }  | 
                                                        
| 67 | 62 | |
| 68 | - public function addText(string $text)  | 
                                                        |
| 69 | -    { | 
                                                        |
| 63 | +    public function addText(string $text) { | 
                                                        |
| 70 | 64 |          if (!empty($text)) { | 
                                                        
| 71 | 65 | $this->text .= $text . "\n\n";  | 
                                                        
| 72 | 66 | }  | 
                                                        
| 73 | 67 | }  | 
                                                        
| 74 | 68 | |
| 75 | - public function addTable(array $rows, array $headerRows)  | 
                                                        |
| 76 | -    { | 
                                                        |
| 69 | +    public function addTable(array $rows, array $headerRows) { | 
                                                        |
| 77 | 70 | $numHeaderRows = count($headerRows);  | 
                                                        
| 78 | 71 | |
| 79 | 72 | $tableRst = <<<RST  | 
                                                        
@@ -115,8 +108,7 @@ discard block  | 
                                                    ||
| 115 | 108 | $this->addText($tableRst);  | 
                                                        
| 116 | 109 | }  | 
                                                        
| 117 | 110 | |
| 118 | - public function render(int $level = 0)  | 
                                                        |
| 119 | -    { | 
                                                        |
| 111 | +    public function render(int $level = 0) { | 
                                                        |
| 120 | 112 | $result = '';  | 
                                                        
| 121 | 113 | |
| 122 | 114 | $result .= $this->renderHeader($level);  | 
                                                        
@@ -130,8 +122,7 @@ discard block  | 
                                                    ||
| 130 | 122 | return $result;  | 
                                                        
| 131 | 123 | }  | 
                                                        
| 132 | 124 | |
| 133 | - protected function renderHeader(int $level)  | 
                                                        |
| 134 | -    { | 
                                                        |
| 125 | +    protected function renderHeader(int $level) { | 
                                                        |
| 135 | 126 | $result = '';  | 
                                                        
| 136 | 127 | |
| 137 | 128 | $headerChar = ['=', '=', '-', '~', '"'][$level];  | 
                                                        
@@ -34,9 +34,9 @@ discard block  | 
                                                    ||
| 34 | 34 | public static function format(string $text, array $format = [])  | 
                                                        
| 35 | 35 |      { | 
                                                        
| 36 | 36 |          if (!empty($text)) { | 
                                                        
| 37 | -            if ($format['bold'] ?? false) { | 
                                                        |
| 37 | +            if ($format['bold'] ?? FALSE) { | 
                                                        |
| 38 | 38 | $text = '**' . $text . '**';  | 
                                                        
| 39 | -            } elseif ($format['italic'] ?? false) { | 
                                                        |
| 39 | +            } elseif ($format['italic'] ?? FALSE) { | 
                                                        |
| 40 | 40 | $text = '*' . $text . '*';  | 
                                                        
| 41 | 41 | }  | 
                                                        
| 42 | 42 | }  | 
                                                        
@@ -81,7 +81,7 @@ discard block  | 
                                                    ||
| 81 | 81 | :header-rows: $numHeaderRows  | 
                                                        
| 82 | 82 | |
| 83 | 83 | |
| 84 | -RST;  | 
                                                        |
| 84 | +rst;  | 
                                                        |
| 85 | 85 | |
| 86 | 86 | // Pattern for a row:  | 
                                                        
| 87 | 87 | //  | 
                                                        
@@ -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__); | 
                                                        
@@ -13,7 +13,7 @@ discard block  | 
                                                    ||
| 13 | 13 | |
| 14 | 14 | $classLoader = require_once __DIR__ . '/../../../vendor/autoload.php';  | 
                                                        
| 15 | 15 | |
| 16 | -$outputPath = $argv[1] ?? null;  | 
                                                        |
| 16 | +$outputPath = $argv[1] ?? NULL;  | 
                                                        |
| 17 | 17 |  if (empty($outputPath) || !is_writable(($outputPath))) { | 
                                                        
| 18 | 18 | echo 'Error: Output path not specified or not writable' . "\n";  | 
                                                        
| 19 | 19 | exit(1);  | 
                                                        
@@ -27,7 +27,7 @@ discard block  | 
                                                    ||
| 27 | 27 | |
| 28 | 28 | // For request types other than "FE", the configuration manager would try to access the database.  | 
                                                        
| 29 | 29 | \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(1, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_FE);  | 
                                                        
| 30 | -\TYPO3\CMS\Core\Core\Bootstrap::init($classLoader, false);  | 
                                                        |
| 30 | +\TYPO3\CMS\Core\Core\Bootstrap::init($classLoader, FALSE);  | 
                                                        |
| 31 | 31 | |
| 32 | 32 | $generator = new \Kitodo\DbDocs\Generator();  | 
                                                        
| 33 | 33 | $tables = $generator->collectTables();  | 
                                                        
@@ -55,7 +55,7 @@  | 
                                                    ||
| 55 | 55 | $uptimeInSeconds = floor($response->getUptime() / 1000);  | 
                                                        
| 56 | 56 |                      $dateTimeFrom = new \DateTime('@0'); | 
                                                        
| 57 | 57 |                      $dateTimeTo = new \DateTime("@$uptimeInSeconds"); | 
                                                        
| 58 | -                    $uptime = $dateTimeFrom->diff($dateTimeTo)->format('%a ' . Helper::getLanguageService()->getLL('flash.days') . ', %H:%I:%S'); | 
                                                        |
| 58 | +                    $uptime = $dateTimeFrom->diff($dateTimeTo)->format('%a '.Helper::getLanguageService()->getLL('flash.days').', %H:%I:%S'); | 
                                                        |
| 59 | 59 | $numDocuments = $response->getNumberOfDocuments();  | 
                                                        
| 60 | 60 |                      $startTime = $response->getStartTime() ? strftime('%c', $response->getStartTime()->getTimestamp()) : 'N/A'; | 
                                                        
| 61 | 61 |                      $lastModified = $response->getLastModified() ? strftime('%c', $response->getLastModified()->getTimestamp()) : 'N/A'; | 
                                                        
@@ -25,8 +25,7 @@  | 
                                                    ||
| 25 | 25 | *  | 
                                                        
| 26 | 26 | * @access public  | 
                                                        
| 27 | 27 | */  | 
                                                        
| 28 | -class SolrCoreStatus extends AbstractNode  | 
                                                        |
| 29 | -{ | 
                                                        |
| 28 | +class SolrCoreStatus extends AbstractNode { | 
                                                        |
| 30 | 29 | /**  | 
                                                        
| 31 | 30 | * Shows Solr core status for given 'index_name'  | 
                                                        
| 32 | 31 | *  | 
                                                        
@@ -126,8 +126,8 @@  | 
                                                    ||
| 126 | 126 |              ->select(...explode(',', $fields)) | 
                                                        
| 127 | 127 | ->from($table)  | 
                                                        
| 128 | 128 | ->where(  | 
                                                        
| 129 | - $queryBuilder->expr()->eq($table . '.pid', intval($this->storagePid)),  | 
                                                        |
| 130 | - $queryBuilder->expr()->in($table . '.sys_language_uid', [-1, 0]),  | 
                                                        |
| 129 | + $queryBuilder->expr()->eq($table.'.pid', intval($this->storagePid)),  | 
                                                        |
| 130 | + $queryBuilder->expr()->in($table.'.sys_language_uid', [-1, 0]),  | 
                                                        |
| 131 | 131 | $andWhere  | 
                                                        
| 132 | 132 | )  | 
                                                        
| 133 | 133 | ->orderBy($sorting)  | 
                                                        
@@ -29,8 +29,7 @@  | 
                                                    ||
| 29 | 29 | *  | 
                                                        
| 30 | 30 | * @access public  | 
                                                        
| 31 | 31 | */  | 
                                                        
| 32 | -class ItemsProcFunc implements LoggerAwareInterface  | 
                                                        |
| 33 | -{ | 
                                                        |
| 32 | +class ItemsProcFunc implements LoggerAwareInterface { | 
                                                        |
| 34 | 33 | use LoggerAwareTrait;  | 
                                                        
| 35 | 34 | |
| 36 | 35 | /**  |