Skip to content
Snippets Groups Projects
Commit 9c4a3b69 authored by Kevin Saliou's avatar Kevin Saliou
Browse files

cs fix

parent ce78996d
Branches
Tags v1.5.1
No related merge requests found
......@@ -81,7 +81,7 @@ class Issue extends AbstractApi
}
}
} elseif ('description' === $k && strpos($v, '\n') !== false) {
// surround the description with CDATA if there is any '\n' in the description
// surround the description with CDATA if there is any '\n' in the description
$node = $xml->addChild($k);
$domNode = dom_import_simplexml($node);
$no = $domNode->ownerDocument;
......
......@@ -342,8 +342,9 @@ class Client
}
$tmp = parse_url($this->url.$path);
$httpHeader = array();
$httpHeader[] = 'Expect: ';
$httpHeader = array(
'Expect: '
);
if ('xml' === substr($tmp['path'], -3)) {
$httpHeader[] = 'Content-Type: text/xml';
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment