Skip to content

Commit 95fcfbb

Browse files
committed
.phpdoc/template: revert duplicate fix #2584
The issue has been fixed on phpDocumentor side.
1 parent ea05dd7 commit 95fcfbb

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

tools/php_api_ref/.phpdoc/template/class.html.twig

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,12 @@
5252
</a>
5353
<nav class="md-nav">
5454
<ul class="md-nav__list">
55-
{% set treated_properties = [] %}
5655
{% for property in properties|sortByVisibility %}
57-
{% if property.__toString() not in treated_properties %}
58-
<li class="md-nav__item level-2">
59-
<a href="{{ link(property) }}" title="{{ property.name }}" class="md-nav__link">
60-
{{ property.name }}
61-
</a>
62-
</li>
63-
{% set treated_properties = treated_properties|merge([property.__toString()]) %}
64-
{% endif %}
56+
<li class="md-nav__item level-2">
57+
<a href="{{ link(property) }}" title="{{ property.name }}" class="md-nav__link">
58+
{{ property.name }}
59+
</a>
60+
</li>
6561
{% endfor %}
6662
</ul>
6763
</nav>
Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{% set properties = properties(node)|sortByVisibility %}
2-
{% set explorable_properties = properties(node)|sortByVisibility %}
3-
{% set treated_properties = [] %}
42

53
{% if properties is not empty %}
64
<h2 id="properties">
@@ -9,14 +7,7 @@
97
</h2>
108

119
{% for property in properties %}
12-
{% if property.__toString() not in treated_properties %}
13-
{% for explored_property in explorable_properties %}
14-
{% if explored_property.__toString() == property.__toString() %}
15-
{% include 'components/property.html.twig' with {'property': explored_property} %}
16-
{% endif %}
17-
{% endfor %}
18-
{% set treated_properties = treated_properties|merge([property.__toString()]) %}
19-
{% endif %}
10+
{% include 'components/property.html.twig' %}
2011
{% endfor %}
2112
</section>
2213
{% endif %}

0 commit comments

Comments
 (0)