Skip to content

Commit

Permalink
for test
Browse files Browse the repository at this point in the history
  • Loading branch information
SakiTakamachi committed Jan 31, 2025
1 parent 7ed7278 commit 94a92e7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions phpdotnet/phd/Package/PHP/XHTML.php
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,8 @@ public function format_class_chunk($open, $name, $attrs, $props) {
public function format_reference($open, $name, $attrs, $props) {
if (isset($attrs[Reader::XMLNS_DOCBOOK]['role'])) {
if ($attrs[Reader::XMLNS_DOCBOOK]['role'] === "class"
|| $attrs[Reader::XMLNS_DOCBOOK]['role'] === "exception") {
|| $attrs[Reader::XMLNS_DOCBOOK]['role'] === "exception"
|| $attrs[Reader::XMLNS_DOCBOOK]['role'] === "enum") {
if ($open) {
$this->pushRole($attrs[Reader::XMLNS_DOCBOOK]['role']);
} else {
Expand All @@ -1085,7 +1086,8 @@ public function format_reference($open, $name, $attrs, $props) {

public function format_reference_titleabbrev_text($value, $tag) {
if ($this->getRole() === "class"
|| $this->getRole() === "exception") {
|| $this->getRole() === "exception"
|| $this->getRole() === "enum") {
return $this->format_grep_classname_text($value, $tag);
}
return $this->format_suppressed_text($value, $tag);
Expand Down

0 comments on commit 94a92e7

Please sign in to comment.