Skip to content

Commit 19a4222

Browse files
authored
reducing filesize a bit with smaller property comment blocks (#132)
1 parent 5b0460b commit 19a4222

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

template/types/properties/declaration.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,14 @@
2626
$documentation = DocumentationUtils::compilePropertyDocumentation($property, 5, true);
2727

2828
ob_start(); ?>
29-
/**<?php if ('' !== $documentation) : ?>
30-
29+
<?php if ('' === $documentation) : ?>
30+
/** @var <?php echo TypeHintUtils::propertyGetterTypeDoc($config, $property, true); ?> */
31+
<?php else : ?>
32+
/**
3133
<?php echo $documentation; ?>
32-
*<?php endif; ?>
33-
3434
* @var <?php echo TypeHintUtils::propertyGetterTypeDoc($config, $property, true); ?>
3535

3636
*/
37+
<?php endif; ?>
3738
protected <?php echo TypeHintUtils::propertyTypeHint($config, $property, true); ?> $<?php echo $property->getName(); ?> = <?php echo $isCollection ? '[]' : 'null'; ?>;
3839
<?php return ob_get_clean();

0 commit comments

Comments
 (0)