File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -121,9 +121,9 @@ public function create($project, array $params = [])
121
121
foreach ($ params as $ k => $ v ) {
122
122
if ('custom_fields ' === $ k && is_array ($ v )) {
123
123
$ this ->attachCustomFieldXML ($ xml , $ v );
124
- } else {
125
- $ xml ->addChild ($ k , $ v );
126
- }
124
+ } else {
125
+ $ xml ->addChild ($ k , $ v );
126
+ }
127
127
}
128
128
129
129
return $ this ->post ('/projects/ ' .$ project .'/versions.xml ' , $ xml ->asXML ());
@@ -156,9 +156,9 @@ public function update($id, array $params)
156
156
foreach ($ params as $ k => $ v ) {
157
157
if ('custom_fields ' === $ k && is_array ($ v )) {
158
158
$ this ->attachCustomFieldXML ($ xml , $ v );
159
- } else {
160
- $ xml ->addChild ($ k , $ v );
161
- }
159
+ } else {
160
+ $ xml ->addChild ($ k , $ v );
161
+ }
162
162
}
163
163
164
164
return $ this ->put ('/versions/ ' .$ id .'.xml ' , $ xml ->asXML ());
You can’t perform that action at this time.
0 commit comments