Completed
Push — master ( 61b074...b29a08 )
by Julien
02:32
created
lib/ClinicalDocument.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     
108 108
     /**
109 109
      * 
110
-     * @return string
110
+     * @return Title
111 111
      */
112 112
     function getTitle()
113 113
     {
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     /**
118 118
      * 
119 119
      * @param \PHPHealth\CDA\Elements\Title $title
120
-     * @return \PHPHealth\CDA2\ClinicalDocument
120
+     * @return ClinicalDocument
121 121
      */
122 122
     function setTitle(Title $title)
123 123
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -26,9 +26,7 @@
 block discarded – undo
26 26
 
27 27
 namespace PHPHealth\CDA;
28 28
 
29
-use PHPHealth\CDA\DataType\Quantity\DateAndTime\TimeStamp;
30 29
 use PHPHealth\CDA\DataType\Identifier\InstanceIdentifier;
31
-use PHPHealth\CDA\DataType\Code\CodedValue;
32 30
 use PHPHealth\CDA\Elements\Code;
33 31
 use PHPHealth\CDA\Elements\Title;
34 32
 use PHPHealth\CDA\Elements\EffectiveTime;
Please login to merge, or discard this 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.
lib/DataType/Code/ConceptDescriptor.php 2 patches
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -73,6 +73,9 @@  discard block
 block discarded – undo
73 73
         return $this;
74 74
     }   
75 75
     
76
+    /**
77
+     * @return string
78
+     */
76 79
     public function getCodeSystem()
77 80
     {
78 81
         return $this->codeSystem;
@@ -83,6 +86,9 @@  discard block
 block discarded – undo
83 86
         return !empty($this->getCodeSystem());
84 87
     }
85 88
 
89
+    /**
90
+     * @return string
91
+     */
86 92
     public function getCodeSystemName()
87 93
     {
88 94
         return $this->codeSystemName;
@@ -93,6 +99,9 @@  discard block
 block discarded – undo
93 99
         return !empty($this->getCodeSystemName());
94 100
     }
95 101
 
102
+    /**
103
+     * @return string
104
+     */
96 105
     public function getDisplayName()
97 106
     {
98 107
         return $this->displayName;
Please login to merge, or discard this 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/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/Name/EntityName.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
         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()));
Please login to merge, or discard this patch.
lib/DataType/TextAndMultimedia/BinaryData.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
         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);
Please login to merge, or discard this patch.
lib/DataType/TextAndMultimedia/EncapsuledData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
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
     
Please login to merge, or discard this patch.
lib/DataType/Identifier/InstanceIdentifier.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
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
         
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.