Completed
Push — master ( 5894ae...4ef642 )
by Julien
02:50
created
lib/Elements/AbstractElement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,13 +58,13 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
lib/DataType/Name/PersonName.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 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');
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/DataType/Collection/Set.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      */
103 103
     public function checkContainsOrThrow($name)
104 104
     {
105
-        if  ($name !== $this->getElementName()) {
105
+        if ($name !== $this->getElementName()) {
106 106
             throw new \InvalidArgumentException(sprintf("The Set should countains %s"
107 107
                 . " but contains %s", $name, $this->getElementName()));
108 108
         } else {
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         return $this->elements;
119 119
     }
120 120
     
121
-    public function setValueToElement(\DOMElement &$el, \DOMDocument $doc = null)
121
+    public function setValueToElement(\DOMElement&$el, \DOMDocument $doc = null)
122 122
     {
123 123
         if (count($this->elements) === 0) {
124 124
             return;
Please login to merge, or discard this patch.
lib/Component/SingleComponent/Section.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -149,13 +149,13 @@
 block discarded – undo
149 149
                 );
150 150
         }
151 151
         // append title
152
-        if (! empty($this->getTitle())) {
152
+        if (!empty($this->getTitle())) {
153 153
             $el->appendChild(
154 154
                 (new Title($this->getTitle()))->toDOMElement($doc)
155 155
                 );
156 156
         }
157 157
         // append text
158
-        if (! empty($this->getText())) {
158
+        if (!empty($this->getText())) {
159 159
             $el->appendChild(
160 160
                 (new Text($this->getText()))->toDOMElement($doc)
161 161
                 );
Please login to merge, or discard this patch.
lib/DataType/Boolean/Boolean.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -52,6 +52,9 @@
 block discarded – undo
52 52
         return $this->value;
53 53
     }
54 54
 
55
+    /**
56
+     * @return string
57
+     */
55 58
     public function getTag()
56 59
     {
57 60
         return $this->tag;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,9 +71,9 @@
 block discarded – undo
71 71
     }
72 72
 
73 73
         
74
-    public function setValueToElement(\DOMElement &$el, \DOMDocument $doc = null)
74
+    public function setValueToElement(\DOMElement&$el, \DOMDocument $doc = null)
75 75
     {
76
-        assert ($this->getTag() === null, new \RuntimeException("The tag "
76
+        assert($this->getTag() === null, new \RuntimeException("The tag "
77 77
             . "on boolean must be defined"));
78 78
         
79 79
         $el->setAttributeNS(CD::NS_CDA, $this->getTag(), $value);
Please login to merge, or discard this patch.
lib/Helper/IdentifierHelper.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         // only for php7.0
41 41
         $data = random_bytes(16);
42 42
         
43
-       //assert(strlen($data) == 16);
43
+        //assert(strlen($data) == 16);
44 44
 
45 45
         $data[6] = chr(ord($data[6]) & 0x0f | 0x40); // set version to 0100
46 46
         $data[8] = chr(ord($data[8]) & 0x3f | 0x80); // set bits 6-7 to 10
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@
 block discarded – undo
42 42
         
43 43
        //assert(strlen($data) == 16);
44 44
 
45
-        $data[6] = chr(ord($data[6]) & 0x0f | 0x40); // set version to 0100
46
-        $data[8] = chr(ord($data[8]) & 0x3f | 0x80); // set bits 6-7 to 10
45
+        $data[6] = chr(ord($data[6])&0x0f|0x40); // set version to 0100
46
+        $data[8] = chr(ord($data[8])&0x3f|0x80); // set bits 6-7 to 10
47 47
 
48 48
         return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex($data), 4));
49 49
     }
Please login to merge, or discard this patch.
lib/RIM/Act/Act.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
     public function setTemplateIds(array $templateIds)
165 165
     {
166 166
         // check that each element is an instance of InstanceIdentifier
167
-        $result = \array_reduce($templateIds, function ($carry, $current) {
167
+        $result = \array_reduce($templateIds, function($carry, $current) {
168 168
             if ($carry === false) {
169 169
                 return false;
170 170
             }
Please login to merge, or discard this patch.
lib/Elements/DoseQuantity.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
57 57
 
58 58
     function setQuantity($quantity)
59 59
     {
60
-        if (!
61
-            ( 
60
+        if (!( 
62 61
             $quantity instanceof PhysicalQuantity 
63 62
             || 
64 63
             $quantity instanceof AbstractInterval
Please login to merge, or discard this patch.