Skip to content

Commit 6f6df20

Browse files
committed
formatting improvements
1 parent e480572 commit 6f6df20

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

template/versions/types/class_default.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@
5151
}
5252

5353
$propertyType = $property->getValueFHIRType(); ?>
54-
public const <?php echo $property->getFieldConstantName(); ?> = '<?php echo $property->getName(); ?>';
54+
public const <?php echo $property->getFieldConstantName(); ?> = '<?php echo $property->getName(); ?>';
5555
<?php if (null !== $propertyType &&
5656
($propertyType->getKind() === TypeKindEnum::PRIMITIVE_CONTAINER || $propertyType->isValueContainer())) :
57-
?> public const <?php echo $property->getFieldConstantName(); ?>_EXT = '<?php echo $property->getExtName(); ?>';
57+
?> public const <?php echo $property->getFieldConstantName(); ?>_EXT = '<?php echo $property->getExtName(); ?>';
5858
<?php endif;
5959
endforeach;
6060
// -- end property field name constants
@@ -73,7 +73,6 @@
7373
// -- end directly implemented properties
7474
endforeach; ?>
7575

76-
7776
/** Default validation map for fields in type <?php echo $type->getFHIRName(); ?> */
7877
private const _DEFAULT_VALIDATION_RULES = [<?php if (!$type->hasLocalPropertiesWithValidations()): ?>];
7978
<?php else:
@@ -101,11 +100,9 @@
101100
// -- end field properties
102101
?>
103102

104-
105103
/** @var array */
106104
private array $_xmlLocations = [];
107105

108-
109106
<?php echo require_with(
110107
PHPFHIR_TEMPLATE_VERSION_TYPES_METHODS_DIR . DIRECTORY_SEPARATOR . 'constructor.php',
111108
[

template/versions/types/properties/methods/default.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public function get<?php echo ucfirst($propertyName); ?>(): <?php echo TypeHintU
6464

6565
{
6666
return $this-><?php echo $propertyName; ?>;
67-
}<?php if ($isCollection) : ?>
68-
67+
}
68+
<?php if ($isCollection) : ?>
6969

7070
/**
7171
* @return \ArrayIterator<<?php echo $propertyType->getFullyQualifiedClassName(true); ?>>
@@ -91,7 +91,6 @@ public function get<?php echo ucfirst($propertyName); ?>Generator(): \Generator
9191
endif;
9292
if ($propertyType->hasPrimitiveParent() || $propertyTypeKind->isOneOf(TypeKindEnum::PRIMITIVE_CONTAINER, TypeKindEnum::PRIMITIVE, TypeKindEnum::LIST)) : ?>
9393

94-
9594
/**<?php if ('' !== $documentation) : ?>
9695

9796
<?php echo $documentation; ?>
@@ -122,7 +121,6 @@ public function <?php echo $property->getSetterName(); ?>(<?php echo TypeHintUti
122121
}
123122
<?php if ($isCollection) : ?>
124123

125-
126124
/**<?php if ('' !== $documentation) : ?>
127125

128126
<?php echo $documentation; ?>
@@ -154,7 +152,6 @@ public function set<?php echo ucfirst($propertyName); ?>(array $<?php echo $prop
154152
<?php endif;
155153
elseif ($propertyTypeKind->isContainer($version)) : ?>
156154

157-
158155
/**<?php if ('' !== $documentation) : ?>
159156

160157
<?php echo $documentation; ?>
@@ -171,7 +168,6 @@ public function <?php echo $property->getSetterName() ?>(null|<?php echo PHPFHIR
171168
}
172169
<?php if ($isCollection) : ?>
173170

174-
175171
/**<?php if ('' !== $documentation) : ?>
176172

177173
<?php echo $documentation; ?>
@@ -215,7 +211,6 @@ public function set<?php echo ucfirst($propertyName); ?>(array $<?php echo $prop
215211
<?php endif;
216212
else : ?>
217213

218-
219214
/**<?php if ('' !== $documentation) : ?>
220215

221216
<?php echo $documentation; ?>
@@ -235,7 +230,6 @@ public function <?php echo $property->getSetterName(); ?>(<?php echo TypeHintUti
235230
}
236231
<?php if ($isCollection) : ?>
237232

238-
239233
/**<?php if ('' !== $documentation) : ?>
240234

241235
<?php echo $documentation; ?>

0 commit comments

Comments
 (0)