Skip to content

Commit 808e405

Browse files
committed
small formatting fixes
1 parent 37a05a4 commit 808e405

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

template/tests/versions/types/class.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ public function testCanConstructTypeNoArgs()
141141
$type = new <?php echo $type->getClassName(); ?>();
142142
$this->assertEquals('<?php echo $type->getFHIRName(); ?>', $type->_getFHIRTypeName());
143143
}
144-
145144
<?php if (count($collectionProps) > 0) :?>
145+
146146
function testCanUnserializeExtensionsOfCollectionProperties()
147147
{
148148
$json = new \stdClass();
@@ -169,9 +169,8 @@ function testCanUnserializeExtensionsOfCollectionProperties()
169169
$this->assertEquals("foobar", $extension->getValueString());
170170
<?php endforeach; ?>
171171
}
172-
173-
<?php endif; ?>
174-
<?php if ($type->isPrimitiveType() || $type->hasPrimitiveTypeParent() || $type->isPrimitiveContainer() || $type->hasPrimitiveContainerParent()) :
172+
<?php endif;
173+
if ($type->isPrimitiveType() || $type->hasPrimitiveTypeParent() || $type->isPrimitiveContainer() || $type->hasPrimitiveContainerParent()) :
175174
$primitiveType = match(true) {
176175
($type->isPrimitiveType() || $type->hasPrimitiveTypeParent()) => $type->getPrimitiveType(),
177176
$type->isPrimitiveContainer() => $type->getProperties()->getProperty('value')->getValueFHIRType()->getPrimitiveType(),
@@ -188,6 +187,7 @@ function testCanUnserializeExtensionsOfCollectionProperties()
188187
default => ['randomstring'],
189188
};
190189
?>
190+
191191
public function testCanConstructWithString()
192192
{
193193
<?php foreach($strVals as $strVal) : ?>
@@ -230,6 +230,7 @@ public function testCanSetValueWithDateTime()
230230
}
231231
<?php endif;
232232
elseif ($type->isResourceType() || $type->hasResourceTypeParent()) : ?>
233+
233234
function testCanUnserializeExtendedFields()
234235
{
235236
$json = new \stdClass();

0 commit comments

Comments
 (0)