Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lukmzig authored and github-actions[bot] committed Mar 22, 2024
1 parent 0d6caa1 commit 79e57f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/DataObject/Service.php
Expand Up @@ -646,12 +646,12 @@ private static function getValueForObject(Concrete $object, string $key, string
$getter = 'get' . ucfirst($key);
$value = null;

try{
try {
$value = $object->$getter(AdminTool::getCurrentUser()?->getLanguage());
} catch (\Throwable) {
}

if (empty($value)){
if (empty($value)) {
$value = $object->$getter();
}

Expand Down

0 comments on commit 79e57f1

Please sign in to comment.