Skip to content

Commit

Permalink
Merge pull request #11 from kitodo/scrutinizer-patch-1
Browse files Browse the repository at this point in the history
Scrutinizer Auto-Fixes
  • Loading branch information
Alexander Bigga authored Nov 23, 2021
2 parents 2b36d9d + 47c7d80 commit 621c33f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Controller/BasketController.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ protected function getDocumentData($id, $data)

$title = $document->getTitle($id, true);
if (empty($title)) {
$title = LocalizationUtility::translate('basket.noTitle', 'dlf') ?: '';
$title = LocalizationUtility::translate('basket.noTitle', 'dlf') ? : '';
}

// Set page and cutout information
Expand Down
2 changes: 1 addition & 1 deletion Classes/Controller/FeedsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function mainAction()
}
// Set default title if empty.
if (empty($title)) {
$title = LocalizationUtility::translate('noTitle', 'dlf') ?: '';
$title = LocalizationUtility::translate('noTitle', 'dlf') ? : '';
}
// Append volume information.
if (!empty($document->getVolume())) {
Expand Down

0 comments on commit 621c33f

Please sign in to comment.