Completed
Push — master ( b29a08...2a05a4 )
by Julien
01:53
created
lib/Elements/TypeId.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
lib/DataType/Name/PersonName.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,13 +62,13 @@
 block discarded – undo
62 62
     }
63 63
     
64 64
     
65
-    public function setValueToElement(\DOMElement &$el, \DOMDocument $doc = null)
65
+    public function setValueToElement(\DOMElement&$el, \DOMDocument $doc = null)
66 66
     {
67 67
         if (count($this->parts) > 0) {
68 68
             $name = $doc->createElement(CDA::NS_CDA.'name');
69 69
             $el->appendChild($name);
70 70
             
71
-            foreach($this->parts as $part => $value) {
71
+            foreach ($this->parts as $part => $value) {
72 72
                 $partElement = $doc->createElement(CDA::NS_CDA.$part, $value);
73 73
                 $name->appendChild($partElement);
74 74
             }
Please login to merge, or discard this patch.
lib/DataType/AnyType.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -33,13 +33,13 @@
 block discarded – undo
33 33
  */
34 34
 abstract class AnyType
35 35
 {
36
-   /**
37
-    * 
38
-    * Add attribute to the given element.
39
-    *
40
-    * The data type are responsible to add the given attribute, content child
41
-    * to the Element. 
42
-    *
43
-    */ 
36
+    /**
37
+     * 
38
+     * Add attribute to the given element.
39
+     *
40
+     * The data type are responsible to add the given attribute, content child
41
+     * to the Element. 
42
+     *
43
+     */ 
44 44
     abstract public function setValueToElement(\DOMElement &$el, \DOMDocument $doc = null);
45 45
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,5 +41,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
lib/DataType/Code/ConceptDescriptor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
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
         
Please login to merge, or discard this patch.
lib/DataType/Quantity/DateAndTime/TimeStamp.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
     }
124 124
 
125 125
     
126
-    public function setValueToElement(\DOMElement &$el, \DOMDocument $doc = null) 
126
+    public function setValueToElement(\DOMElement&$el, \DOMDocument $doc = null) 
127 127
     {
128 128
         $value = \mb_substr(
129 129
             $this->getDate()->format(self::DATE_FORMAT),
Please login to merge, or discard this patch.
lib/Elements/Code.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
lib/Elements/AbstractElement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         $el = $doc->createElement(CDA::NS_CDA.$this->getElementTag());
57 57
         
58 58
         if (count($properties) > 0) {
59
-            foreach($properties as $property) {
59
+            foreach ($properties as $property) {
60 60
                 $this->{$property}->setValueToElement($el);
61 61
             }
62 62
         }
Please login to merge, or discard this patch.
lib/Component/RootBodyComponent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     {
65 65
         $component = $doc->createElement('component');
66 66
         
67
-        foreach($this->getComponents() as $subComponent) {
67
+        foreach ($this->getComponents() as $subComponent) {
68 68
             $component->appendChild($subComponent->toDOMElement($doc));
69 69
         }
70 70
         
Please login to merge, or discard this patch.
lib/ClinicalDocument.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@
 block discarded – undo
234 234
         $dom->appendChild($doc);
235 235
         // set the NS
236 236
         $doc->setAttributeNS('http://www.w3.org/2001/XMLSchema-instance', 
237
-            'xsi:schemaLocation','urn:hl7-org:v3 CDA.xsd');
237
+            'xsi:schemaLocation', 'urn:hl7-org:v3 CDA.xsd');
238 238
         // add typeId
239 239
         $doc->appendChild($this->typeId->toDOMElement($dom));
240 240
         // add id
Please login to merge, or discard this patch.