Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/templates/clean/elements/method.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<article class="method">
<h3 class="{{ method.visibility }} {% if method.deprecated %}deprecated{% endif %}">{{ method.name }}()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">{{ method.name }}({% for argument in method.arguments %}{{ argument.types ? argument.types|join('|')~' ' }} <span class="argument">{{ argument.isVariadic ? '...' }}{{ argument.name }}{{ argument.default ? ' = '~argument.default }}</span>{% if not loop.last %}, {% endif %}{% endfor %}) {{ method.response.types ? ': '~method.response.types|join('|') }}</pre>
<pre class="signature" style="margin-right: 54px;">{{ method.name }}({% for argument in method.arguments %}{{ argument.types ? argument.types|route|join('|')~' ' }} <span class="argument">{{ argument.isVariadic ? '...' }}{{ argument.name }}{{ argument.default ? ' = '~argument.default }}</span>{% if not loop.last %}, {% endif %}{% endfor %}) {{ method.response.types ? ': '~method.response.types|route|join('|') }}</pre>
<p><em>{{ method.summary }}</em></p>
{{ method.description|markdown|raw }}

Expand Down
5 changes: 5 additions & 0 deletions src/phpDocumentor/Descriptor/ArgumentDescriptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,9 @@ public function isVariadic()
{
return $this->isVariadic;
}

public function getName()
{
return "$" . parent::getName();
}
}
2 changes: 1 addition & 1 deletion src/phpDocumentor/Transformer/Router/Renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,6 @@ protected function renderLink($path, $presentation)
break;
}

return $url ? sprintf('<a href="%s">%s</a>', $url, $path) : $path;
return $url ? sprintf('<a href="%s">%s</a>', $url, $path) : (string)$path;
}
}