-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [BUGFIX] Remove duplicate colon after "Returns" * [TASK] Extract display of vendor from component name * [TASK] Use partial includes for method names and FQNs * [TASK] Use partial includes for method names and FQNs
- Loading branch information
Showing
59 changed files
with
426 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 13 additions & 1 deletion
14
resources/template/html/body/directive/php/component.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,26 @@ | ||
{%- if node.name.namespaceNode %}{%- set fqn = '\\' ~ node.name.namespaceNode.name ~ '\\' ~ node.name.namespaceNode.name -%}{% endif -%} | ||
<dl class="php {{ node.type }}"> | ||
<dt class="sig sig-object php" | ||
{%- if not node.noindex %} id="{{ node.id }}"{% endif -%}> | ||
{% for modifier in node.modifiers -%} | ||
{{- renderNode(modifier) }}{{ ' ' -}} | ||
{%- endfor -%} | ||
<em class="property"><span class="pre">{{ node.type }}</span> </em> | ||
{{ renderNode(node.name) }} {%- if node.type == 'enum' and node.phpType -%}<span class="pre"> : {{ node.phpType }}</span> {% endif -%} | ||
{% include "body/directive/php/partials/fullyQualifiedName.html.twig" with {'className': node.name, 'fqn': fqn} %} | ||
{%- if node.type == 'enum' and node.phpType -%}<span class="pre"> : {{ node.phpType }}</span> {% endif -%} | ||
{% include "body/directive/php/partials/linkToSnippet.html.twig" %} | ||
</dt> | ||
<dd> | ||
{% if node.name.namespaceNode %} | ||
<dl class="field-list simple"> | ||
{% if node.name.namespaceNode %} | ||
<dt class="field-even">Fully qualified name</dt> | ||
<dd class="field-even"> | ||
{% include "body/directive/php/partials/codeStyle.html.twig" with {'code': fqn} %} | ||
</dd> | ||
{% endif -%} | ||
</dl> | ||
{% endif -%} | ||
{{ renderNode(node.value) }} | ||
</dd> | ||
</dl> |
4 changes: 0 additions & 4 deletions
4
resources/template/html/body/directive/php/fullyQualifiedName.html.twig
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
resources/template/html/body/directive/php/methodName.html.twig
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
resources/template/html/body/directive/php/partials/codeStyle.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<span class="pre">{{ code|raw }}</span> |
6 changes: 6 additions & 0 deletions
6
resources/template/html/body/directive/php/partials/fullyQualifiedName.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<span class="sig-name descname"> | ||
<span class="pre fqn" | ||
{%- if fqn %} data-fqn="{{ fqn }}" title="{{ fqn }}"{% endif %}> | ||
{{- className.name -}} | ||
</span> | ||
</span> |
15 changes: 15 additions & 0 deletions
15
resources/template/html/body/directive/php/partials/method/methodName.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
<span class="sig-name descname"> | ||
{%- for modifier in methodName.modifiers -%} | ||
<span class="pre php-modifier">{{- renderNode(modifier) }}{{ ' ' -}}</span> | ||
{%- endfor -%} | ||
<span class="pre">{{ methodName.name }}</span></span> | ||
<span class="sig-paren">(</span> | ||
{% for param in methodName.params -%} | ||
<em class="sig-param"><span class="pre">{{ param }}</span></em> | ||
{%- if not loop.last %}, {% endif -%} | ||
{%- endfor %} | ||
<span class="sig-paren">)</span> | ||
{% if methodName.return %} | ||
<em class="sig-returns"><span class="pre">: {{ methodName.return }}</span></em> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.