Skip to content

Commit 069ddf0

Browse files
committed
making it shorter
1 parent 1fc27e4 commit 069ddf0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Providers/Dcterms.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ public function getDescription()
5151
*/
5252
public function getAuthorName()
5353
{
54-
$author=$this->bag->get('creator');
55-
if (!empty($author))
56-
return $this->bag->get('creator');
57-
return $this->bag->get('author');
54+
return $this->bag->get('creator') ?: $this->bag->get('author');
5855
}
5956

6057
/**

0 commit comments

Comments
 (0)