Skip to content

Commit bc42478

Browse files
committed
🎨 Add function keyword to functions/methods signatures
1 parent c88dfdc commit bc42478

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

data/templates/vuepress/member-method.md.twig

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
{# Method signature #}
1818
```php
19-
{{ method.visibility }}{% if method.static %} static{% endif %} {{ method.name }}( {% for argument in method.arguments %}
19+
{{ method.visibility }}{% if method.static %} static{% endif %} function {{ method.name }}( {% for argument in method.arguments %}
2020
{{- argument.types|default(['mixed'])|sort_asc|join('|')~' ' }}
2121
{{- argument.byReference ? '&' }}
2222
{{- argument.name }}{% if argument.default is not same as(null) %} = {{ argument.default|raw }}{% endif %}

data/templates/vuepress/struct-function.md.twig

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
{# Function signature #}
66
```php
7-
{{ function.name }}( {% for argument in function.arguments %}
7+
function {{ function.name }}( {% for argument in function.arguments %}
88
{{- argument.types|default(['mixed'])|sort_asc|join('|')~' ' }}
99
{{- argument.byReference ? '&' }}
1010
{{- argument.name }}{% if argument.default is not same as(null) %} = {{ argument.default|raw }}{% endif %}

0 commit comments

Comments
 (0)