Test Failed
Branch master (ac7191)
by Peter
03:23
created
lib/Elements/Address/StreetNameType.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -70,33 +70,33 @@
 block discarded – undo
70 70
     public function __construct(string $value)
71 71
     {
72 72
         $acceptable_values = array(
73
-          self::Alley,
74
-          self::Arcade,
75
-          self::Avenue,
76
-          self::Boulevard,
77
-          self::Bypass,
78
-          self::Circuit,
79
-          self::Close,
80
-          self::Corner,
81
-          self::Court,
82
-          self::Crescent,
83
-          self::CulDeSac,
84
-          self::Drive,
85
-          self::Esplanade,
86
-          self::Green,
87
-          self::Grove,
88
-          self::Highway,
89
-          self::Junction,
90
-          self::Lane,
91
-          self::Link,
92
-          self::Mews,
93
-          self::Parade,
94
-          self::Place,
95
-          self::Ridge,
96
-          self::Road,
97
-          self::Square,
98
-          self::Street,
99
-          self::Terrace,
73
+            self::Alley,
74
+            self::Arcade,
75
+            self::Avenue,
76
+            self::Boulevard,
77
+            self::Bypass,
78
+            self::Circuit,
79
+            self::Close,
80
+            self::Corner,
81
+            self::Court,
82
+            self::Crescent,
83
+            self::CulDeSac,
84
+            self::Drive,
85
+            self::Esplanade,
86
+            self::Green,
87
+            self::Grove,
88
+            self::Highway,
89
+            self::Junction,
90
+            self::Lane,
91
+            self::Link,
92
+            self::Mews,
93
+            self::Parade,
94
+            self::Place,
95
+            self::Ridge,
96
+            self::Road,
97
+            self::Square,
98
+            self::Street,
99
+            self::Terrace,
100 100
         );
101 101
         if (\in_array($value, $acceptable_values, true) === false) {
102 102
             throw new \InvalidArgumentException("The street type value of $value is not acceptable!");
Please login to merge, or discard this patch.
lib/Elements/DoseQuantity.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,12 +67,12 @@
 block discarded – undo
67 67
     {
68 68
         if (!
69 69
         (
70
-          $quantity instanceof PhysicalQuantity
70
+            $quantity instanceof PhysicalQuantity
71 71
           || $quantity instanceof AbstractInterval
72 72
         )
73 73
         ) {
74 74
             throw new \UnexpectedValueException(sprintf('The value of quantity should be an instance of %s or %s',
75
-              PhysicalQuantity::class, AbstractInterval::class));
75
+                PhysicalQuantity::class, AbstractInterval::class));
76 76
         }
77 77
 
78 78
         $this->quantity = $quantity;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,7 @@
 block discarded – undo
65 65
      */
66 66
     public function setQuantity($quantity): self
67 67
     {
68
-        if (!
69
-        (
68
+        if (!(
70 69
           $quantity instanceof PhysicalQuantity
71 70
           || $quantity instanceof AbstractInterval
72 71
         )
Please login to merge, or discard this patch.
lib/Elements/Html/Text.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
           ? $choice
51 51
           : '');
52 52
         $this->setXSIType('')
53
-          ->setMediaType('');
53
+            ->setMediaType('');
54 54
         if ($choice && \is_string($choice) === false) {
55 55
             $this->addTag($choice);
56 56
         }
Please login to merge, or discard this patch.
lib/Elements/Html/TableRow.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,9 +78,9 @@
 block discarded – undo
78 78
               : TableCell::TD;
79 79
         }
80 80
         $cell = new TableCell(
81
-          $type,
82
-          $this,
83
-          $content);
81
+            $type,
82
+            $this,
83
+            $content);
84 84
         $this->addCell($cell);
85 85
         return $cell;
86 86
     }
Please login to merge, or discard this patch.
lib/Elements/Value.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -120,10 +120,10 @@  discard block
 block discarded – undo
120 120
     public static function SNOMED(string $code, string $displayName, bool $xsi_attribute = true): Value
121 121
     {
122 122
         $value = (new Value())
123
-          ->setCode($code)
124
-          ->setDisplayName($displayName)
125
-          ->setCodeSystem('2.16.840.1.113883.6.96')
126
-          ->setCodeSystemName('SNOMED CT');
123
+            ->setCode($code)
124
+            ->setDisplayName($displayName)
125
+            ->setCodeSystem('2.16.840.1.113883.6.96')
126
+            ->setCodeSystemName('SNOMED CT');
127 127
         if ($xsi_attribute) {
128 128
             $value->setXSIType(XSITypeInterface::CONCEPT_DESCRIPTOR);
129 129
         }
@@ -133,10 +133,10 @@  discard block
 block discarded – undo
133 133
     public static function NCTISValue(string $code, string $displayName, bool $xsi_attribute = true): Value
134 134
     {
135 135
         $value = (new Value())
136
-          ->setCode($code)
137
-          ->setDisplayName($displayName)
138
-          ->setCodeSystem('2.16.840.1.113883.6.96')
139
-          ->setCodeSystemName('SNOMED CT');
136
+            ->setCode($code)
137
+            ->setDisplayName($displayName)
138
+            ->setCodeSystem('2.16.840.1.113883.6.96')
139
+            ->setCodeSystemName('SNOMED CT');
140 140
         if ($xsi_attribute) {
141 141
             $value->setXSIType(XSITypeInterface::CONCEPT_DESCRIPTOR);
142 142
         }
@@ -146,10 +146,10 @@  discard block
 block discarded – undo
146 146
     public static function HL7ResultStatus(string $code, string $displayName, bool $xsi_attribute = true): Value
147 147
     {
148 148
         $value = (new Value())
149
-          ->setCode($code)
150
-          ->setDisplayName($displayName)
151
-          ->setCodeSystem('2.16.840.1.113883.12.123')
152
-          ->setCodeSystemName('HL7 Result Status');
149
+            ->setCode($code)
150
+            ->setDisplayName($displayName)
151
+            ->setCodeSystem('2.16.840.1.113883.12.123')
152
+            ->setCodeSystemName('HL7 Result Status');
153 153
         if ($xsi_attribute) {
154 154
             $value->setXSIType(XSITypeInterface::CONCEPT_DESCRIPTOR);
155 155
         }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      */
173 173
     public function setCode(string $code): self
174 174
     {
175
-        $this->code = new ValueType ($code, 'code');
175
+        $this->code = new ValueType($code, 'code');
176 176
         return $this;
177 177
     }
178 178
 
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
      */
192 192
     public function setCodeSystem(string $code_system): self
193 193
     {
194
-        $this->code_system = new ValueType ($code_system, 'codeSystem');
194
+        $this->code_system = new ValueType($code_system, 'codeSystem');
195 195
         return $this;
196 196
     }
197 197
 
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
      */
211 211
     public function setCodeSystemName(string $code_system_name): self
212 212
     {
213
-        $this->code_system_name = new ValueType ($code_system_name, 'codeSystemName');
213
+        $this->code_system_name = new ValueType($code_system_name, 'codeSystemName');
214 214
         return $this;
215 215
     }
216 216
 
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
      */
230 230
     public function setDisplayName(string $display_name): self
231 231
     {
232
-        $this->display_name = new ValueType ($display_name, 'displayName');
232
+        $this->display_name = new ValueType($display_name, 'displayName');
233 233
         return $this;
234 234
     }
235 235
 
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      */
249 249
     public function setUnits(string $units): self
250 250
     {
251
-        $this->units = new ValueType ($units, 'unit');
251
+        $this->units = new ValueType($units, 'unit');
252 252
         return $this;
253 253
     }
254 254
 
Please login to merge, or discard this patch.
lib/Elements/Entry.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
     public function __construct($choice = null)
74 74
     {
75 75
         $this->setAcceptableTypeCodes(TypeCodeInterface::x_ActRelationshipEntry)
76
-          ->setTypeCode(TypeCodeInterface::COMPONENT);
76
+            ->setTypeCode(TypeCodeInterface::COMPONENT);
77 77
         if ($choice instanceof Act) {
78 78
             $this->setAct($choice);
79 79
         } elseif ($choice instanceof Encounter) {
Please login to merge, or discard this patch.
lib/Elements/AbstractElement.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -290,8 +290,8 @@
 block discarded – undo
290 290
         // attributes have finished, now start adding the elements.
291 291
         // realm codes are used to store data like the organisation/country etc this tag conforms to.
292 292
         $this->renderRealmCodes($el, $doc)
293
-          ->renderTypeId($el, $doc)
294
-          ->renderTemplateIds($el, $doc);
293
+            ->renderTypeId($el, $doc)
294
+            ->renderTemplateIds($el, $doc);
295 295
         return $el;
296 296
     }
297 297
 
Please login to merge, or discard this patch.
lib/Elements/EffectiveTime.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
             $this->value = $value;
83 83
         } else {
84 84
             throw new \UnexpectedValueException(sprintf('The timestamp must implements %s, %s or %s',
85
-              PeriodicIntervalOfTime::class, TimeStamp::class, IntervalOfTime::class));
85
+                PeriodicIntervalOfTime::class, TimeStamp::class, IntervalOfTime::class));
86 86
         }
87 87
         return $this;
88 88
     }
Please login to merge, or discard this patch.
lib/ClinicalDocument.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -127,10 +127,10 @@  discard block
 block discarded – undo
127 127
         $this->rootComponent    = new Component\RootBodyComponent();
128 128
         $this->referenceManager = new ReferenceManager();
129 129
         $this->setTypeId(new TypeId(new InstanceIdentifier('2.16.840.1.113883.1.3', 'POCD_HD000040')))
130
-          ->setAcceptableClassCodes(['', ClassCodeInterface::CLINICAL_DOCUMENT])
131
-          ->setClassCode('')
132
-          ->setAcceptableMoodCodes(['', MoodCodeInterface::EVENT])
133
-          ->setMoodCode('');
130
+            ->setAcceptableClassCodes(['', ClassCodeInterface::CLINICAL_DOCUMENT])
131
+            ->setClassCode('')
132
+            ->setAcceptableMoodCodes(['', MoodCodeInterface::EVENT])
133
+            ->setMoodCode('');
134 134
     }
135 135
 
136 136
     /**
@@ -156,9 +156,9 @@  discard block
 block discarded – undo
156 156
         $doc->appendChild($el);
157 157
         // set the NS
158 158
         $el->setAttributeNS(
159
-          self::NS_XSI_URI,
160
-          'xsi:schemaLocation',
161
-          'CDA-ES-V1_3.xsd'
159
+            self::NS_XSI_URI,
160
+            'xsi:schemaLocation',
161
+            'CDA-ES-V1_3.xsd'
162 162
         );
163 163
         $el->setAttribute('xmlns:ext', 'http://ns.electronichealth.net.au/Ci/Cda/Extensions/3.0');
164 164
         $el->setAttribute('xmlns:xs', 'http://www.w3.org/2001/XMLSchema');
@@ -169,31 +169,31 @@  discard block
 block discarded – undo
169 169
             $el->setAttribute('moodCode', $this->getMoodCode());
170 170
         }
171 171
         $this->renderRealmCodes($el, $doc)
172
-          ->renderTypeId($el, $doc)
173
-          ->renderTemplateIds($el, $doc)
174
-          ->renderId($el, $doc)
175
-          ->renderCode($el, $doc)
176
-          ->renderTitle($el, $doc)
177
-          ->renderEffectiveTime($el, $doc)
178
-          ->renderConfidentialityCode($el, $doc)
179
-          ->renderLanguageCode($el, $doc)
180
-          ->renderSetId($el, $doc)
181
-          ->renderVersionNumber($el, $doc)
182
-          ->renderCopyTime($el, $doc)
183
-          ->renderCompletionCode($el, $doc)
184
-          ->renderRecordTargets($el, $doc)
185
-          ->renderAuthors($el, $doc)
186
-          ->renderDataEnter($el, $doc)
187
-          ->renderInformants($el, $doc)
188
-          ->renderCustodian($el, $doc)
189
-          ->renderInformationRecipients($el, $doc)
190
-          ->renderLegalAuthenticator($el, $doc)
191
-          ->renderAuthenticator($el, $doc)
192
-          ->renderParticipants($el, $doc)
193
-          // todo inFulfillmentOf
194
-          ->renderDocumentationOfs($el, $doc)
195
-          // todo relatedDocument
196
-          ->renderAuthorization($el, $doc);
172
+            ->renderTypeId($el, $doc)
173
+            ->renderTemplateIds($el, $doc)
174
+            ->renderId($el, $doc)
175
+            ->renderCode($el, $doc)
176
+            ->renderTitle($el, $doc)
177
+            ->renderEffectiveTime($el, $doc)
178
+            ->renderConfidentialityCode($el, $doc)
179
+            ->renderLanguageCode($el, $doc)
180
+            ->renderSetId($el, $doc)
181
+            ->renderVersionNumber($el, $doc)
182
+            ->renderCopyTime($el, $doc)
183
+            ->renderCompletionCode($el, $doc)
184
+            ->renderRecordTargets($el, $doc)
185
+            ->renderAuthors($el, $doc)
186
+            ->renderDataEnter($el, $doc)
187
+            ->renderInformants($el, $doc)
188
+            ->renderCustodian($el, $doc)
189
+            ->renderInformationRecipients($el, $doc)
190
+            ->renderLegalAuthenticator($el, $doc)
191
+            ->renderAuthenticator($el, $doc)
192
+            ->renderParticipants($el, $doc)
193
+            // todo inFulfillmentOf
194
+            ->renderDocumentationOfs($el, $doc)
195
+            // todo relatedDocument
196
+            ->renderAuthorization($el, $doc);
197 197
         // todo componentOf
198 198
         // add components
199 199
         if (false === $this->getRootComponent()->isEmpty()) {
Please login to merge, or discard this patch.