Skip to content

Commit e315af5

Browse files
committed
Fix bug in UncontrolledSubject
1 parent 93c0b64 commit e315af5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Fields/UncontrolledSubject.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Scriptotek\Marc\Fields;
44

5-
use Scriptotek\Marc\Record;
6-
75
class UncontrolledSubject extends Subfield implements SubjectInterface
86
{
97
public function getType()
@@ -31,7 +29,7 @@ public function getTerm()
3129

3230
public function getParts()
3331
{
34-
$parts = [$this->getTerm()];
32+
return [$this->getTerm()];
3533
}
3634

3735
public function __toString()

0 commit comments

Comments
 (0)