@@ -24,7 +24,7 @@ class Subject extends Field implements FieldInterface
24
24
const CURRICULUM_OBJECTIVE = '658 ' ;
25
25
const HIERARCHICAL_PLACE_NAME = '662 ' ;
26
26
27
- protected $ vocabularies = array (
27
+ protected $ vocabularies = [
28
28
'0 ' => 'lcsh ' , // 0: Library of Congress Subject Headings
29
29
'1 ' => 'lccsh ' , // 1: LC subject headings for children's literature
30
30
'2 ' => 'mesh ' , // 2: Medical Subject Headings
@@ -33,7 +33,7 @@ class Subject extends Field implements FieldInterface
33
33
'5 ' => 'cash ' , // 5: Canadian Subject Headings
34
34
'6 ' => 'rvm ' , // 6: Répertoire de vedettes-matière
35
35
// 7: Source specified in subfield $2
36
- ) ;
36
+ ] ;
37
37
38
38
public static function get (Record $ record )
39
39
{
@@ -70,9 +70,9 @@ public function getControlNumber()
70
70
71
71
public function getParts ()
72
72
{
73
- $ parts = array () ;
73
+ $ parts = [] ;
74
74
foreach ($ this ->field ->getSubfields () as $ c ) {
75
- if (in_array ($ c ->getCode (), array ( 'a ' , 'b ' , 'x ' , 'y ' , 'z ' ) )) {
75
+ if (in_array ($ c ->getCode (), [ 'a ' , 'b ' , 'x ' , 'y ' , 'z ' ] )) {
76
76
$ parts [] = $ c ->getData ();
77
77
}
78
78
}
0 commit comments