Skip to content

Commit

Permalink
[BUGFIX] Fix noindex
Browse files Browse the repository at this point in the history
  • Loading branch information
linawolf committed May 12, 2024
1 parent ba14da2 commit 66dcbc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Util/ClassDocsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ public static function getMethodCode(

$methodHead = sprintf('.. php:method:: %s(%s)', $methodName, implode(', ', $parameterInSignature)) . "\n\n";
if ($noindexInClassMembers) {
$methodHead = ' :noindex';
$methodHead .= ' :noindex:' . "\n\n";
}

$result = [];
Expand Down Expand Up @@ -872,7 +872,7 @@ public static function getPropertyCode(

$header = sprintf('.. php:attr:: %s', RstHelper::escapeRst($property)) . "\n\n";
if ($noindexInClassMembers) {
$header = ' :noindex';
$header .= ' :noindex:' . "\n\n";
}
$body = [];
$code = [];
Expand Down Expand Up @@ -934,7 +934,7 @@ public static function getConstantCode(

$header = sprintf('.. php:const:: %s', RstHelper::escapeRst($constant)) . "\n\n";
if ($noindexInClassMembers) {
$header = ' :noindex';
$header .= ' :noindex:' . "\n\n";
}
$body = [];
$body[] = sprintf(':php:`%s`, type %s', var_export($constantReflection, true), gettype($constantReflection)) . "\n\n";
Expand Down

0 comments on commit 66dcbc5

Please sign in to comment.