|
@@ -2,7 +2,7 @@ discard block |
|
|
block discarded – undo |
|
2
|
2
|
<?php |
|
3
|
3
|
$parsedown = new \Parsedown(); |
|
4
|
4
|
foreach ($properties as $property) { |
|
5
|
|
- $summary = ($property->getDocBlock() !== null && $property->getDocBlock()->getSummary() !== '') ?$property->getDocBlock()->getSummary() . '<br>' : ''; |
|
|
5
|
+ $summary = ($property->getDocBlock() !== null && $property->getDocBlock()->getSummary() !== '') ? $property->getDocBlock()->getSummary() . '<br>' : ''; |
|
6
|
6
|
$description = ($property->getDocBlock() !== null && $property->getDocBlock()->getDescription() !== '') ? $parsedown->text($property->getDocBlock()->getDescription()) : ''; |
|
7
|
7
|
$type = ($property->getDocBlock() !== null && $property->getDocBlock()->hasTag('var')) ? explode(' ', $property->getDocBlock()->getTagsByName('var')[0]->render(), 2)[1] : ''; |
|
8
|
8
|
$separator = $type !== '' ? ': ' : ''; |
|
@@ -10,7 +10,7 @@ discard block |
|
|
block discarded – undo |
|
10
|
10
|
<h3> |
|
11
|
11
|
<a name="property:<?php echo $property->getName() ?>">$<?php echo $property->getName() ?> (<?php echo $property->getVisibility() ?>)</a> |
|
12
|
12
|
</h3> |
|
13
|
|
- <pre>$<?php echo $property->getName() . $separator . $type ?></pre> |
|
|
13
|
+ <pre>$<?php echo $property->getName() . $separator . $type ?></pre> |
|
14
|
14
|
<i><?php echo $summary ?></i> |
|
15
|
15
|
<?php echo $description . ($type !== '' ? ('<h4>Type</h4>' . $type) : ''); |
|
16
|
16
|
} |
|
17
|
17
|
\ No newline at end of file |
Please login to merge, or discard this patch.