Skip to content

Commit 9c4a3b6

Browse files
committed
cs fix
1 parent ce78996 commit 9c4a3b6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/Redmine/Api/Issue.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private function buildXML(array $params = array())
8181
}
8282
}
8383
} elseif ('description' === $k && strpos($v, '\n') !== false) {
84-
// surround the description with CDATA if there is any '\n' in the description
84+
// surround the description with CDATA if there is any '\n' in the description
8585
$node = $xml->addChild($k);
8686
$domNode = dom_import_simplexml($node);
8787
$no = $domNode->ownerDocument;

lib/Redmine/Client.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,9 @@ protected function runRequest($path, $method = 'GET', $data = '')
342342
}
343343

344344
$tmp = parse_url($this->url.$path);
345-
$httpHeader = array();
346-
$httpHeader[] = 'Expect: ';
345+
$httpHeader = array(
346+
'Expect: '
347+
);
347348

348349
if ('xml' === substr($tmp['path'], -3)) {
349350
$httpHeader[] = 'Content-Type: text/xml';

0 commit comments

Comments
 (0)