Skip to content

Commit

Permalink
indentation cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed Feb 1, 2025
1 parent 8544224 commit f4b8441
Showing 1 changed file with 33 additions and 27 deletions.
60 changes: 33 additions & 27 deletions template/versions/types/class_default.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,16 @@ public function _getResourceType(): string

/* <?php echo basename(__FILE__) . ':' . __LINE__; ?> */
<?php
echo require_with(
PHPFHIR_TEMPLATE_VERSION_TYPES_VALIDATION_DIR . '/methods.php',
[
'version' => $version,
'type' => $type,
]
);

if ($type->isPrimitiveContainer() || $type->hasPrimitiveContainerParent()) : ?>
echo require_with(
PHPFHIR_TEMPLATE_VERSION_TYPES_VALIDATION_DIR . '/methods.php',
[
'version' => $version,
'type' => $type,
]
);

if ($type->isPrimitiveContainer() || $type->hasPrimitiveContainerParent()) : ?>

/* <?php echo basename(__FILE__) . ':' . __LINE__; ?> */
public function _nonValueFieldDefined(): bool
Expand All @@ -206,30 +207,31 @@ public function _nonValueFieldDefined(): bool

|| <?php endif; ?>isset($this-><?php echo $property->getName(); ?>)<?php endforeach; ?>;
}
<?php endif; ?>
<?php
endif; ?>

/* <?php echo basename(__FILE__) . ':' . __LINE__; ?> */
<?php

if (!$type->isPrimitiveOrListType()) :
if (!$type->isPrimitiveOrListType()) :
echo require_with(
PHPFHIR_TEMPLATE_VERSION_TYPES_SERIALIZATION_DIR . '/xml.php',
[
'version' => $version,
'type' => $type,
]
);
endif;

echo "\n";

echo require_with(
PHPFHIR_TEMPLATE_VERSION_TYPES_SERIALIZATION_DIR . '/xml.php',
PHPFHIR_TEMPLATE_VERSION_TYPES_SERIALIZATION_DIR . '/json.php',
[
'version' => $version,
'type' => $type,
'type' => $type,
]
);
endif;

echo "\n";

echo require_with(
PHPFHIR_TEMPLATE_VERSION_TYPES_SERIALIZATION_DIR . '/json.php',
[
'version' => $version,
'type' => $type,
]
);

endif;

Expand All @@ -241,10 +243,14 @@ public function _nonValueFieldDefined(): bool
*/
public function __toString(): string
{
<?php if ($type->isPrimitiveOrListType() || $type->hasPrimitiveOrListParent() || $type->isPrimitiveContainer() || $type->hasPrimitiveContainerParent()) : ?>
<?php
if ($type->isPrimitiveOrListType() || $type->hasPrimitiveOrListParent() || $type->isPrimitiveContainer() || $type->hasPrimitiveContainerParent()) : ?>
return $this->_getFormattedValue();
<?php else : ?>
<?php
else : ?>
return self::FHIR_TYPE_NAME;
<?php endif; ?>
<?php
endif; ?>
}
<?php endif; ?>}<?php return ob_get_clean();
<?php
endif; ?>}<?php return ob_get_clean();

0 comments on commit f4b8441

Please sign in to comment.