File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Ushahidi/Modules/V5/Actions/Category/Commands Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -80,9 +80,9 @@ public function __construct(
80
80
?string $ icon ,
81
81
int $ priority ,
82
82
?array $ role ,
83
+ array $ translations ,
83
84
?string $ defaultLanguage = 'en ' ,
84
- array $ availableanguages = [],
85
- array $ translations
85
+ array $ availableanguages = []
86
86
) {
87
87
$ this ->parentId = $ parentId ;
88
88
$ this ->tag = $ tag ;
@@ -115,9 +115,9 @@ public static function createFromRequest(CategoryRequest $request): self
115
115
$ request ->input ('icon ' ),
116
116
(int ) $ request ->input ('priority ' ),
117
117
$ request ->input ('role ' ),
118
+ $ request ->input ('translations ' )??[],
118
119
self ::DEFAULT_LANUGAGE ,
119
- [],
120
- $ request ->input ('translations ' )??[]
120
+ []
121
121
);
122
122
}
123
123
You can’t perform that action at this time.
0 commit comments