Fix Codacy "Code Style" Pattern
This commit is contained in:
parent
a3257e0e40
commit
b6b91c9bf7
|
@ -62,15 +62,14 @@ class OAI2Server {
|
|||
public function response() {
|
||||
if (empty($this->errors)) {
|
||||
return $this->response->doc;
|
||||
} else {
|
||||
$errorResponse = new OAI2XMLResponse($this->uri, $this->verb, $this->args);
|
||||
$oai_node = $errorResponse->doc->documentElement;
|
||||
foreach($this->errors as $e) {
|
||||
$node = $errorResponse->addChild($oai_node, 'error', $e->getMessage());
|
||||
$node->setAttribute('code', $e->getOAI2Code());
|
||||
}
|
||||
return $errorResponse->doc;
|
||||
}
|
||||
$errorResponse = new OAI2XMLResponse($this->uri, $this->verb, $this->args);
|
||||
$oai_node = $errorResponse->doc->documentElement;
|
||||
foreach($this->errors as $e) {
|
||||
$node = $errorResponse->addChild($oai_node, 'error', $e->getMessage());
|
||||
$node->setAttribute('code', $e->getOAI2Code());
|
||||
}
|
||||
return $errorResponse->doc;
|
||||
}
|
||||
|
||||
public function Identify() {
|
||||
|
|
Loading…
Reference in New Issue