@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <h2>Properties</h2> |
| 2 | 2 | <?php |
| 3 | 3 | foreach ($properties as $property) { |
| 4 | - $summary = ($property->getDocBlock() !== null && $property->getDocBlock()->getSummary() !== '') ?$property->getDocBlock()->getSummary() . '<br>' : ''; |
|
| 4 | + $summary = ($property->getDocBlock() !== null && $property->getDocBlock()->getSummary() !== '') ? $property->getDocBlock()->getSummary() . '<br>' : ''; |
|
| 5 | 5 | $description = ($property->getDocBlock() !== null && $property->getDocBlock()->getDescription() !== '') ? $property->getDocBlock()->getDescription() : ''; |
| 6 | 6 | $type = ($property->getDocBlock() !== null && $property->getDocBlock()->hasTag('var')) ? explode(' ', $property->getDocBlock()->getTagsByName('var')[0]->render(), 2)[1] : ''; |
| 7 | 7 | $separator = $type !== '' ? ': ' : ''; |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | <h3> |
| 10 | 10 | <a name="property:<?php echo $property->getName() ?>">$<?php echo $property->getName() ?> (<?php echo $property->getVisibility() ?>)</a> |
| 11 | 11 | </h3> |
| 12 | - <pre>$<?php echo $property->getName() . $separator . $type ?></pre> |
|
| 12 | + <pre>$<?php echo $property->getName() . $separator . $type ?></pre> |
|
| 13 | 13 | <i><?php echo $summary ?></i> |
| 14 | 14 | <?php echo $description . ($type !== '' ? ('<h4>Type</h4>' . $type) : ''); |
| 15 | 15 | } |
| 16 | 16 | \ No newline at end of file |
@@ -88,9 +88,9 @@ discard block |
||
| 88 | 88 | * @throws \Mpdf\MpdfException |
| 89 | 89 | */ |
| 90 | 90 | private function writeHeader(string $name, string $summary, string $description): void { |
| 91 | - $this->WriteHTML(file_get_contents($this->templatesPath . '/styles.css'),\Mpdf\HTMLParserMode::HEADER_CSS); |
|
| 91 | + $this->WriteHTML(file_get_contents($this->templatesPath . '/styles.css'), \Mpdf\HTMLParserMode::HEADER_CSS); |
|
| 92 | 92 | $this->SetHeader('Generated with <a href="https://github.com/lluiscamino/phpDoc2pdf">phpDoc2pdf</a>'); |
| 93 | - $this->html .= $this->templatesEngine->render('header', array ('name' => $name, 'summary' => $summary, 'description' => $description)); |
|
| 93 | + $this->html .= $this->templatesEngine->render('header', array('name' => $name, 'summary' => $summary, 'description' => $description)); |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |
@@ -108,10 +108,10 @@ discard block |
||
| 108 | 108 | $constants_['public'] .= '<a href="#constant:' . $constant->getName() . '">' . $constant->getName() . '</a><br>'; |
| 109 | 109 | } |
| 110 | 110 | foreach ($properties as $property) { |
| 111 | - $properties_[strval($property->getVisibility())] .= '<a href="#property:' .$property->getName() . '">$' .$property->getName() . '</a><br>'; |
|
| 111 | + $properties_[strval($property->getVisibility())] .= '<a href="#property:' . $property->getName() . '">$' . $property->getName() . '</a><br>'; |
|
| 112 | 112 | } |
| 113 | 113 | foreach ($methods as $method) { |
| 114 | - $methods_[strval($method->getVisibility())] .= '<a href="#method:' .$method->getName() . '">' .$method->getName() . '</a><br>'; |
|
| 114 | + $methods_[strval($method->getVisibility())] .= '<a href="#method:' . $method->getName() . '">' . $method->getName() . '</a><br>'; |
|
| 115 | 115 | } |
| 116 | 116 | $this->html .= $this->templatesEngine->render('summary', array('methods' => $methods_, 'properties' => $properties_, 'constants' => $constants_)); |
| 117 | 117 | } |