File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,11 @@ public function Field($properties = array()) {
36
36
$ options = array ();
37
37
if ($ source ) {
38
38
if (is_object ($ source ) && $ this ->hasEmptyDefault ) {
39
- $ options [] = new ArrayData (array (
39
+ $ options [] = new ArrayData ([
40
40
'Value ' => '' ,
41
41
'Title ' => $ this ->emptyString ,
42
42
'Image ' => ''
43
- ) );
43
+ ] );
44
44
}
45
45
46
46
foreach ($ source as $ item ) {
@@ -72,17 +72,19 @@ public function Field($properties = array()) {
72
72
$ disabled = 'disabled ' ;
73
73
}
74
74
75
- $ options [] = new ArrayData (array (
75
+ $ options [] = new ArrayData ([
76
76
'Title ' => $ title ,
77
77
'Value ' => $ value ,
78
78
'Image ' => $ image ,
79
79
'Selected ' => $ selected ,
80
80
'Disabled ' => $ disabled ,
81
- ) );
81
+ ] );
82
82
}
83
83
}
84
84
85
- $ properties = array_merge ($ properties , array ('Options ' => new ArrayList ($ options )));
85
+ $ properties = array_merge ($ properties , [
86
+ 'Options ' => new ArrayList ($ options )
87
+ ]);
86
88
87
89
return FormField::Field ($ properties );
88
90
}
You can’t perform that action at this time.
0 commit comments