@@ -64,7 +64,7 @@ |
||
| 64 | 64 | return $this; |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - public function setValueToElement(\DOMElement &$el, \DOMDocument $doc = null) |
|
| 67 | + public function setValueToElement(\DOMElement&$el, \DOMDocument $doc = null) |
|
| 68 | 68 | { |
| 69 | 69 | $name = $doc->createElement('name'); |
| 70 | 70 | $name->appendChild($doc->createTextNode($this->getString())); |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | return $this; |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - public function setValueToElement(\DOMElement &$el, \DOMDocument $doc = null) |
|
| 67 | + public function setValueToElement(\DOMElement&$el, \DOMDocument $doc = null) |
|
| 68 | 68 | { |
| 69 | 69 | $content = new \DOMText($this->getContent()); |
| 70 | 70 | $el->appendChild($content); |
@@ -145,7 +145,7 @@ |
||
| 145 | 145 | return $this; |
| 146 | 146 | } |
| 147 | 147 | |
| 148 | - public function setValueToElement(\DOMElement &$el, \DOMDocument $doc = null) |
|
| 148 | + public function setValueToElement(\DOMElement&$el, \DOMDocument $doc = null) |
|
| 149 | 149 | { |
| 150 | 150 | $el->setAttribute(CD::NS_CDA.'mediaType', $this->getMediaType()); |
| 151 | 151 | |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | return $this->getAssigningAuthorityName() !== null; |
| 112 | 112 | } |
| 113 | 113 | |
| 114 | - public function setValueToElement(\DOMElement &$el, \DOMDocument $doc = null) |
|
| 114 | + public function setValueToElement(\DOMElement&$el, \DOMDocument $doc = null) |
|
| 115 | 115 | { |
| 116 | 116 | $el->setAttribute(CDA::NS_CDA."root", $this->getRoot()); |
| 117 | 117 | |
@@ -137,7 +137,7 @@ |
||
| 137 | 137 | return $this; |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | - public function setValueToElement(\DOMElement &$el, \DOMDocument $doc = null) |
|
| 140 | + public function setValueToElement(\DOMElement&$el, \DOMDocument $doc = null) |
|
| 141 | 141 | { |
| 142 | 142 | $el->setAttribute(CDA::NS_CDA."code", $this->getCode()); |
| 143 | 143 | |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | public function toDOMElement(\DOMDocument $doc) |
| 48 | 48 | { |
| 49 | - return $this->createElement($doc, array ('codedValue')); |
|
| 49 | + return $this->createElement($doc, array('codedValue')); |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | public function getCodedValue() |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | * {@overrideDoc} |
| 62 | 62 | * |
| 63 | 63 | * @param \DOMDocument $doc |
| 64 | - * @return type |
|
| 64 | + * @return \DOMNode |
|
| 65 | 65 | */ |
| 66 | 66 | public function toDOMElement(\DOMDocument $doc) |
| 67 | 67 | { |
@@ -58,13 +58,13 @@ |
||
| 58 | 58 | $el = $doc->createElement(CDA::NS_CDA.$this->getElementTag()); |
| 59 | 59 | |
| 60 | 60 | if ($this instanceof HasClassCode) { |
| 61 | - if (! empty($this->getClassCode())) { |
|
| 61 | + if (!empty($this->getClassCode())) { |
|
| 62 | 62 | $el->setAttribute(CDA::NS_CDA.'classCode', $this->getClassCode()); |
| 63 | 63 | } |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | if ($this instanceof HasTypeCode) { |
| 67 | - if (! empty($this->getTypeCode())) { |
|
| 67 | + if (!empty($this->getTypeCode())) { |
|
| 68 | 68 | $el->setAttribute(CDA::NS_CDA.'typeCode', $this->getTypeCode()); |
| 69 | 69 | } |
| 70 | 70 | } |
@@ -41,5 +41,5 @@ |
||
| 41 | 41 | * to the Element. |
| 42 | 42 | * |
| 43 | 43 | */ |
| 44 | - abstract public function setValueToElement(\DOMElement &$el, \DOMDocument $doc = null); |
|
| 44 | + abstract public function setValueToElement(\DOMElement&$el, \DOMDocument $doc = null); |
|
| 45 | 45 | } |