Skip to content

Commit 19b8f11

Browse files
committed
cs fixes after last merged PR
1 parent 37e98ba commit 19b8f11

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Redmine/Api/Version.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ public function create($project, array $params = [])
121121
foreach ($params as $k => $v) {
122122
if ('custom_fields' === $k && is_array($v)) {
123123
$this->attachCustomFieldXML($xml, $v);
124-
} else {
125-
$xml->addChild($k, $v);
126-
}
124+
} else {
125+
$xml->addChild($k, $v);
126+
}
127127
}
128128

129129
return $this->post('/projects/'.$project.'/versions.xml', $xml->asXML());
@@ -156,9 +156,9 @@ public function update($id, array $params)
156156
foreach ($params as $k => $v) {
157157
if ('custom_fields' === $k && is_array($v)) {
158158
$this->attachCustomFieldXML($xml, $v);
159-
} else {
160-
$xml->addChild($k, $v);
161-
}
159+
} else {
160+
$xml->addChild($k, $v);
161+
}
162162
}
163163

164164
return $this->put('/versions/'.$id.'.xml', $xml->asXML());

0 commit comments

Comments
 (0)