@@ -89,7 +89,7 @@ public function show($id)
8989 * @link http://www.redmine.org/projects/redmine/wiki/Rest_Users#POST
9090 *
9191 * @param array $params the new user data
92- * @return \ SimpleXMLElement
92+ * @return SimpleXMLElement
9393 */
9494 public function create (array $ params = array ())
9595 {
@@ -111,7 +111,7 @@ public function create(array $params = array())
111111 throw new \Exception ('Missing mandatory parameters ' );
112112 }
113113
114- $ xml = new \ SimpleXMLElement ('<?xml version="1.0"?><user></user> ' );
114+ $ xml = new SimpleXMLElement ('<?xml version="1.0"?><user></user> ' );
115115 foreach ($ params as $ k => $ v ) {
116116 if ('custom_fields ' === $ k ) {
117117 $ this ->attachCustomFieldXML ($ xml , $ v );
@@ -129,7 +129,7 @@ public function create(array $params = array())
129129 *
130130 * @param string $id the user id
131131 * @param array $params
132- * @return \ SimpleXMLElement
132+ * @return SimpleXMLElement
133133 */
134134 public function update ($ id , array $ params )
135135 {
@@ -144,7 +144,7 @@ public function update($id, array $params)
144144 );
145145 $ params = array_filter (array_merge ($ defaults , $ params ));
146146
147- $ xml = new \ SimpleXMLElement ('<?xml version="1.0"?><user></user> ' );
147+ $ xml = new SimpleXMLElement ('<?xml version="1.0"?><user></user> ' );
148148 foreach ($ params as $ k => $ v ) {
149149 if ('custom_fields ' === $ k ) {
150150 $ this ->attachCustomFieldXML ($ xml , $ v );
0 commit comments